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


Niklaus kirjoitti:
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

No '.so' files! How on earth you expect GCC finding these or knowing what they are?
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$
GCC isn't as clever as you are.... The only way is to use symlinks so that
the 'libc.so.1' will be seen as 'libc.so'!  And so on...

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.

The 64-bit stuff will be searched automatically from 'lib/sparcv9' just
as the default 32-bit stuff will be searched from 'lib'... Just put things
being so that there are '.o' startups, '.a' static archives (none for 64-bit)
and '.so' shared libraries in your library directories and things will start
to work!




--
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]