This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC 3.2 + binutils on SPARC/Solaris?


Hi,

I am trying to use the GCC 3.2 C++ compiler on SPARC
Solaris 8 but I'm afraid the the GNU toolchain does
not work properly on this platform. I have tried
various assembler/linker combinations but none of them
seem to work:


Sun as/ld
---------

This combination is known not to work with shared libraries
built with GCC, which we use extensively. Using Sun's as/ld
results in link-time errors.


GNU binutils 2.11.2
-------------------

The assembler does not understand the code generated by the
GCC 3.2 compiler:

$ g++ -c -O2 -Wall -W -Wno-unknown-pragmas  -I../../include -o uuid/uuid.o 
/home/appli/shfj-main/src/shfj/uuid/uuid.cc
/tmp/cc52j4k1.s: Assembler messages:
/tmp/cc52j4k1.s:79: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc52j4k1.s:79: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc52j4k1.s:79: Error: Rest of line ignored. First ignored character is `,'.
$ 


GNU binutils 2.12.2
-------------------

The linker crashes:

$ gcc -v ...
[...]
 /usr/local/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/collect2 -h libecat.so.
1.3 -V -G -dy -z text -Y P,/usr/ccs/lib:/usr/lib -Qy -o ../../lib/libecat.so.1.3
 /usr/local/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crti.o /usr/ccs/lib/val
ues-Xa.o /usr/local/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crtbegin.o -L/u
sr/local/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2 -L/usr/ccs/bin -L/usr/ccs/
lib -L/usr/local/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/../../.. kernel/an
alyze.o kernel/convert_64.o kernel/convert_70.o kernel/crash.o kernel/ecat_model
.o kernel/interfile.o kernel/machine_indep.o kernel/make3dfilter.o kernel/matpkg
.o kernel/matrix.o kernel/matrix_64.o kernel/matrix_extra.o kernel/matrix_slice.
o kernel/matrix_xdr.o kernel/num_sort.o kernel/plandefs.o kernel/sino_dets.o lib
_compress/c3101.o lib_compress/c_uvlc.o lib_compress/compress.o lib_compress/d31
01.o lib_compress/d_uvlc.o lib_compress/dclz.o lib_compress/uvlc.o lib_compress/
z_matrix.o -lm -lrpcsvc -lgcc_s -lgcc_s /usr/local/gcc-3.2/lib/gcc-lib/sparc-sun
-solaris2.8/3.2/crtend.o /usr/local/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2
/crtn.o
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
$ 


GNU binutils 2.13
-----------------

The linker is known to create shared libraries that later cause
crashes before entering main().



Do you have any tips on getting GCC 3.2 to work on Solaris?
Would binutils from CVS help here? If so, how to build the
CVS sources? Usual automake/autoconf commands don't seem to
be working here. Does anyone have a binary distribution of
the current CVS sources for Solaris 8?


Thank you for any help you can provide.

Regards,
--
Dimitri


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]