This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Q: gcc 3.1 as a crosscompiler on x86 linux for solaris ultrasparc64 - how?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have problems compiling gcc as a cross compiler. It shall create 
executables for Solaris on ULTRASPARC64.

I successfully build binutils 2.12.1 using the following command line:
./configure --host=i686-pc-linux-gnu --prefix=/opt/sparc64-binutils-2.12.1
- --target=sparcv9-solaris --enable-64-bit-bfd --enable-bfd-assembler
- --enable-commonbfdlib

Now I configured gcc as follows:
env PATH=/opt/sparc64-binutils-2.12.1/bin:$PATH ../gcc-3.1/configure
- --host=i686-pc-linux-gnu --prefix=/opt/sparc-crossgcc-3.1 --with-gnu-as
- --with-as=/opt/sparc64-binutils-2.12.1/bin/sparcv9-solaris-as --with-gnu-ld
- --with-ld=/opt/sparc64-binutils-2.12.1/bin/sparcv9-solaris-ld
- --enable-threads=solaris --target=sparcv9-solaris

Is something wrong with this procedure?

Now I get the the error given as the attachment:
env PATH=/opt/binutils-2.12.1/bin:$PATH make >& make.out

It complains about missing abort(), missing thread.h and missing errno.h.

Has anyone experienced the same problem?

- -- 
Heiko Nardmann (Dipl.-Ing.), h.nardmann@secunet.de, Software Development
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj0IYEoACgkQpm53PRScYyjeKgCggMqLuL/PX5YJjxkvZ5I6z2ee
gSsAoOBYFMuMIjKzbvaJVAtxFnUym6kr
=As0j
-----END PGP SIGNATURE-----

Attachment: make.out
Description: Text document


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