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] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |