2009-06-27 08:16:27 Error while compiling laste release
montassar haj (TUNISIA)
Message: 76426
Hi
I am compiling my uClinux-Dist and tool chain with latest svn version. Getting the following compilation problem::
CC ../../e2fsprogs-1.41.6/e2fsck/profile.c
CC prof_err.c
CC ../../e2fsprogs-1.41.6/e2fsck/crc32.c
LD e2fsck
util.o: In function `init_resource_track':
../../e2fsprogs-1.41.6/e2fsck/util.c:280: undefined reference to `_sbrk'
util.o: In function `print_resource_track':
../../e2fsprogs-1.41.6/e2fsck/util.c:345: undefined reference to `_sbrk'
collect2: ld returned 1 exit status
make[5]: *** [e2fsck] Error 1
make[5]: Leaving directory `/home/haj/work/uclinux-dist-trunk-svn-8357/user/e2fsprogs/build-e2fsprogs-1.41.6/e2fsck'
make[4]: *** [install-progs-recursive] Error 1
make[4]: Leaving directory `/home/haj/work/uclinux-dist-trunk-svn-8357/user/e2fsprogs/build-e2fsprogs-1.41.6'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/haj/work/uclinux-dist-trunk-svn-8357/user/e2fsprogs'
make[2]: *** [e2fsprogs] Error 2
make[2]: Leaving directory `/home/haj/work/uclinux-dist-trunk-svn-8357/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/haj/work/uclinux-dist-trunk-svn-8357/user'
make: *** [subdirs] Error 1
what could be the problem??
QuoteReplyEditDelete
2009-06-27 08:40:38 Re: Error while compiling laste release
Robin Getz (UNITED STATES)
Message: 76427
Aymen:
I assume that it is svn toolchain, with svn uClinux-dist? trunk or 2009 branch?
QuoteReplyEditDelete
2009-06-27 09:21:08 Re: Error while compiling laste release
montassar haj (TUNISIA)
Message: 76428
Aymen:
I assume that it is svn toolchain, with svn uClinux-dist? trunk or 2009 branch?
---
For tue uClinux-dist i use the Nightly Snapshots release:
https://blackfin.uclinux.org/gf/download/frsrelease/345/3632/uclinux-dist-trunk-svn.src.tar.bz2
and for the toolchain i use the the Nightly Snapshots release:
blackfin-toolchain-uclinux
blackfin.uclinux.org/gf/download/frsrelease/344/6451/blackfin-toolchain-uclinux-SVN.OS_X-10.5.7.i386.tar.bz2
blackfin-toolchain-build-linux
blackfin.uclinux.org/gf/download/frsrelease/344/3551/blackfin-toolchain-build-linux-SVN-20090627.log.bz2
Should i use the trunk or 2009 branche release?
QuoteReplyEditDelete
2009-06-27 09:44:35 Re: Error while compiling laste release
montassar haj (TUNISIA)
Message: 76429
Aymen:
I assume that it is svn toolchain, with svn uClinux-dist? trunk or 2009 branch?
---
For tue uClinux-dist i use the Nightly Snapshots release:
https://blackfin.uclinux.org/gf/download/frsrelease/345/3632/uclinux-dist-trunk-svn.src.tar.bz2
and for the toolchain i use the the Nightly Snapshots release:
blackfin-toolchain-uclinux
blackfin.uclinux.org/gf/download/frsrelease/344/6451/blackfin-toolchain-uclinux-SVN.OS_X-10.5.7.i386.tar.bz2
blackfin-toolchain-build-linux
blackfin.uclinux.org/gf/download/frsrelease/344/3551/blackfin-toolchain-build-linux-SVN-20090627.log.bz2
Should i use the trunk or 2009 branche release?
QuoteReplyEditDelete
2009-06-29 03:51:46 Re: Error while compiling laste release
Mike Frysinger (UNITED STATES)
Message: 76449
are you actually running OS X ? e2fsck builds for me on OS X w/out any sbrk errors.
QuoteReplyEditDelete
2009-06-29 04:04:56 Re: Error while compiling laste release
Peter Gombos (HUNGARY)
Message: 76451
I have the same problem. I have the same error message if any ext2 tool included.
Ext2/3 works fine in the kernel but I can't build mkfs.ext2
QuoteReplyEditDelete
2009-06-29 04:08:27 Re: Error while compiling laste release
Mike Frysinger (UNITED STATES)
Message: 76453
you didnt say what version of software you're using exactly (uclinux-dist/kernel/toolchain) nor did you say what your development host is exactly
QuoteReplyEditDelete
2009-06-29 06:57:28 Re: Error while compiling laste release
montassar haj (TUNISIA)
Message: 76461
you didnt say what version of software you're using exactly (uclinux-dist/kernel/toolchain) nor did you say what your development host is exactly
---
No i don't use the OS X , i'm using as OS: ubuntu 8.04 and.
For tue uClinux-dist i use the Nightly Snapshots release:
https://blackfin.uclinux.org/gf/download/frsrelease/345/3632/uclinux-dist-trunk-svn.src.tar.bz2
and for the toolchain i use the the Nightly Snapshots release:
blackfin-toolchain-uclinux
blackfin-toolchain-build-linux
thinks
QuoteReplyEditDelete
2009-06-29 12:29:26 Re: Error while compiling laste release
Mike Frysinger (UNITED STATES)
Message: 76474
and what does `bfin-uclinux-gcc-4.3.3 --version` report ? the sbrk() issue should have been fixed in the latest toolchain a while ago. if you download snaps, you need to periodically update them. they most certainly are not meant for continuous development.
does this simple test code work ?
echo 'main(){return sbrk();}' > test.c
bfin-uclinux-gcc test.c
QuoteReplyEditDelete
2009-06-30 12:50:26 Re: Error while compiling laste release
montassar haj (TUNISIA)
Message: 76528
and what does `bfin-uclinux-gcc-4.3.3 --version` report ? the sbrk() issue should have been fixed in the latest toolchain a while ago. if you download snaps, you need to periodically update them. they most certainly are not meant for continuous development.
does this simple test code work ?
echo 'main(){return sbrk();}' > test.c
bfin-uclinux-gcc test.c
---
thinks.
this simple test code work fine. but the problem is the same i trayed even whithn trunk /branches/2009R1 but still got the same errors..
thinks for help
QuoteReplyEditDelete
2009-07-04 12:26:43 Re: Error while compiling laste release
montassar haj (TUNISIA)
Message: 76798
thinks to all
the branches uClunix 2009-R1 compile fine with the branche 2009-R1 toolchaines.
how wants to compile this version should get the toolchaine from same version and compile it then evrey think will works good.
thinks
QuoteReplyEditDelete
2009-07-04 13:05:41 Re: Error while compiling laste release
Robin Getz (UNITED STATES)
Message: 76799
Montassar:
That is what the standard documentation, including the FAQ state.
https://docs.blackfin.uclinux.org/doku.php?id=faq
Why do I need to use the same version of toolchain/kernel/uClibc/U-boot/uClinux-dist?