Compilation error of binutils v2.15.92.0.2 on solaris 8

carole verdon verdon@cict.fr
Tue Oct 19 14:27:00 GMT 2004


 Hi,

I want install a cross-compiler on solaris. I follow the instructions 
given on this web site: 
http://www.gulus.org/articles/ljnb/cross_compiler.html

Gcc is already installed on this boxe. The version is 3.4.1.

My directory is /users/sysadmin/verdon/cross-compiler. I did this:

mkdir ppc
mkdir src
mkdir obj

cd src
bunzip2 binutils-2.15.92.0.2.tar.bz2 (downloaded on 
ftp://ftp.kernel.org/pub/linux/devel/binutils/)
tar -xvf binutils-2.15.92.0.2.tar


****  configuration  ****

cd ../obj
mkdir binutils
cd binutils

../../src/binutils-2.15.92.0.2/configure 
--prefix=/users/sysadmin/verdon/cross-compiler/ppc --target=powerpc-solaris


****  compilation  ****

make

Configuring in gas
configure: loading cache ./config.cache
checking build system type... (cached) sparc-sun-solaris2.8
checking host system type... (cached) sparc-sun-solaris2.8
checking target system type... (cached) powerpc-unknown-solaris2
checking for sparc-sun-solaris2.8-gcc... (cached) 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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for library containing strerror... (cached) none required
checking for a BSD-compatible install... 
/users/sysadmin/verdon/cross-compiler/src/binutils-2.15.92.0.2/gas/../install-sh 
-c
checking whether build environment is sane... yes
checking for gawk... (cached) nawk
checking whether make sets $(MAKE)... (cached) yes
checking for style of include used by make... GNU
checking dependency style of gcc... (cached) none
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for /usr/ccs/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... (cached) pass_all
checking for sparc-sun-solaris2.8-ranlib... (cached) ranlib
checking for sparc-sun-solaris2.8-strip... no
checking for strip... (cached) strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) yes
checking for objdir... .libs
checking for gcc option to produce PIC...  -fPIC -DPIC
checking if gcc PIC flag  -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
finding the maximum length of command line arguments... (cached) 393217
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.8 ld.so
checking command to parse nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
configure: loading cache ./config.cache
configure: error: Solaris must be configured little endian
make: *** [configure-gas] Error 1


I don't find any solution for my problem. Can someone help me, please.

Thank you for advance.

Carole.




More information about the Binutils mailing list