modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
139 stars 25 forks source link

Pylib.py with fix for I386_MINGW and AMD64_MINGW #1032

Open VictorMiasnikov opened 2 years ago

VictorMiasnikov commented 2 years ago

Pylib.py with fix for I386_MINGW and AMD64_MINGW

VictorMiasnikov commented 2 years ago

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 --with-bug-url=mingw-w64-public@lists.sourceforge.net --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 commented 2 years ago

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 commented 2 years ago

This PR ( N1032) looks like related https://github.com/modula3/cm3/issues/1040#issuecomment-1232449617

jaykrell commented 2 years ago

I am not sure about this.

VictorMiasnikov commented 2 years ago

24.10.2022, 10:18, "Jay Krell" @.***>: I am not sure about this.

I am too ...

( Now I downgrade all folder scripts to early version. Because AMD64_LINUX broken by permanent turned on "C backend".

I going to create Issue )