Not need.

Content of the compiler is not changed, it just be moved to the other
directory.
I think it's easy to swap one toolchain to another in this way.

2008/11/13 David McCullough <[EMAIL PROTECTED]>

>
> Jivin Arthur Wong lays it down ...
> > OK, thanks very much.
> >
> > It's built successful base arm-linux-tools-20070808 with David's
> suggestion.
> >
> > * set "CPUFLAGS := -msoft-float" in the top of file config.arch. ( that
> > could fix the "hard-float and soft-float" issue )
> > * Make sure that uClibc/.config has the FPU disabled,  but support for
> > floats enabled. ( the default setting is as that actually )
>
> Great :-)
>
> Did you need to move the compiler back to /usr/local or not ?
>
> Cheers,
> Davidm
>
> > 2008/11/13 David McCullough <[EMAIL PROTECTED]>
> >
> > >
> > > Jivin Arthur Wong lays it down ...
> > > > In fact, i do  *use*  the arm-linux-tools-20070808, and i have run
> "make
> > > > distclean" before building.
> > > >
> > > > Because i don't want to set the PATH again,  the content of
> > > > "arm-linux-tools-20070808" was included in the
> > > > "/opt/netspectrum/gcc344- arm7tdmi-softfloat/"
> > > > directory (which same as our own toolchain's path).
> > > >
> > > > I would set the "CPUFLAGS" and try again.
> > >
> > > I would suggest you put it in it's correct location if this doesn't
> > > help.
> > >
> > > The PATH is easy:
> > >
> > >        PATH="/usr/local/bin:$PATH"
> > >        export PATH
> > >        make
> > >
> > > ;-)
> > >
> > > Cheers,
> > > Davidm
> > >
> > > > 2008/11/13 David McCullough <[EMAIL PROTECTED]>
> > > >
> > > > >
> > > > > Jivin Arthur Wong lays it down ...
> > > > > ...
> > > > > > > > > > btw. If the "Build STLport" option is selected and run
> > > "make",
> > > > > errors
> > > > > > > > > would
> > > > > > > > > > be displayed such as my *second* email.
> > > > > > > > >
> > > > > > > > > I must have missed those.  Which dist are you using ?
>  Which
> > > > > toolchain
> > > > > > > ?
> > > > > > > >
> > > > > > > > uClinux-dist-20080808 and arm-linux-gcc-3.4.4 ( the toolchain
> > > built
> > > > > by
> > > > > > > > ourselves with single lib support, little endian/soft-float )
> > > > > > >
> > > > > > > Ok,  did you build that with a static libgcc ?
> > > > > > >
> > > > > > > You could try the toolchain we use at:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > >
> http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/arm-linux-tools-20070808.tar.gz
> > > > > > >
> > > > > > > and see if that helps (extract at / as root and add
> /usr/local/bin
> > > to
> > > > > > > the front of of your PATH).
> > > > > > >
> > > > > > > We build STLport for arm (little/big) every day.  Check you are
> > > using
> > > > > > > the vendors/config/arm/config.arch from within your own
> > > config.arch.
> > > > > > > The SecureComputing SG580 would have it all there in terms of
> > > config.
> > > > > > > Also check that you have STLPORT_SHARED enabled,  IIRC,
>  non-shared
> > > > > > > builds may not longer work,  but I could be wrong on that ;-)
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Davidm
> > > > > > >
> > > > > >
> > > > > > Thanks David !
> > > > > >
> > > > > > I have rebuilt the  STLport library with
> arm-linux-tools-20070808,
> > > and
> > > > > > enabled the STLPORT_SHARED option;
> > > > > > But i met the "hardware FP and software FP" error:
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real:
> > > > > > ERROR:
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/crtendS.o
> > > > > > uses hardware FP, whereas obj/gcc/shared/libstdc++.so.5.0.0.gdb
> uses
> > > > > > software FP
> > > > >
> > > > >
> > > > >
> > > > > Who is linking against these files ?  They are not from the
> > > > > arm-linux-tools-20070808 toolchain by the looks.
> > > > >
> > > > >
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real:
> > > > > > failed to merge target specific data of file
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/crtendS.o
> > > > > >
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real:
> > > > > > ERROR:
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/crtn.o
> > > > > > uses hardware FP, whereas obj/gcc/shared/libstdc++.so.5.0.0.gdb
> uses
> > > > > > software FP
> > > > > >
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real:
> > > > > > failed to merge target specific data of file
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/crtn.o
> > > > > >
> > > > > >
> > > > >
> > >
> /opt/netspectrum/gcc344-arm7tdmi-softfloat/bin/../lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real:
> > > > > > error: no memory region specified for loadable section `.plt'
> > > > > >
> > > > > > collect2: ld returned 1 exit status
> > > > > >
> > > > > >
> > > > > > An explanation: with our own toolchain, it only support single
> lib
> > > > > > (le/softefloat), so this error is not displayed;  but have met
> some
> > > other
> > > > > > error:
> > > > >
> > > > >
> > > > > You can build soft and hard float with the arm-linux-tools-20070808
> > > > > toolchain,  but you need to ensure that everything is built one way
> of
> > > > > the other.  This means checking your uClibc .config settings match
> your
> > > > > compiler command lines used.
> > > > >
> > > > > Normally I would just say,  do a "make clean",  you have some old
> > > > > objects from a previous build still included.
> > > > >
> > > > > I still think you should do this.
> > > > >
> > > > > > ... uclinux-888/include/STLport/new:48:48: ../3.4.4/new: no such
> file
> > > or
> > > > > > directory
> > > > > > ... uclinux-888/include/STLport/stl/_alloc.h:459: error:
> `bad_alloc'
> > > is
> > > > > not
> > > > > > a member of `std'
> > > > > > ... uclinux-888/include/STLport/stl/_alloc.c:76: error:
> `bad_alloc'
> > > is
> > > > > not a
> > > > > > member of `std'
> > > > > > ... uclinux-888/include/STLport/exception:62:58:
> ../3.4.4/exception:
> > > no
> > > > > such
> > > > > > file or directory
> > > > > > ... uclinux-888/include/STLport/stl/_pthread_alloc.c:81: error:
> > > > > `bad_alloc'
> > > > > > is not a member of `std'
> > > > > > ... uclinux-888/include/STLport/stl/_pthread_alloc.c:90: error:
> > > > > `bad_alloc'
> > > > > > is not a member of `std'
> > > > >
> > > > > Is this with the arm-linux-tools-20070808 compile ?
> > > > > Can you should me the command line ?
> > > > >
> > > > > > I don't know whether these error would be displayed again if the
> > > > > "hardware
> > > > > > FP and software FP" issue is fixed (base
> arm-linux-tools-20070808).
> > > > > > But now i even have no idea about how to solve the "hardware FP
> and
> > > > > software
> > > > > > FP" problem.
> > > > >
> > > > > make clean
> > > > >
> > > > > use the arm-linux-tools-20070808 toolchain and only that tool chain
> for
> > > > > everything.
> > > > >
> > > > > If you want soft float,  add
> > > > >
> > > > >        CPUFLAGS := -msoft-float
> > > > >
> > > > > to the top of your config.arch. Make sure that uClibc/.config has
> the
> > > > > FPU disabled,  but support for floats enabled.
> > > > >
> > > > > Cheers,
> > > > > Davidm
> > > > >
> > > > > --
> > > > > David McCullough,  [EMAIL PROTECTED],   Ph:+61
> > > > > 734352815
> > > > > Secure Computing - SnapGear  http://www.uCdot.org
> > > > > http://www.snapgear.com
> > > > > _______________________________________________
> > > > > uClinux-dev mailing list
> > > > > uClinux-dev@uclinux.org
> > > > > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > > > > This message was resent by uclinux-dev@uclinux.org
> > > > > To unsubscribe see:
> > > > > http://mailman.uclinux.org/mailman/options/uclinux-dev
> > > > >
> > >
> > > > _______________________________________________
> > > > uClinux-dev mailing list
> > > > uClinux-dev@uclinux.org
> > > > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > > > This message was resent by uclinux-dev@uclinux.org
> > > > To unsubscribe see:
> > > > http://mailman.uclinux.org/mailman/options/uclinux-dev
> > >
> > > --
> > > David McCullough,  [EMAIL PROTECTED],   Ph:+61
> > > 734352815
> > > Secure Computing - SnapGear  http://www.uCdot.org
> > > http://www.snapgear.com
> > > _______________________________________________
> > > uClinux-dev mailing list
> > > uClinux-dev@uclinux.org
> > > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > > This message was resent by uclinux-dev@uclinux.org
> > > To unsubscribe see:
> > > http://mailman.uclinux.org/mailman/options/uclinux-dev
> > >
>
> > _______________________________________________
> > uClinux-dev mailing list
> > uClinux-dev@uclinux.org
> > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > This message was resent by uclinux-dev@uclinux.org
> > To unsubscribe see:
> > http://mailman.uclinux.org/mailman/options/uclinux-dev
>
> --
> David McCullough,  [EMAIL PROTECTED],   Ph:+61
> 734352815
> Secure Computing - SnapGear  http://www.uCdot.org
> http://www.snapgear.com
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to