This is the mail archive of the crossgcc@sources.redhat.com 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]

Re: building a i386-sysv cross compiler


On Freitag, 17. August 2001 12:35 David Korn wrote:
> >i just wanted to have a gcc that is able to build i386 sysv
> >coff executables.
>
>   You should be using i386-sysv, then, not i386-coff, and you'll need
> the headers, libs and startup files supplied by the OS manufacturer, or
> could perhaps use glibc.  The plain i386-coff (no OS specifier ) target is
> for embedded boards with no OS, and newlib is a c library for embedded
> boards with no OS, but it sounds like you have a desktop computer running
> an operating system which you want to target...
>
>
>      DaveK

oh yes, sorry for not saying this earlier...
it should build sco-sysv 3.2 executables and i have this 'machine' here 
beside me, so i copied the /usr/lib to linux:/tmp/lib
and the /usr/include to linux:/tmp/include 

i compiled binutils with
../binutils/configure --target=i386-sysv --prefix=/bar
make all install
and -- again - no problems

but now i get another gcc error (sigh;-) :
../gcc/configure --target=i386-sysv --prefix=/bar -v 
--with-headers=/tmp/include --with-libs=/tmp/lib --enable-languages=c
make all-gcc install-gcc

[snip]
rm -f tmp-dum.c tmp-dum.s
touch s-under
gcc -c -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I. 
-I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config 
-I../../gcc-2.95.3/gcc/../include underscore.c
rm -f collect2
gcc -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H  -o collect2 
collect2.o tlink.o hash.o intl.o underscore.o version.o  obstack.o        
../libiberty/libiberty.a
cp xgcc gcc-cross
/root/download/build_gcc/gcc/xgcc -B/root/download/build_gcc/gcc/ 
-B/bar/i386-sysv/bin/ -I/bar/i386-sysv/include -dumpspecs > tmp-specs
mv tmp-specs specs
touch stmp-headers
mv libgcc1.a libgcc1.cross || (echo You must find a way to make libgcc1.a; 
false)
You must find a way to make libgcc1.a
make[1]: Leaving directory `/download/build_gcc/gcc'
[snap]

then i crawled the mailinglist-archive again and found this:
http://sources.redhat.com/ml/crossgcc/2000-q2/msg00195.html

i tried it out, with the link to the newlib/include thing and other configure 
options but it stopped with the same complaining about missing libgcc1.a

can i claim your help again?
thx,
flo

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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