[uClinux-dev] More telnetd and toolchains...

Greg Ungerer gerg at snapgear.com
Mon Jan 23 19:40:50 EST 2006


Hi Daniel,

Daniel Alomar wrote:
> This is the output when I try to compile 2.6.15 with gcc > 2.95

Did you apply the linux-2.6.15-uc0 to an original linux-2.6.15
sourve tree?


> daniel at PortatilLinux:~/uClinux/OuClinux-dist> make
> make -C tools/ucfront
> make[1]: Entering directory
> `/home/daniel/uClinux/OuClinux-dist/tools/ucfront'
> make[1]: `ucfront' está actualizado.
> make[1]: Leaving directory
> `/home/daniel/uClinux/OuClinux-dist/tools/ucfront'
> ln -sf /home/daniel/uClinux/OuClinux-dist/tools/ucfront/ucfront
> tools/ucfront-gcc
> ln -sf /home/daniel/uClinux/OuClinux-dist/tools/ucfront/ucfront
> tools/ucfront-g++
> make ARCH=m68knommu CROSS_COMPILE=m68k-elf- -C linux-2.6.x  || exit 1
> make[1]: Entering directory `/home/daniel/uClinux/OuClinux-dist/linux-2.6.x'
>   CHK     include/linux/version.h
>   CC      arch/m68knommu/kernel/asm-offsets.s
> In file included from include/linux/stddef.h:4,
>                  from arch/m68knommu/kernel/asm-offsets.c:11:
> include/linux/compiler.h:46: #error Sorry, your compiler is too old/not
> recognized.
> make[2]: *** [arch/m68knommu/kernel/asm-offsets.s] Error 1
> make[1]: *** [prepare0] Error 2
> make[1]: Leaving directory `/home/daniel/uClinux/OuClinux-dist/linux-2.6.x'
> make: *** [linux] Error 1

 From linux-2.6.15/include/linux/compiler.h:

#if __GNUC__ > 4
#error no compiler-gcc.h file for this gcc version
#elif __GNUC__ == 4
# include <linux/compiler-gcc4.h>
#elif __GNUC__ == 3
# include <linux/compiler-gcc3.h>
#elif __GNUC__ == 2
# include <linux/compiler-gcc2.h>
#else
# error Sorry, your compiler is too old/not recognized.
#endif

The code should be going through the "__GNUC__ == 2" path.
It does for me, with my gcc-2.95.3 compiler...

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



More information about the uClinux-dev mailing list