delorie.com/archives/browse.cgi | search |
Message-ID: | <005701c0ecf5$b1346ec0$b0100aac@stpp.soft.net> |
From: | "Anita Kulkarni" <anitak AT kpit DOT com> |
To: | <djgpp AT delorie DOT com> |
Subject: | problem with the cross compiler built on linux |
Date: | Mon, 4 Jun 2001 18:25:49 +0530 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2014.211 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
Reply-To: | djgpp AT delorie DOT com |
I have built a cross compiler on i586-pc-linux I configured binutils, gcc with --target=i586-pc-msdosdjgpp --prefix=/usr/new Before make I have done the following: gcc ~/djgpp/src/stub/stubify.c -o stubify cd /usr/new/lib/gcc-lib/i586-pc-msdosdjgpp/2.9-gnupro-99r1p1 mv ~/djgpp/src/stub/stubify . ln -s ~/djgpp/lib/* . cd /usr/new/lib/gcc-lib/i586-pc-msdosdjgpp/2.9-gnupro-99r1p1 ln -s ~/djgpp/include . then make make install If Compile hello.c /usr/new/bin/i586-pc-msdosdjgpp-gcc hello.c libc.a:cannot read symbols: Malformed archive I think i586-pc-msdosdjgpp-gcc is not using i586-pc-msdosdjgpp-ld So if I do /usr/new/bin/i586-pc-msdosdjgpp-gcc -o hello.c /usr/new/bin/i586-pc-msdosdjgpp-ld /usr/new/lib/gcc-lib/i586-pc-msdosdjgpp/2.9-gnupro-99r1p1/crt0.o ./hello.o -L/usr/new/lib/gcc-lib/i586-pc-msdosdjgpp/2.9-gnupro-99r1p1 -lgcc -lc -lgcc -Tdjgpp.djl STILL I get the above error usr/new/lib/gcc-lib/i586-pc-msdosdjgpp/2.9-gnupro-99r1p1/libc.a:could not read symbols: Malformed archive What could be wrong? Regards, Anita Kulkarni
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |