This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: can't find stdio, etc. building m68k-coff cross from i586-linux
- To: law at cygnus dot com
- Subject: Re: can't find stdio, etc. building m68k-coff cross from i586-linux
- From: "Robert J. Brown" <rj at eli dot elilabs dot com>
- Date: Wed, 4 Mar 1998 22:36:27 -0600
- Cc: "Robert J. Brown" <rj at eli dot elilabs dot com>, egcs-bugs at cygnus dot com
- References: <199803040623.AAA29831@eli.elilabs.com><16244.888999476@hurl.cygnus.com>
>>>>> "Jeffrey" == Jeffrey A Law <law@cygnus.com> writes:
Jeffrey> In message <199803040623.AAA29831@eli.elilabs.com>you
Jeffrey> write:
>> I am trying to build a set of cross compilers for an embedded
>> project. I have m68k-coff and powerpc-elf targets and an
>> i586-linux host. I first built egcs 1.0.1 native by doing a
>> make bootstrap, after building binutils 2.8.1.0.21. The native
>> bootstrap went ok.
>>
>> Now I build the save version of binutils targeted to m68k-coff
>> and that goes ok, but when I try to build the m68k-coff cross
>> compiler, it dies thusly:
Jeffrey> Did you supply a --with-headers argument to configure?
>> I think maybe the new native ecgs does not know where to find
>> these standard include files. What have I "crossed up"?
Jeffrey> THere is no standard place to find cross include files.
Well, I am trying something more sensible now, I think, but it still
is not finding the header files. I specified the following to
configure:
/away/zen/gnu/cross/egcs-1.0.1/configure --prefix=/away/zen/gnu/cross/targets/m68k-coff --target=m68k-coff --with-newlib --with-headers=/away/zen/gnu/cross/newlib-1.8.0/newlib/libc/include
So I am building with newlib, which makes sense to me. :-)
But it is still not finding the header files:
/away/zen/gnu/cross/egcs_build/gcc/xgcc -B/away/zen/gnu/cross/egcs_build/gcc/ -c -g -O2 -I. -I/away/zen/gnu/cross/egcs-1.0.1/libiberty/../include /away/zen/gnu/cross/egcs-1.0.1/libiberty/choose-temp.c
/away/zen/gnu/cross/egcs-1.0.1/libiberty/choose-temp.c:26: sys/types.h: No such file or directory
/away/zen/gnu/cross/egcs-1.0.1/libiberty/choose-temp.c:27: sys/file.h: No such file or directory
/away/zen/gnu/cross/egcs-1.0.1/libiberty/choose-temp.c:36: stdio.h: No such file or directory
make[2]: *** [choose-temp.o] Error 1
make[2]: Leaving directory `/away/zen/gnu/cross/egcs_build/m68k-coff/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/away/zen/gnu/cross/egcs_build'
make: *** [cross] Error 2
It seems like the problem is in libiberty not finding the include
files. In fact, grepping the output from the entire "configure .. make
cross" procedure, I never find any occurrance of the string
"/newlib/libc/include" anywhere except on the "configure" invocation,
which seems like either I am doind something terribly wrong, or
configure does not recognize "--with-headers=" properly.
Is there maybe an undocumented ordering dependency for --with-headers=
and --with-newlib?
--
-------- "And there came a writing to him from Elijah" [2Ch 21:12] --------
Robert Jay Brown III rj@eli.elilabs.com http://www.elilabs.com 1 847 705-0424
Elijah Laboratories Inc.; 37 South Greenwood Avenue; Palatine, IL 60067-6328
----- M o d e l i n g t h e M e t h o d s o f t h e M i n d ------