public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* RE: cross-gcc problem when building libraries for pc-linux
@ 2000-12-15  8:52 Nathan Knuth
  0 siblings, 0 replies; 3+ messages in thread
From: Nathan Knuth @ 2000-12-15  8:52 UTC (permalink / raw)
  To: 'Michael2.Roth@RSD.rohde-schwarz.com'; +Cc: crossgcc

I have gone down this same path and one little gem that you can't do without
is the following command: 

(cd gcc; make installdirs)

That is, after running configure, in your gcc compilation directory (mine
was gccobj) type the command above.  This prepares the target directory
structure for the compiler.

I saw the same problem w/ libiberty and this command made the difference.

Nathan

-----Original Message-----
From: Michael2.Roth@RSD.rohde-schwarz.com
[ mailto:Michael2.Roth@RSD.rohde-schwarz.com ]
Sent: Friday, December 15, 2000 8:40 AM
To: crossgcc@sourceware.cygnus.com
Subject: 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-gn
u/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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* cross-gcc problem when building libraries for pc-linux
@ 2000-12-15  8:40 Michael2.Roth
  2000-12-18 10:33 ` Kai Ruottu
  0 siblings, 1 reply; 3+ messages in thread
From: Michael2.Roth @ 2000-12-15  8:40 UTC (permalink / raw)
  To: crossgcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-18 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-15  8:52 cross-gcc problem when building libraries for pc-linux Nathan Knuth
  -- strict thread matches above, loose matches on Subject: below --
2000-12-15  8:40 Michael2.Roth
2000-12-18 10:33 ` Kai Ruottu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).