On Sat, Jul 19, 2008 at 12:13:23PM +1000, Greg Ungerer wrote: > > Hi Jun, > > Jun Sun wrote: > >On Sun, Jul 13, 2008 at 10:02:08PM +1000, Greg Ungerer wrote: > >>Jun Sun wrote: > >>>This might be a dumb question, but have we considered moving to gcc4.x > >>>for uclinux? Any pro's and con's? What would be the effort to do so? > >>I have been using a gcc-4.2.4 based toolchain for ColdFire work > >>for a few weeks now. I haven't had any problems with it so far. > >> > >>I have been using a gcc-4.2.1 toolchain for uClinux ARM for > >>about a year now, no problems there either. > >> > > > >Thanks, Greg. > > > >Did you use any pre-built toolchain or toolchain source package? Or > >did you just build from GNU source? > > I build my own from gnu source. You can download my arm-linux 4.2.1 > toolchain from: > > http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/arm-linux-tools-20070808.tar.gz > > The instructions I used to build it are at: > > http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/build-arm-linux-4.2.1 > <snip>
Hi, Greg, I tried to follow your instructions and re-create the toolchain on FC3. Things are mostly working now, but it appears I have some problems with elf2flt and flthdr programs. I googled for elf2flt-20060707.tar.gz package and found it under http://fpt.snapgear.org/pub/snapgear/tools/arm-linux/elf2flt-20060707.tar.gz However, when I do ./configure, it complains about missing "config.sub". I copied over a config.sub from a generic uclinux program and managed to build and install the two programs. Later, when I tried to re-build a uclinux target with the new tool chains, I had the following error: --------------- ucfront-gcc arm-linux-gcc -Wl,-elf2flt -msoft-float -D__PIC__ -fpic -msingle-pic-base -Wl,-elf2flt -msoft-float -D__PIC__ -fpic -msingle-pic-base -o boa alias.o auth.o boa.o cgi.o cgi_header.o config.o get.o hash.o globals.o log.o nls.o pipe.o queue.o read.o request.o response.o signals.o timestamp.o util.o -lcrypt /usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld: line 177: 1011 Segmentation fault $ELF2FLT $FLTFLAGS -o "$OFILE" -p "$OFILE.gdb" "$RFILE" collect2: ld returned 139 exit status make[4]: *** [boa] Error 1 make[4]: Leaving directory `/home/jsun/build/uClinux-dist-test-build/user/boa/src' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/jsun/build/uClinux-dist-test-build/user/boa' make[2]: *** [boa] Error 2 make[2]: Leaving directory `/home/jsun/build/uClinux-dist-test-build/user' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/jsun/build/uClinux-dist-test-build/user' make: *** [subdirs] Error 1 --------------- When I copied over these two executables from your binary distro, then the build went well, which seems to indicate my elf2flt and flthdr are not built correctly. Here is the configure command I used for configuring elf2flt: --------------- ./configure --target=arm-linux \ --with-libbdf=/home/jsun/build/greg-tools/binutils-2.17/arm-linux/bfd/libbfd.a \ --with-libiberty=/home/jsun/build/greg-tools/binutils-2.17/arm-linux/libiberty/libiberty.a \ --with-bfd-include-dir=/home/jsun/build/greg-tools/binutils-2.17/arm-linux/bfd --------------- Do you have any ideas what went wrong? Thanks in advance. Cheers. Jun _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
