This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Mon, 13 Dec 1999, 戀上泉水.... wrote: > > Hi All. > > I'm making the cross-gcc for ARM with "gcc-2.95.2",and some > errors came up. > _muldi3 > ./libgcc2.c:41: stdlib.h: No such file or directory > ./libgcc2.c:42: unistd.h: No such file or directory The usual fix is to include the target OS system files under the directory "$(prefix)/$(target)/include" or - if no such headerfiles exist - configure GCC with the "--enable-newlib" option. This also requires you to softlink two of newlibs subdirectories into the GCC root source directory to allow 'configure' to find them and "xgcc -I./newlib" include them. [gcc-2.95.2]$ ln -s ../newlib-1.8.1/newlib/ newlib [gcc-2.95.2]$ ln -s ../newlib-1.8.1/libgloss/ libgloss > In the file libgcc2.c ,the follows are line 39 to line 43 > > #ifndef inhibit_libc > /* fixproto guarantees these system headers exist. */ > #include <stdlib.h> > #include <unistd.h> > #endif > > This error didn't happen with "gcc-2.8.1" because in the file > libgcc2.c of gcc-2.8.1,these 5 lines DON'T EXIST. You telling me we _had_ a LibC free implementation and now we don't? Can someone tell me how _that_ came to be? There are some options in the "$target.h" file that can be modified to allow GCC to be built without floating point support in the form of 'libgcc?.a' library. This is not what I want. Rather I want a truly standalone soft floating point emulation. At least for the usual embedded targets. For OS targets this is of no concern. Unfortunately, I am not clever enough to fix this myself. -- ****************************************************** Never ever underestimate the power of human stupidity. -Robert Anson Heinlein GeirFRS@invalid.and.so.forth ****************************************************** ------ 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] |