OpenSolaris Solaris Forum  
     

Left Nav Register FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum » Solaris General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2010, 04:55 PM
Junior Member
 
Join Date: Nov 2010
Posts: 1
Default arm-linux-gcc cross compiler for sparc/solaris

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.
Reply With Quote
Sponsored Links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
porting pakage from linux to solaris Unix_man Solaris General 0 06-13-2010 08:11 AM
OpenSolaris Vs Linux ucut Solaris General 0 06-07-2010 06:39 PM
Solaris SPARC 10 64Bit -JDK Installation 1.6.05 saktiviji Solaris General 0 12-07-2009 03:17 AM


All times are GMT. The time now is 01:47 PM.


Powered by vBulletin. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.