This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: Cross compile x86 to solaris2.10 half way through


Here is the error .
/home/pro/sol-util/sparc-solaris2.10/bin/ld: skipping incompatible
/home/pro/sol-util/sparc-solaris2.10/usr/lib/libc.so when searching
for -lc
/home/pro/sol-util/sparc-solaris2.10/bin/ld: cannot find -lc

Also i have

pro@deb:~/sol-util/sparc-solaris2.10/lib/sparcv9$ ls
ld.so.1           libcontract.so.1  libelf.so.1       libmp.so.2
librt.so.1        libthread.so.1   nss_dns.so.1
libadm.so.1       libctf.so.1       libgen.so.1       libnsl.so.1
librtld.so.1      libtsnet.so.1    nss_files.so.1
libaio.so.1       libcurses.so.1    libinetutil.so.1  libnvpair.so.1
librtld_db.so.1   libtsol.so.2     nss_nis.so.1
libavl.so.1       libdevice.so.1    libintl.so.1      libpam.so.1
libscf.so.1       libumem.so.1     nss_nisplus.so.1
libbsm.so.1       libdevid.so.1     libkstat.so.1     libproc.so.1
libsec.so.1       libuuid.so.1     nss_user.so.1
libc.so.1         libdevinfo.so.1   libld.so.4        libpthread.so.1
libsecdb.so.1     libuutil.so.1
libc_db.so.1      libdl.so.1        liblddbg.so.4     libresolv.so.2
libsendfile.so.1  libw.so.1
libcmd.so.1       libdoor.so.1      libmd.so.1        librestart.so.1
libsocket.so.1    libxnet.so.1
libcmdutils.so.1  libefi.so.1       libmd5.so.1       librpcsvc.so.1
libsysevent.so.1  nss_compat.so.1
pro@deb:~/sol-util/sparc-solaris2.10/lib/sparcv9$ file libc.so.1
libc.so.1: ELF 64-bit MSB shared object, SPARC V9, version 1 (SYSV),
not stripped
pro@deb:~/sol-util/sparc-solaris2.10/lib/sparcv9$ file ld.so.1
ld.so.1: ELF 64-bit MSB shared object, SPARC V9, version 1 (SYSV), not stripped
pro@deb:~/sol-util/sparc-solaris2.10/lib/sparcv9$



Should i do anything with these like move them into sysroot/lib and
remove the 32 bit ones. I am not sure Can you guide me on these.

On 6/19/06, Niklaus <niklaus@gmail.com> wrote:
Hi,
 I have copied the header files and libs inot
/home/pro/sol-util/sparc-solaris2.10.
Now when i run configure and then do  a make i get the below error,

/home/pro/gcc-3.4.6/configure  --target=sparc-solaris2.10
--prefix=/home/pro/sol-util --enable-languages=c --with-gnu-as
--with-gnu-ld --with-sysroot=/home/pro/sol-util/sparc-solaris2.10/



But when i do a --disable-multilib everything works fine. The
executables produced are 32 bit and run fine on solaris machine.

Is there any way to get 64 bit executables , if yes what should i
change. I want to produce 64 bit ELF instead of 32 bit.

Is it possible to produce 32 and 64 bit both witht he same compiler
without doing any builds.

Regards
Nik


-- For unsubscribe information see http://sourceware.org/lists.html#faq


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