Hi Jim,
ucli...@browserseal.com wrote:
On 11/18/2009, "Greg Ungerer" <g...@snapgear.com> wrote:
ucli...@browserseal.com wrote:
So, this is what it takes to compile the latest version 20090618 of
uClinux with ARM,
1. Change libc from glibc to uClibc (compilation with glibc will fail
during the patching phase)
2. Change uClibc configuration from CONFIG_ARM_OABI to CONFIG_ARM_EABI
(OABI will fail with '__NR_syscall' undeclared message)
3. In uClibc/libpthread/linuxthreads.old/sysdeps/arm/pt-machine.h change
extern long int testandset (int *spinlock);
to
static long int testandset (int *spinlock);
(otherwise the compilation will fail with multiple definition of
`testandset' error)
4. Do not use latest, i.e. 2009q3 Codesourcery gcc version, use gcc
version 4.3.3 (Sourcery G++ Lite 2009q1-163) instead
5. In arm-2009q1/lib/gcc/arm-uclinuxeabi/4.3.3/include make a link to
./include-fixed/limits.h (otherwise the compilation will fail with
error: limits.h: No such file or directory)
I would say that it is an impressive list which means that currently
uClinux ARM support is pretty much broken ! :)
Sorry, totally disagree.
1. goto web page http://www.uclinux.org/pub/uclinux/dist
2. get uClinux-dist-20090618.tar.bz2
3. follow "ARM Tools" link (on that page) and get latest
arm-linux-tools-20070808.tar.gz and install
4. tar xjf uClinux-dist-20090618.tar.bz2
5. cd uClinux-dist
6. make menuconfig
choose GDB/Skyeye
choose linux-2.6.x kernel
choose uClibc
save and exit
7. make
Builds to completion, no errors.
Well, it appears that you are right and most problems go away if you use
arm-linux-tools-20070808.tar.gz toolchain. Apart from the glibc issue
(being the default and not compiling) which I think is a real, albeit
definitely minor, bug.
Yes, that is real. And it is fixed in patch updates that followed.
I'm not saying who is to blame, but there is a problem here that uClinux
does not compile with the most commonly used cross compiler toolchain,
don't you agree ?
What is the most commonly used cross compiler toolchain?
I mostly use ones I generate myself, like arm-linux-20070808.
Regards
Greg
Should I make a patch, open a bug or something ?
All your issues above (excepting item 1) are to do with "other"
toolchains. Feel free to send patches to fix those.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: g...@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: 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
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: g...@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: 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