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]

cross-gcc problem when building libraries for pc-linux


Hi all,

perhaps someone can comment on my problem building a cross-GCC:

I'm trying to make a cygwin hosted GCC generating pc-linux target code (I used
--target=i686-pc-linux-gnu). Building the binutils works fine, the gcc-core
also. Trying the full gcc package results in the following error message

/usr/local/src/gcc-2.95.2/libiberty/strerror.c:461: conflicting types for
`sys_errlist'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include/stdio.h:557:

previous declaration of `sys_errlist'
make[1]: *** [strerror.o] Error 1
make: *** [all-target-libiberty] Error 2

Well, if I ignore these (or similar) messages, install the compiler and then
take the libraries from the target system for linking, everything is working.
However, I would like to know why I cannot build these libraries locally.
Obviously, I took the wrong header files from the target system - but which ones
are correct? The target Linux runs egcs-2.91.66, and I simply took the header
files from /usr/include - perhaps I was wrong?

Thanks a lot,

Michael






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