While doing a full recompile of the whole FreeBSD 5.3-RELEASE-p15 source tree
the gcc 3.4.5 snapshot crashed with a segfault.



The comamnd line that triggered the error:

/usr/local/bin/gcc34 -s -Os -pipe -march=athlon64 -I.
-I/usr/src/gnu/usr.bin/binutils/libbfd
-I/usr/src/gnu/usr.bin/binutils/libbfd/../libbfd
-I/usr/obj/usr/src/amd64/usr/src/gnu/usr.bin/binutils/libbfd/../libbfd
-I/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/include
-D_GNU_SOURCE
-I/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd
-DSELECT_ARCHITECTURES="&bfd_i386_arch" -DHAVE_bfd_elf64_x86_64_vec
-DHAVE_bfd_elf32_i386_freebsd_vec -DSELECT_VECS=" &bfd_elf64_x86_64_vec
,&bfd_elf32_i386_freebsd_vec" -DDEFAULT_VECTOR=bfd_elf64_x86_64_vec 
-I/usr/obj/usr/src/amd64/legacy/usr/include -c
/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf.c
/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf.c: In
function `_bfd_elf_compute_section_file_positions':
/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf.c:3143:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1



The snapshot version information:

[EMAIL PROTECTED] /usr/local/bin/gcc34 -v
Reading specs from /usr/local/lib/gcc/x86_64-portbld-freebsd5.3/3.4.5/specs
Configured with: ./..//gcc-3.4-20050524/configure --disable-nls
--with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=34
--with-gxx-include-dir=/usr/local/lib/gcc/x86_64-portbld-freebsd5.3/3.4.5/include/c++/
--disable-shared --disable-libgcj --prefix=/usr/local x86_64-portbld-freebsd5.3
Thread model: posix
gcc version 3.4.5 20050524 (prerelease) [FreeBSD]



The uname -a output of the computer:

[EMAIL PROTECTED] uname -a
FreeBSD server.t-hosting.hu 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #0: Thu May
26 14:21:20 CEST 2005    
[EMAIL PROTECTED]:/usr/src/sys/amd64/compile/FREEBSD  amd64


The used macros and flags:

CC=/usr/local/bin/gcc34
CFLAGS=-s -Os -pipe -march=athlon64
COPTFLAGS=-s -Os -march=athlon64 -pipe



The same code compiles in same circumstances with the stock gcc 3.4.2. If You
need further information, contact me.

Regards,

Gábor Kövesdán

-- 
           Summary: Segmentation fault under FreeBSD 5.3-RELEASE-p15
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: postmaster at t-hosting dot hu
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21786

Reply via email to