[uClinux-dev] Compile Errors on uCLinux

Greg Ungerer gerg at snapgear.com
Tue Oct 4 21:44:48 EDT 2005


Hi Timo,

Timo Bruderek wrote:
> 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:
> 
> 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

What tool chain are you using?

I can compile the recent test-dist with the older
arm-elf-tools-20030314.sh.

Regards
Greg




> It seems like an error in the toolchain, because of the 'no-fpu' option, 
> but i am not sure.> 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
> 
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org

-- 
------------------------------------------------------------------------
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



More information about the uClinux-dev mailing list