Subject: | GCC internal compiler error in 4.09+ |
Date: | Wed, 17 Apr 2013 12:16:58 -0700 |
To: | bug-devel-nytprof [...] rt.cpan.org |
From: | Peter Scott <Peter [...] PSDT.com> |
Yes, ancient version of Solaris and ancient version of gcc, but Perl
5.16.3. 4.08 compiles okay; 4.09 and onward give:
bin/perl5.16.3 /afs/xyz/rep/p/perl/lib/site_perl/5.16.3/ExtUtils/xsubpp
-typemap /afs/jpl/rep/p/perl/lib/5.16.3/ExtUtils/typemap -typemap
typemap NYTProf.xs > NYTProf.xsc && mv NYTProf.xsc NYTProf.c
gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe -I/usr/ets/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"5.00\"
-DXS_VERSION=\"5.00\" -fPIC
"-I/afs/jpl/rep/p/perl/lib/5.16.3/sun4-solaris/CORE" -DHAS_ZLIB -W
-Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
-Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter NYTProf.c
NYTProf.xs: In function 'DB_stmt':
NYTProf.xs:1499: internal compiler error: in c_common_type, at
c-typeck.c:530
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [NYTProf.o] Error 1
(That is from a build of 5.00)
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris
uname='sunos login 5.9 generic_122300-61 sun4u sparc
sunw,sun-fire-280r '
config_args='-de -Uusethreads -Dinc_version_list=none -Dcc=gcc
-B/usr/ccs/bin/ -Dprefix=/afs/xyz/rep/p/perl -Uinstallusrbinperl
-Dstartperl=#!/afs/xyz/rep/p/perl/bin/perl5.16.3
-Dldflags=-L/usr/ets/lib -R/usr/ets/lib -Dcf_by=ETS
-Dcf_email=Peter@psdt.com -Dperladmin=Peter@psdt.com'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -pipe
-I/usr/ets/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-fno-strict-aliasing -pipe -I/usr/ets/include'
ccversion='', gccversion='4.0.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags ='-L/usr/ets/lib -R/usr/ets/lib '
libpth=/usr/ets/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/ets/lib -R/usr/ets/lib'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under solaris
Compiled at Apr 12 2013 10:27:10
%ENV:
PERL5HOME="/usr/perl5"
@INC:
/afs/xyz/rep/p/perl/lib/site_perl/5.16.3/sun4-solaris
/afs/xyz/rep/p/perl/lib/site_perl/5.16.3
/afs/xyz/rep/p/perl/lib/5.16.3/sun4-solaris
/afs/xyz/rep/p/perl/lib/5.16.3
.
% gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.9
Configured with: /opt/tmp/gcc-4.0.3/configure --prefix=/usr/ets
--enable-languages=c,c++,java --disable-nls
Thread model: posix
gcc version 4.0.3