Diehl, Gary on Tue, 27 Oct 2015 22:11:46 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Question about gcc 3.4.3 failing to compile endian.c on solaris 10 sparc


Hi,
 
I looked in the forums and I didn’t see an answer to this question.
 
Why won’t endian.c compile using gcc under solaris 10 for pari 2.7.4?  Surely there’s a simple trick I’m missing somewhere.
 
root [/home/perl/modules/pari-2.7.4] # ./Configure --prefix=/usr/local
Configuring pari-2.7.4 (STABLE)
Checking echo to see how to suppress newlines...
...using \c
Looking for some tools first ...
...gzip is /usr/bin/gzip
...cc is /usr/ucb/cc
...gcc is /usr/sfw/bin/gcc
...ld is /usr/ccs/bin/ld
...perl is /usr/bin/perl
...zcat is /usr/bin/zcat
Choosing C compiler ...
GNU compatible compiler:
Using mt engine single
***************************************************************
Cannot compile endian.c. Aborting. PLEASE REPORT!
 
 
root [/home/perl/modules/pari-2.7.4/config] # gcc endian.c
endian.c: In function `main':
endian.c:22: warning: left shift count >= width of type
 
root [/home/perl/modules/pari-2.7.3] # gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
 
root [/home/perl/modules/pari-2.7.4/doc] # uname -a
SunOS myserver 5.10 Generic_150400-27 sun4u sparc SUNW,SPARC-Enterprise
 
Thanks in advance,
 
Gary Diehl