This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gcc: Internal error: Segmentation fault (program as)
- From: Brian <Brian dot Mingus at colorado dot edu>
- To: binutils <binutils at sourceware dot org>
- Date: Tue, 6 Jan 2009 14:13:42 -0700
- Subject: gcc: Internal error: Segmentation fault (program as)
# Description of the problem
I am trying to compile a couple of different software packages. While
almost all of my compiles work, two of them, one in a php module and
one in a perl module, result in a segfault.
I apologize for cross-posting this to gcc-help. I did not realize binutils
had its own list.
# Compiler command and error output
Initiated by `pecl install channel://pecl.php.net/svn-0.5.0'
gcc -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I.
-I/tmp/pear/temp/svn -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/
svn-0.5.0/include
-I/var/tmp/pear-build-root/svn-0.5.0/main -I/tmp/pear/temp/svn
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/subversion-1
-I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -g -O2 -c
/tmp/pear/temp/svn/svn.c -fPIC -DPIC -o .libs/svn.o
as: Symbol `i386_regtab' has different size in shared object,
consider re-linking
as: Symbol `i386_optab' has different size in shared object,
consider re-linking
gcc: Internal error: Segmentation fault (program as)
# Initiated by `cpan install Want'
libtool: compile: gcc -I/usr/include/subversion-1
-I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I. -I/tmp/pear/temp/svn -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/svn-0.5.0/include
-I/var/tmp/pear-build-root/svn-0.5.0/main -I/tmp/pear/temp/svn
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/subversion-1
-I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -g -O2 -c
/tmp/pear/temp/svn/svn.c -fPIC -DPIC -o .libs/svn.o
as: Symbol `i386_regtab' has different size in shared object,
consider re-linking
as: Symbol `i386_optab' has different size in shared object,
consider re-linking
gcc: Internal error: Segmentation fault (program as)
# Details about my system
:~# gcc --version
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
:~# uname -a
Linux grey 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008
i686 GNU/Linux
:~# cat /etc/lsb-release
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"
# `env'
PATH=./:/root/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin
HOSTTYPE=i486-linux
VENDOR=intel
OSTYPE=linux
MACHTYPE=i486
CPU=LINUXdebug
LD_LIBRARY_PATH=/usr/local/lib
# configure output for pecl install svn
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.13.3 (ok)
checking for gawk... gawk
checking for svn support... yes, shared
checking for specifying the location of apr for svn... yes, shared
checking for svn includes... Found libsvn 1.5.1
checking for apr and apr-util... Found apr 1.2.12
libsvn includes: "-I/usr/include/subversion-1
-I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE"
libsvn ldflags: "-lsvn_client-1 -lsvn_fs-1 -lsvn_repos-1
-lsvn_subr-1 -L/usr/lib -lapr-1"
checking for a sed that does not truncate output... (cached)
/bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
-B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object...
ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no