mipsel --without-fp
Stuart Hughes
seh@zee2.com
Thu Dec 4 10:43:00 GMT 2003
dank@kegel.com wrote:
>
> > I was trying to build a mipsel cross compiler using the TOOLCOMBO
> > gcc-3.3.1-glibc-2.2.5 using crosstool. For some reason glibc doesn't
> > seem to build the lib/nof directory so ultimately it fails when the
> > crosstool script tried to copy the nof libraries to their final
> > destination.
>
> Hrm. Maybe the libraries are generated already in their final
> destination (i.e. straight in lib rather than lib/nof) on that
> platform. (I think the buzzword 'multilib' comes into play here,
> e.g. "mips isn't multilibbed yet", but I'm not sure.)
>
> I'm away from my code, so I can't really give good advice,
> but try commenting out that copy...
>
> - Dan
Hi Dan,
Thanks for the tip. I haven't got to the bottom of the whole multi-lib
nof problem, but one change that seems a good idea is to make the
following change in crosstool.sh:
@@ -301,7 +302,7 @@
echo "We check GLIBC_EXTRA_CONFIG ($GLIBC_EXTRA_CONFIG) to see if it
contains --without-fp to decide."
case "$GLIBC_EXTRA_CONFIG" in
*--without-fp*)
- cp -a ${PREFIX}/${TARGET}/lib/nof/*.so* ${PREFIX}/${TARGET}/lib
+ cp -af ${PREFIX}/${TARGET}/lib/nof/*.so* ${PREFIX}/${TARGET}/lib
;;
esac
On powerpc, if you don't do this, although the nof subdirectory is
there, it fails as the links already exist.
cp: cannot create symbolic link
`/usr/local/powerpc-linux/gcc-3.3.1-glibc-2.2.5/powerpc-linux/lib/libstdc++.so':
File exists
cp: cannot create symbolic link
`/usr/local/powerpc-linux/gcc-3.3.1-glibc-2.2.5/powerpc-linux/lib/libstdc++.so.5':
File exists
Regards, Stuart
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list