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] |
Other format: | [Raw text] |
As indicated by my subject, particularly the last word, I am beginning to wonder if I am losing my mind or not while trying to devise a script to build a cross-compiler toolchain. Now I know there are many such scripts out there, most notably the one done by Dan Kegel.
I certainly came close to losing my mind while writing my script, so your experience corelates well with mine :-)
purpose of my script, however, is to try and integrate itself a little bit with Gentoo's portage system, and for the most part, the script works flawlessly. ...
Now I have been testing my script by attempting to compile an i686-pc-linux-gnu -> mips-unknown-linux-gnu cross-compiler. About halfway, maybe more through glibc, I get the following error:
/home/crossdev/mips/lib/gcc-lib/mips-unknown-linux-gnu/3.3.2/../../../../mips-unknown-linux-gnu/bin/ld:/usr/obj/portage/crossdevbuild/glibc-2.3.2/buildhere/shlib.lds:220: syntax error
Line #220 of shlib.lds reads the following:
/home/crossdev/mips/lib/gcc-lib/mips-unknown-linux-gnu/3.3.2/../../../../mips-unknown-linux-gnu/bin/ld: cannot open crti.o: No such file or directory
Hmm. Other people have occasionally run into problems like this, see e.g. http://www.x86-64.org/lists/discuss/msg03853.html ooh, and this one: http://mail.gnu.org/archive/html/bug-glibc/2003-07/msg00076.html which says "This indicates an interesting little build problem with current glibc, as it would appear that you can't build a shared glibc without already having glibc installed (crti.o is part of glibc). A likely workaround is to first build glibc with --disable-shared, install, then rebuild."
In any case, it would probably be a good idea for you to understand how shlib.lds is generated, and what it's for... - Dan
-- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |