[uClinux-dev] Compile Errors on uCLinux

Timo Bruderek timo.bruderek at gmx.de
Tue Oct 4 04:50:06 EDT 2005


Hi Greg,

thanks for the help !!

I havn't tried the patches yet, but i will do this today !

Below you can see the error log of kernel-2.4.
I do a make menuconfig and selected GDB and Armulator. Then do a 'make dep' and 
a 'make all' and that is the result:

make[2]: Entering directory `/home/timo/uClinux/uClinux-dist-test/linux-
2.4.x/arch/armnommu/kernel'
arm-elf-gcc -D__KERNEL__ -I/home/timo/uClinux/uClinux-dist-test/linux-2.4.x/include  
-Wall -Wstrict                                                          -prototypes -Wno-trigraphs -O2 -
fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__                                                          
linux__ -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -
msoft-float   -nostdinc                                                           -iwithprefix include -
DKBUILD_BASENAME=arch  -c -o arch.o arch.c
arm-elf-gcc -D__KERNEL__ -I/home/timo/uClinux/uClinux-dist-test/linux-2.4.x/include  
-Wall -Wstrict                                                          -prototypes -Wno-trigraphs -O2 -
fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__                                                          
linux__ -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -
msoft-float   -nostdinc                                                           -iwithprefix include -
DKBUILD_BASENAME=compat  -c -o compat.o compat.c
arm-elf-gcc -D__KERNEL__ -I/home/timo/uClinux/uClinux-dist-test/linux-2.4.x/include  
-Wall -Wstrict                                                          -prototypes -Wno-trigraphs -O2 -
fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__                                                          
linux__ -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -
msoft-float   -nostdinc                                                           -iwithprefix include -
DKBUILD_BASENAME=dma  -c -o dma.o dma.c
In file included from dma.c:23:
/home/timo/uClinux/uClinux-dist-test/linux-2.4.x/include/asm/mach/dma.h:53: 
warning: useless keywor                                                          d or type name in empty 
declaration
/home/timo/uClinux/uClinux-dist-test/linux-2.4.x/include/asm/mach/dma.h:53: 
warning: empty declarat                                                          ion
arm-elf-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/timo/uClinux/uClinux-dist-
test/linux-2.4.x/include                                                            -DNO_MM -mapcs-32 -
march=armv4 -msoft-float -mno-fpu   -c -o entry-armv.o entry-armv.S
cc1: error: invalid option `no-fpu'
make[2]: *** [entry-armv.o] Error 1
make[2]: Leaving directory `/home/timo/uClinux/uClinux-dist-test/linux-
2.4.x/arch/armnommu/kernel'
make[1]: *** [_dir_arch/armnommu/kernel] Error 2
make[1]: Leaving directory `/home/timo/uClinux/uClinux-dist-test/linux-2.4.x'
make: *** [linux] Error 1

It seems like an error in the toolchain, because of the 'no-fpu' option, but i am not 
sure.

Thanks for help !!

Timo


>Hi Timo,
>
>Timo Bruderek wrote:
>> I am new in this list.
>> I downloaded the newest release (Test-source-dist 20050906).
>> After unzip it, it used the default settings for kernel 2.4 GDB and
>> Armulator and do a "make dep all".
>> 
>> But it doesn't compile. 
>
>Can you send the compile output of the failed build?
>
>
>> So i changed to kernel 2.6, Phillips, LPC22xx (that's my target board) but
>> there was an error again (can't find Makefile in ../armnommu) 
>> 
>> Is this a bug in the distribution or is it special to my system ?
>> I have build the arm-toolchain by myself. It is gcc-4.0.1.
>
>That is definately a bug in the distribution. It is using the
>wrong arch for the kernel when building for arm MMUless targets
>using a 2.6 kernel.
>
>Fix with the attached armnommu.patch.
>
>After that I hit a problem in lpc22xx.h (unbalnaced #endif).
>Fix with attached patch.
>
>But then there is more problems after that. So it looks like the
>LPC22xx target code needs some work in the 2.6.x code base.
>
>Regards
>Greg
>
>
>
>------------------------------------------------------------------------
>Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
>SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
>825 Stanley St,                             FAX:         +61 7 3891 3630
>Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
>PGP-Key : http://www.fh-augsburg.de/~timob/pgpkey.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20051004/0bd9166e/attachment.html>


More information about the uClinux-dev mailing list