hi everyone,
i am newbie to solaris,
my objective is to establish gcc crosstool chain for arm1176 target on sparc/solaris10 host.
first of all, i will be glad if i can get prebuild toolchain for target=arm1176jzf-s on host= sparc-sun-solaris2.10. ( i hav browsed but can't find prebuild one)
so, i tried to establish by myself
i hav established binutils first, but while trying to configure& build gcc(gcc4.4.0) , i was interrupted with following error..
error message: this error has come while building boot strap gcc for cross complier tools chain
checking build system type... sparc-sun-solaris2.10
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/local/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking for arm-linux-strip... /usr/local/arm/arm-linux/bin/
strip
checking for --enable-version-specific- runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... /nas/apps4/objdir/gcc/./gcc/ xgcc -B/nas/apps4/objdir/gcc/./gcc/ -B/usr/local/arm/arm-linux/ bin/ -B/usr/local/arm/arm-linux/ lib/ -isystem /usr/local/arm/arm-linux/ include -isystem /usr/local/arm/arm-linux/sys- include
checking for C compiler default output file name... configure: error: in `/nas/apps4/objdir/gcc/arm- linux/libmudflap':
configure: error: C compiler cannot create executables
See `config.log' for more details.
gmake[1]: *** [configure-target-libmudflap] Error 1
gmake[1]: Leaving directory `/nas/apps4/objdir/gcc'
gmake: *** [all] Error 2
Exit 2
By looking into config.log file i came to know that , ld(linker) was expecting a object a file "ctr1.o" from a perticular location.
ld:crt1.o : no such file or directory
ac_nonexistent.h:no such file or directory.
I made some unsuccessful attempts,like
1) i hav tried to get that object file from different sources and pasted into the location form where it is expecting
2) tried installing some solaris packages like SUNWarc,SUNWhea(as suggested by some websites)
I have compiled and configured with following options:
gcc-4.4.0/configure --with-newlib --with-gnu-as --with-gnu-ld --disable-libssp --disable-multilib
--target=arm-linux --prefix=/usr/local/arm --disable-threads --with-local-prefix=/usr/ local/arm/arm-linux
--disable-largefile --disable-__cxa_atexit --enable-target-optspace --disable-tls --disable-nls
--with-arch=armv6zk --with-tune=arm1176jzf-s --with-build-time-tools=/usr/ local/arm/arm-linux/bin
--disable-shared --enable-decimal-float --with-float=soft --disable-static --with-cpu=arm1176jzf-s
--with-headers=/usr/local/arm/ include --without-ppl --without-cloog --disable-werror
gmake LDFLAGS="-Xlinker -R/usr/local/lib"
tools used : gcc-4.4.0
binutils-2.20.1
and planning to use:
kernel headers : linux-2.6.35.7
C libraries : glibc-2-12.1 or newlib 1.18
gdb : gdb7.1
this problem is for a while, and i hav no idea how to solve it,
kindly help me,
thanks in advance,
chakradhar_nannuri.