Trying to build crosscompiler for Sparc Solaris 8 -> Sparc Solaris 10 (& others)...

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

 



As the subject suggests, I'm attempting to build a cross-compiler on a
Sparc Solaris 8 host system with a target of Sparc Solaris 10. Once I
can get this, I plan on building a cross-compiler for i386 Solaris 10
(so my attempt is not purely academic).

I have already installed binutils 2.15 and gcc 3.4.5 native Solaris 8
verisons in the prefix /vobs/java/gnu and added this directory to my
path, so that those are the tools being used for building the cross-
compiler environment.

I've unpacked the Solaris 10 libraries and headers
to /vobs/java/gnu/sparc-sun-solaris-2.10.

I'm building Solaris 10 binutils 2.15, configured via 

configure --prefix=/vobs/java/gnu --target=sparc-sun-solaris2.10 --with-
sysroot=/vobs/java/gnu/sparc-sun-solaris-2.10

(note that I don't see any reference to --with-sysroot in the binutils
configure scripts, so I'm not sure that's even doing anything) and with

LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/ccs/lib:/usr/local/lib"

(/usr/local/lib is where libiconv.so.2 is)

binutils builds and installs without problem.

Then I try to build gcc 3.4.3 (from /vobs/java/gnu/buildroot/gcc-build)
using 

../gcc-3.4.3/configure --prefix=/vobs/java/gnu --target=sparc-sun-
solaris2.10 --enable-languages=c,c++ --with-gnu-ld --with-gnu-as --with-
sysroot=/vobs/java/gnu/sparc-sun-solaris-2.10

Make ends up failing on the following command:
/vobs/java/gnu/buildroot/gcc-build/gcc/xgcc -B/vobs/java/gnu/buildroot/gcc-build/gcc/ -B/vobs/java/gnu/sparc-sun-solaris2.10/bin/ -B/vobs/java/gnu/sparc-sun-solaris2.10/lib/ -isystem /vobs/java/gnu/sparc-sun-solaris2.10/include -isystem /vobs/java/gnu/sparc-sun-solaris2.10/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/sparcv9/libgcc.map -o sparcv9/libgcc_s.so.1.tmp  -m64  libgcc/sparcv9/_muldi3.o libgcc/sparcv9/_negdi2.o libgcc/sparcv9/_lshrdi3.o libgcc/sparcv9/_ashldi3.o libgcc/sparcv9/_ashrdi3.o libgcc/sparcv9/_cmpdi2.o libgcc/sparcv9/_ucmpdi2.o libgcc/sparcv9/_floatdidf.o libgcc/sparcv9/_floatdisf.o libgcc/sparcv9/_fixunsdfsi.o libgcc/sparcv9/_fixunssfsi.o libgcc/sparcv9/_fixunsdfdi.o libgcc/sparcv9/_fixdfdi.o libgcc/sparcv9/_fixunssfdi.o libgcc/sparcv9/_fixsfdi.o libgcc/sparcv9/_fixxfdi.o libgcc/sparcv9/_fixunsxfdi.o libgcc/sparcv9/_floatdixf.o libgcc/sparcv9/_fixunsxfsi.o libgcc/sparcv9/_fixtfdi.o libgcc/sparcv9/_fixunstfdi.o libgcc/sparcv9/_floatditf.o libgcc/sparcv9/_clear_cache.o libgcc/sparcv9/_enable_execute_stack.o libgcc/sparcv9/_trampoline.o libgcc/sparcv9/__main.o libgcc/sparcv9/_absvsi2.o libgcc/sparcv9/_absvdi2.o libgcc/sparcv9/_addvsi3.o libgcc/sparcv9/_addvdi3.o libgcc/sparcv9/_subvsi3.o libgcc/sparcv9/_subvdi3.o libgcc/sparcv9/_mulvsi3.o libgcc/sparcv9/_mulvdi3.o libgcc/sparcv9/_negvsi2.o libgcc/sparcv9/_negvdi2.o libgcc/sparcv9/_ctors.o libgcc/sparcv9/_ffssi2.o libgcc/sparcv9/_ffsdi2.o libgcc/sparcv9/_clz.o libgcc/sparcv9/_clzsi2.o libgcc/sparcv9/_clzdi2.o libgcc/sparcv9/_ctzsi2.o libgcc/sparcv9/_ctzdi2.o libgcc/sparcv9/_popcount_tab.o libgcc/sparcv9/_popcountsi2.o libgcc/sparcv9/_popcountdi2.o libgcc/sparcv9/_paritysi2.o libgcc/sparcv9/_paritydi2.o libgcc/sparcv9/_divdi3.o libgcc/sparcv9/_moddi3.o libgcc/sparcv9/_udivdi3.o libgcc/sparcv9/_umoddi3.o libgcc/sparcv9/_udiv_w_sdiv.o libgcc/sparcv9/_udivmoddi4.o  libgcc/sparcv9/unwind-dw2.o libgcc/sparcv9/unwind-dw2-fde.o libgcc/sparcv9/unwind-sjlj.o libgcc/sparcv9/gthr-gnat.o libgcc/sparcv9/unwind-c.o -lc && rm -f libgcc_s_sparcv9.so && if [ -f sparcv9/libgcc_s.so.1 ]; then mv -f sparcv9/libgcc_s.so.1 sparcv9/libgcc_s.so.1.`basename `; else true; fi && mv sparcv9/libgcc_s.so.1.tmp sparcv9/libgcc_s.so.1 && ln -s sparcv9/libgcc_s.so.1 libgcc_s_sparcv9.so
/vobs/java/gnu/sparc-sun-solaris2.10/bin/ld: values-Xa.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [sparcv9/libgcc_s_sparcv9.so] Error 1
make[2]: Leaving directory `/vobs/java/gnu/buildroot/gcc-build/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/vobs/java/gnu/buildroot/gcc-build/gcc'
make: *** [all-gcc] Error 2

I have both the Solaris 8 values-Xa.o (in /usr/ccs/lib and /usr/lib) and
the Solaris 10 values-Xa.o (in /vobs/java/gnu/sparc-sun-
solaris2.10/usr/ccs/lib and /vobs/java/gnu/sparc-sun-
solaris2.10/usr/lib).



-- 
Aaron Gaudio <agaudio@xxxxxxxxxxxxxxxx>
Xerox Corporation, DSSG/PEDU

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux