Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylib.py with fix for I386_MINGW and AMD64_MINGW #1032

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VictorMiasnikov
Copy link
Contributor

Pylib.py with fix for I386_MINGW and AMD64_MINGW

@VictorMiasnikov
Copy link
Contributor Author

Tested with python do-cm3-all.py buildship on I386_MINGW :

User1@TestComp MINGW32 /
$ cm3 --version
Critical Mass Modula-3 version d5.11.9
  GitInfo: https://github.com/VictorMiasnikov/cm3.git/commit/69f22c9a199e80db8fc5cbdb2609923e8bb6ec2a
           https://github.com/VictorMiasnikov/cm3.git/commits/d5.11.9-ZZYYXX-20220208_13-48
           remote: https://github.com/VictorMiasnikov/cm3.git
           revision: 69f22c9a199e80db8fc5cbdb2609923e8bb6ec2a
           branch: d5.11.9-ZZYYXX-20220208_13-48
  last updated: 2022-02-05
  compiled: 2022-06-16 12:22:07
  configuration: D:\git-sdk-64\usr\local\cm3\bin\cm3.cfg
  host: I386_NT
  target: I386_MINGW


User1@TestComp MINGW32 /
$ i686-w64-mingw32-g++ -v
Using built-in specs.
COLLECT_GCC=D:\git-sdk-64\mingw32\bin\i686-w64-mingw32-g++.exe
COLLECT_LTO_WRAPPER=d:/git-sdk-64/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.7.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: /home/ruben/mingw-w64/toolchain/src/gcc/configure --host=i686-w64-mingw32 --build=x86_64-linux-gnu --target=i686-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/toolchain/mingw32mingw32/mingw32 --prefix=/home/ruben/mingw-w64/toolchain/mingw32mingw32/mingw32 --with-libiconv-prefix=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --with-gmp=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --with-mpfr=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --with-mpc=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --with-ppl=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --with-cloog=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' --enable-shared --enable-static --enable-threads=win32 --disable-multilib --enable-plugins --enable-languages=c,lto,c++,objc,obj-c++,fortran,java --enable-libgomp --enable-libstdcxx-debug --enable-sjlj-exceptions --enable-fully-dynamic-string --disable-nls --disable-werror --enable-checking=release --with-pkgversion=rubenvb-4.7.0 [email protected] --disable-win32-registry --disable-rpath --disable-werror CFLAGS='-O2 -mtune=corei7 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all' LDFLAGS=-Wl,--large-address-aware
Thread model: win32
gcc version 4.7.0 (rubenvb-4.7.0)

User1@TestComp MINGW32 /
$ cd /usr/local/cm3/cm3/scripts/python

User1@TestComp MINGW32 /usr/local/cm3/cm3/scripts/python (d5.11.9-ZZYYXX-20220208_13-48)
$ python do-cm3-all.py buildship

@VictorMiasnikov
Copy link
Contributor Author

VictorMiasnikov commented Jun 23, 2022

It looks like my path is not universal...
I see in my old logs:

....
  host: AMD64_LINUX
  target: 
        ^^^^^^^^^^^^^^^^^^^^^^  There is "Zero" output
....
{{

User1@DebianComp:/usr/local/cm3/cm3/scripts/python# cm3  --version
Critical Mass Modula-3 version d5.11.9
  GitInfo: unknown
  last updated: 2022-02-05
  compiled: 2022-05-20 12:36:48
  configuration: 
  host: AMD64_LINUX
  target: 

User1@DebianComp:/usr/local/cm3/cm3/scripts/python# ./boot2min.py c
SearchPath return:/usr/local/cm3/bin/cm3
A working cm3 is required. Checking.
/usr/local/cm3/bin/cm3 -version | fgrep host:
  host: AMD64_LINUX

CM3_TARGET=AMD64_LINUX
export CM3_TARGET
CM3_INSTALL=/usr/local/cm3
export CM3_INSTALL
CM3_ROOT=/usr/local/cm3/cm3
export CM3_ROOT
'./make-dist-cfg.py c'
SearchPath return:/usr/local/cm3/bin/cm3
A working cm3 is required. Checking.
/usr/local/cm3/bin/cm3 -version | fgrep host:
  host: AMD64_LINUX

}}


@VictorMiasnikov
Copy link
Contributor Author

This PR ( N1032) looks like related #1040 (comment)

@jaykrell
Copy link
Contributor

I am not sure about this.

@VictorMiasnikov
Copy link
Contributor Author

VictorMiasnikov commented Oct 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants