problem building mingw cross compiler
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Wed Oct 12 06:13:51 PDT 2011
Hello,
I would like to ask for some help building mingw32 on Lion.
Compilation fails with:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/
-B/opt/local/i386-mingw32/bin/ -B/opt/local/i386-mingw32/lib/ -isystem
/opt/local/i386-mingw32/include -isystem
/opt/local/i386-mingw32/sys-include -O2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../winsup/w32api/include
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../include
-DL_chkstk -xassembler-with-cpp -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/config/i386/cygwin.asm
-o libgcc/./_chkstk.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/
-B/opt/local/i386-mingw32/bin/ -B/opt/local/i386-mingw32/lib/ -isystem
/opt/local/i386-mingw32/include -isystem
/opt/local/i386-mingw32/sys-include -O2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../winsup/w32api/include
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../include
-DL_muldi3 -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c
-o libgcc/./_muldi3.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/
-B/opt/local/i386-mingw32/bin/ -B/opt/local/i386-mingw32/lib/ -isystem
/opt/local/i386-mingw32/include -isystem
/opt/local/i386-mingw32/sys-include -O2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../winsup/w32api/include
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../include
-DL_negdi2 -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c
-o libgcc/./_negdi2.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/
-B/opt/local/i386-mingw32/bin/ -B/opt/local/i386-mingw32/lib/ -isystem
/opt/local/i386-mingw32/include -isystem
/opt/local/i386-mingw32/sys-include -O2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../winsup/w32api/include
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../include
-DL_lshrdi3 -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c
-o libgcc/./_lshrdi3.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc/
-B/opt/local/i386-mingw32/bin/ -B/opt/local/i386-mingw32/lib/ -isystem
/opt/local/i386-mingw32/include -isystem
/opt/local/i386-mingw32/sys-include -O2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../winsup/w32api/include
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/../include
-DL_ashldi3 -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c
-o libgcc/./_ashldi3.o
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c:56:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.h:273:
internal compiler error: Segmentation fault: 11
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://www.mingw.org/bugs.shtml> for instructions.
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c:56:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.h:273:
internal compiler error: Segmentation fault: 11
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://www.mingw.org/bugs.shtml> for instructions.
:info:build make[2]: *** [libgcc/./_muldi3.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [libgcc/./_negdi2.o] Error 1
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c:56:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.h:273:
internal compiler error: Segmentation fault: 11
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://www.mingw.org/bugs.shtml> for instructions.
:info:build make[2]: *** [libgcc/./_lshrdi3.o] Error 1
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.c:56:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/gcc-3.4.5-20060117-2/gcc/libgcc2.h:273:
internal compiler error: Segmentation fault: 11
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://www.mingw.org/bugs.shtml> for instructions.
:info:build make[2]: *** [libgcc/./_ashldi3.o] Error 1
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc'
:info:build make[1]: *** [libgcc.a] Error 2
:info:build rm gcjh.pod gij.pod rmiregistry.pod gcc.pod rmic.pod
jcf-dump.pod jv-convert.pod jv-scan.pod gcj.pod
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build/gcc'
:info:build make: *** [all-gcc] Error 2
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build'
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/work/build"
&& /usr/bin/make -j4 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed
(see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for
i386-mingw32-gcc): org.macports.activate org.macports.build
org.macports.destroot org.macports.install
:notice:build Log for i386-mingw32-gcc is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/i386-mingw32-gcc/main.log
Full log is attached.
Thank you,
Mojca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i386-mingw32-gcc-log.tar.gz
Type: application/x-gzip
Size: 31173 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20111012/e2063d22/attachment.bin>
More information about the macports-users
mailing list