#22328 closed defect (fixed)
i386-mingw32-gcc still fails to build on Snow Leopard
Reported by: | royliu@… | Owned by: | landonf (Landon Fuller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.1 |
Keywords: | Cc: | alfredh (Alfred E. Heggestad), stephane.bachelier@…, alex.coles@…, xue.yong.zhi@… | |
Port: | i386-mingw32-gcc |
Description
The MinGW cross gcc still fails to build on Snow Leopard, despite ticket #21194 being closed with a purported fix.
Change History (15)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to landonf@… |
---|---|
Port: | i386-mingw32-gcc added |
comment:2 Changed 15 years ago by jmroot (Joshua Root)
comment:3 Changed 15 years ago by alfredh (Alfred E. Heggestad)
building on snow leopard:
cc1: warnings being treated as errors
is it possible to disable -Werror in the makefile ?
ibm-20887c0f571:i386-mingw32-w32api alfredh$ sudo port install i386-mingw32-binutils ---> Computing dependencies for i386-mingw32-binutils ---> Building i386-mingw32-binutils Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/build" && /usr/bin/make -j2 all " returned error 2 Command output: make[3]: Nothing to be done for `info'. Making info in po make[3]: Nothing to be done for `info'. make[3]: Nothing to be done for `info-am'. /usr/bin/make all-recursive make[3]: Nothing to be done for `info-am'. /usr/bin/make all-recursive Making all in doc make[4]: Nothing to be done for `all'. Making all in po make[4]: Nothing to be done for `all'. Making all in doc make[4]: Nothing to be done for `all'. Making all in po make[4]: Nothing to be done for `all'. /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils -I../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -I/opt/local/include -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c make[4]: Nothing to be done for `all-am'. /usr/bin/make all-recursive cc1: warnings being treated as errors /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c: In function 'strings_file': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c:407: warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:465) make[4]: *** [strings.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-binutils] Error 2 make[1]: *** Waiting for unfinished jobs.... Making all in po make[4]: Nothing to be done for `all'. make[4]: Nothing to be done for `all-am'. make: *** [all] Error 2 Error: Status 1 encountered during processing.
comment:6 Changed 15 years ago by stephane.bachelier@…
I've disabled -Werror but port fails to install as in (why closed???) #21194.
comment:8 Changed 15 years ago by alex.coles@…
Also reproducing this issue: https://gist.github.com/2387b75050caab570116
comment:10 Changed 15 years ago by jmroot (Joshua Root)
Cc: | royliu@… removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:11 follow-up: 13 Changed 15 years ago by alfredh (Alfred E. Heggestad)
many thanks
building mingw32 on my snow leopard work fine now.
/alfred
comment:13 Changed 15 years ago by xue.yong.zhi@…
Replying to aeh@…:
many thanks
building mingw32 on my snow leopard work fine now.
/alfred
It does not work for me with mac port 1.8.1. How do you get it installed?
$ gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/[cg][.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5646)
$ uname -a Darwin mac.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
$sudo port install i386-mingw32-gcc ---> Computing dependencies for i386-mingw32-gcc ---> Building i386-mingw32-binutils Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/build" && /usr/bin/make -j2 all " returned error 2 Command output: Making info in po make[3]: Nothing to be done for `info'. make[3]: Nothing to be done for `info'. make[3]: Nothing to be done for `info-am'. /usr/bin/make all-recursive make[3]: Nothing to be done for `info-am'. /usr/bin/make all-recursive Making all in doc Making all in doc make[4]: Nothing to be done for `all'. Making all in po make[4]: Nothing to be done for `all'. Making all in po make[4]: Nothing to be done for `all'. make[4]: Nothing to be done for `all'. /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils -I../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -I/opt/local/include -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c make[4]: Nothing to be done for `all-am'. /usr/bin/make all-recursive Making all in po make[4]: Nothing to be done for `all'. cc1: warnings being treated as errors /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c: In function 'strings_file': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c:407: warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:465) make[4]: * [strings.o] Error 1 make[3]: * [all-recursive] Error 1 make[2]: * [all] Error 2 make[1]: * [all-binutils] Error 2 make[1]: * Waiting for unfinished jobs.... make[4]: Nothing to be done for `all-am'. make: * [all] Error 2
Error: The following dependencies failed to build: i386-mingw32-binutils i386-mingw32-runtime i386-mingw32-w32api Error: Status 1 encountered during processing.
comment:14 follow-up: 15 Changed 15 years ago by stephane.bachelier@…
comment:15 Changed 15 years ago by xue.yong.zhi@…
Replying to stephane.bachelier@…:
It is not i386-mingw-gcc that failed to compile, but i386-mingw-binutils. You should run port selfupdate and maybe a port clean i386-mingw-binutils then it should be fined. The problem was solved in [60615] and [60616].
Thank you stephane! It works after I did 'sudo port selfupdate' and 'sudo port clean i386-mingw32-binutils'.
The particular issue reported in that ticket was fixed (it didn't just affect Snow Leopard). Getting any gcc 3.x to build on 10.6 will still be a challenge.