[ELDK] Do not use -Os option - enable-target-optspace not set

Khalid Mohiuddin khalid.mohiuddin at dektech.com.au
Mon Nov 14 15:51:16 CET 2011


Hi All,
   I was trying to build kernel 3.x(git://git.denx.de/linux-denx.git).  
Below are the errors I got when I tried to compile the kernel.

khalid at khalid-VPCS13S9E:~/ctbuild/linux-denx/linux-denx$ make  
ARCH=powerpc CROSS_COMPILE=powerpc-linux- uImage
   CHK     include/linux/version.h
   CHK     include/generated/utsrelease.h
   CALL    scripts/checksyscalls.sh
   CHK     include/generated/compile.h
   CALL    arch/powerpc/kernel/systbl_chk.sh
   BOOTAS  arch/powerpc/boot/string.o
cc1: error: Do not use -Os option if --enable-target-optspace is not set.
make[1]: *** [arch/powerpc/boot/string.o] Error 1
make: *** [uImage] Error 2
khalid at khalid-VPCS13S9E:~/ctbuild/linux-denx/linux-denx$  
powerpc-linux-gcc -Os -S -o /dev/null -xc /dev/null
cc1: error: Do not use -Os option if --enable-target-optspace is not set.


For configuration, I was using 85xx/tqm8548_defconfig file.

Thanks for your help.(please consider that I am new linux user when replying).

Regards
Khalid





More information about the eldk mailing list