Bug 50484 - [4.6 regression] ia64-portbld-freebsd9.0, conftest.c:16:1: internal compiler error: Segmentation fault: 11
Summary: [4.6 regression] ia64-portbld-freebsd9.0, conftest.c:16:1: internal compiler ...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.6.2
: P3 normal
Target Milestone: 4.7.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 11:26 UTC by Anton Shterenlikht
Modified: 2013-04-12 16:18 UTC (History)
1 user (show)

See Also:
Host:
Target: ia64-*-freebsd9.0
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
ia64 FreeBSD gcc4.6 libgcc config.log (2.88 KB, application/octet-stream)
2011-09-22 11:27 UTC, Anton Shterenlikht
Details
ia64 FreeBSD gcc4.7 libgcc config.log (2.94 KB, application/octet-stream)
2011-09-25 20:25 UTC, Anton Shterenlikht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shterenlikht 2011-09-22 11:26:22 UTC
ia64-portbld-freebsd9.0

Last working version: gcc-4.6.2.20110902

Building 4.6.2.20110916 fails with:

Checking multilib configuration for libgcc...
Configuring stage 2 in ia64-portbld-freebsd9.0/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for gawk... gawk
checking build system type... ia64-portbld-freebsd9.0
checking host system type... ia64-portbld-freebsd9.0
checking for ia64-portbld-freebsd9.0-ar... /usr/local/ia64-portbld-freebsd9.0/bin/ar
checking for ia64-portbld-freebsd9.0-lipo... lipo
checking for ia64-portbld-freebsd9.0-nm... /usr/ports/lang/gcc46/work/build/./gcc/nm
checking for ia64-portbld-freebsd9.0-ranlib... /usr/local/ia64-portbld-freebsd9.0/bin/ranlib
checking for ia64-portbld-freebsd9.0-strip... /usr/local/ia64-portbld-freebsd9.0/bin/strip
checking whether ln -s works... yes
checking for ia64-portbld-freebsd9.0-gcc... /usr/ports/lang/gcc46/work/build/./gcc/xgcc -B/usr/port
s/lang/gcc46/work/build/./gcc/ -B/usr/local/ia64-portbld-freebsd9.0/bin/ -B/usr/local/ia64-portbld-
freebsd9.0/lib/ -isystem /usr/local/ia64-portbld-freebsd9.0/include -isystem /usr/local/ia64-portbl
d-freebsd9.0/sys-include
checking for suffix of object files... configure: error: in `/usr/ports/lang/gcc46/work/build/ia64-
portbld-freebsd9.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[2]: *** [configure-stage2-target-libgcc] Error 1


Full work/build/ia64-portbld-freebsd9.0/libgcc/config.log is attached.
Here's the relevant extract:

configure:3246: checking for suffix of object files
configure:3268: /usr/ports/lang/gcc46/work/build/./gcc/xgcc -B/usr/ports/lang/gcc46/work/build/./gc
c/ -B/usr/local/ia64-portbld-freebsd9.0/bin/ -B/usr/local/ia64-portbld-freebsd9.0/lib/ -isystem /us
r/local/ia64-portbld-freebsd9.0/include -isystem /usr/local/ia64-portbld-freebsd9.0/sys-include
-c -g -O2 -pipe -I/usr/local/include -fno-strict-aliasing  conftest.c >&5
conftest.c: In function 'main':
conftest.c:16:1: internal compiler error: Segmentation fault: 11
Comment 1 Anton Shterenlikht 2011-09-22 11:27:26 UTC
Created attachment 25338 [details]
ia64 FreeBSD gcc4.6 libgcc config.log
Comment 2 Anton Shterenlikht 2011-09-25 20:24:24 UTC
Gerald has provided a fix for the _Unwind_FindTableEntry
FreeBSD ia64 issue
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45650).

With this fix, 4.7 on ia64 FreeBSD now gives the
same error:

checking for ia64-portbld-freebsd9.0-gcc... /usr/ports/lang/gcc47/work/build/./gcc/xgcc -B/usr/ports
/lang/gcc47/work/build/./gcc/ -B/usr/local/ia64-portbld-freebsd9.0/bin/ -B/usr/local/ia64-portbld-fr
eebsd9.0/lib/ -isystem /usr/local/ia64-portbld-freebsd9.0/include -isystem /usr/local/ia64-portbld-f
reebsd9.0/sys-include
checking for suffix of object files... configure: error: in `/usr/ports/lang/gcc47/work/build/ia64-p
ortbld-freebsd9.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[2]: *** [configure-stage2-target-libgcc] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc47/work/build'
Comment 3 Anton Shterenlikht 2011-09-25 20:25:19 UTC
Created attachment 25362 [details]
ia64 FreeBSD gcc4.7 libgcc config.log
Comment 4 Gerald Pfeifer 2011-09-25 20:45:38 UTC
Well, my "fix" may not really be one (it definitely is a hack and not the
right fix) and thus it may actually be causing the segmentation fault even.

I think http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45650 may need to be
addressed for real first, before delving into this one.
Comment 5 Jakub Jelinek 2011-10-26 17:13:59 UTC
GCC 4.6.2 is being released.
Comment 6 Jakub Jelinek 2012-03-01 14:39:18 UTC
GCC 4.6.3 is being released.
Comment 7 Jakub Jelinek 2013-04-12 16:18:00 UTC
The 4.6 branch has been closed, fixed in GCC 4.7.0.