[ELDK] Antwort: powerpc kernel compile issue

daniel.schnell.extern at ifm.com daniel.schnell.extern at ifm.com
Fri Jun 6 07:50:34 CEST 2014


> Von: Albrecht Dreß <albrecht.dress at arcor.de>
> An: eldk at lists.denx.de

> As the gcc in 4.2 is rather old, I installed eldk 5.1.1 as being
> documented on the web page, and tried to compile the kernel.  The
> newer gcc now *does* compile the files which threw errors with 4.2
> without warnings or errors, but ejects with a linker error:
> <snip>
>    CC      init/main.o
>    CHK     include/generated/compile.h
>    UPD     include/generated/compile.h
>    CC      init/version.o
>    CC      init/do_mounts.o
>    LD      init/mounts.o
> powerpc-linux-ld: unrecognized option '-Wl,-O1'
> powerpc-linux-ld: use the --help option for usage information
> </snip>
> As compiling 3.2.55 fails with the same messages, I guess I missed
> something essential when installing the eldk, but unfortunately I
> cannot find the reason...  Any enlightenment would be really appreciated!

Try 'unset LDFLAGS'. This helps at least when compiling u-boot.


More information about the eldk mailing list