This is the mail archive of the crossgcc@sourceware.org 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] |
Jussi, All, On Wednesday 03 December 2008 14:02:32 Eronen, Jussi (GE Healthcare) wrote: > I had to delete patch "270-soft-float.patch". With this in place glibc > build always fails due to missing arithmetic primitives (__gcc_gadd, > __gcc_gsub, __gcc_gmul, __gcc_gdiv). > Is there a better way to fix this than what I did by removing the file? Did you tell crosstool-NG to build a soft-float toolchain? This is in "Target options" ---> "Floating point:" --> "software" > F8 native gcc -dumpmachine gives i386-redhat-linux, but config.guess says > i686-pc-linux-gnu and build fails. Yes. Painful, isn't it? :-) > Your latest version in svn almost fixes this and a small change made it > work for me: > + ? ?CT_BUILD=$(./tools/config.sub "${CT_BUILD}") > + ? ?CT_HOST=$(./tools/config.sub "${CT_HOST}") This was wrong in the begining. > changed two last lines to > + CT_BUILD=$(`dirname $0`/../tools/config.sub "${CT_BUILD}") > + CT_HOST=$(`dirname $0`/../tools/config.sub "${CT_HOST}") Not far. :-) The correct fix is attached. Could you give it a try, please? BTW, I am collecting fixes both in the 1.3 branch in the repository, but also as a set of patches in the crosstool-Ng download directory. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ | | --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | `------------------------------^-------^------------------^--------------------'
Index: ct-ng.1.3/scripts/crosstool.sh =================================================================== --- ct-ng.1.3/scripts/crosstool.sh (revision 1256) +++ ct-ng.1.3/scripts/crosstool.sh (revision 1257) @@ -303,8 +303,8 @@ # Not only will it give us full-qualified tuples, but it will also ensure # that they are valid tuples (in case of typo with user-provided tuples) # That's way better than trying to rewrite config.sub ourselves... - CT_BUILD=$(./tools/config.sub "${CT_BUILD}") - CT_HOST=$(./tools/config.sub "${CT_HOST}") + CT_BUILD=$(CT_DoConfigSub "${CT_BUILD}") + CT_HOST=$(CT_DoConfigSub "${CT_HOST}") # Modify BUILD and HOST so that gcc always generate a cross-compiler # even if any of the build, host or target machines are the same.
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |