Opened 12 years ago

Last modified 12 years ago

#35149 new defect

arm-aout-gcc: cc1: internal compiler error: Segmentation fault: 11

Reported by: repozitor@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: arm-aout-gcc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

hi
platfrom detail:
OSX 10.7.4 (Lion) Xcode 4.2
during the installing i notice that i can't install "arm-aout-gcc"
and i try it with another command, "sudo port install arm-aout-gcc configure.compiler=llvm-gcc-4.2".
but i see error and past it on:
http://dl.dropbox.com/u/71850189/main.log
and i present it on channel, and get this detail:

"the source is trying to build a symbol name dynamically and failing. "

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/machine/arm/setjmp.S:83:26: pasting "_" and "\" does not give a valid preprocessing token"

Attachments (1)

main.log (959.5 KB) - added by repozitor@… 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by repozitor@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: Bug- arm-aout-gcc removed
Port: arm-aout-gcc added
Priority: HighNormal
Summary: Bug Report for "sudo port install arm-aout-gcc"arm-aout-gcc: cc1: internal compiler error: Segmentation fault: 11

I have fixed your WikiFormatting.

The main.log you linked to on Dropbox was made building with clang. As you said, it fails with:

newlib/libc/machine/arm/setjmp.S:83:26: pasting "_" and "\" does not give a valid preprocessing token

The main.log you attached to this ticket was made with llvm-gcc-4.2. It fails with:

:info:build mkdir libgcc
:info:build if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/include -B/opt/local/arm-aout/bin/ -B/opt/local/arm-aout/lib/ -isystem /opt/local/arm-aout/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/../include -DL_udivsi3 -xassembler-with-cpp -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config/arm/lib1funcs.asm -o libgcc/./_udivsi3.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/include -B/opt/local/arm-aout/bin/ -B/opt/local/arm-aout/lib/ -isystem /opt/local/arm-aout/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/../include -DL_divsi3 -xassembler-with-cpp -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config/arm/lib1funcs.asm -o libgcc/./_divsi3.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/include -B/opt/local/arm-aout/bin/ -B/opt/local/arm-aout/lib/ -isystem /opt/local/arm-aout/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/../include -DL_umodsi3 -xassembler-with-cpp -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config/arm/lib1funcs.asm -o libgcc/./_umodsi3.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/include -B/opt/local/arm-aout/bin/ -B/opt/local/arm-aout/lib/ -isystem /opt/local/arm-aout/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/../include -DL_modsi3 -xassembler-with-cpp -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config/arm/lib1funcs.asm -o libgcc/./_modsi3.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/include -B/opt/local/arm-aout/bin/ -B/opt/local/arm-aout/lib/ -isystem /opt/local/arm-aout/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/../include -DL_dvmd_tls -xassembler-with-cpp -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config/arm/lib1funcs.asm -o libgcc/./_dvmd_tls.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/build/arm-aout/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/newlib/libc/include -B/opt/local/arm-aout/bin/ -B/opt/local/arm-aout/lib/ -isystem /opt/local/arm-aout/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/../include -DL_call_via_rX -xassembler-with-cpp -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-aout-gcc/arm-aout-gcc/work/gcc-3.3.6/gcc/config/arm/lib1funcs.asm -o libgcc/./_call_via_rX.o
:info:build cc1: 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://gcc.gnu.org/bugs.html> for instructions.
:info:build make[2]: *** [libgcc/./_udivsi3.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....

You could follow those instructions and report the bug to the developers of gcc, however this is gcc version 3.3.6, which is ancient in the extreme and the developers are undoubtedly no longer fixing bugs in it. We probably need to update this port to a much newer version.

Something you could try first is upgrading to the latest version of Xcode for Lion. You said you're on Xcode 4.2; 4.3.3 has been available for a month already. You can get it from the Mac App Store or Apple Developer Connection.

In any case there is no maintainer for this port in MacPorts so you're on your own in figuring out how to fix it. If you develop a patch for the Portfile that makes it work, please share it with us.

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Thing is, the arm*-*-aout* target was declared obsolete in gcc 3.3, and removed in gcc 3.4:

Note: See TracTickets for help on using tickets.