[Buildroot] invalid commads passed in compiler line results in failure.

daggs daggs at gmx.com
Fri May 5 13:10:53 UTC 2017


Greetings Thomas,

> Hello,
> 
> On Fri, 5 May 2017 10:07:37 +0200, daggs wrote:
> 
> > I'm trying to add a new pkg what compile a kernel driver for arm, upon compilation, I get these errors:
> > aarch64-linux-gcc.br_real: error: unrecognized argument in option ‘-mabi=apcs-gnu’
> > aarch64-linux-gcc.br_real: note: valid arguments to ‘-mabi=’ are: ilp32 lp64
> > aarch64-linux-gcc.br_real: error: unrecognized command line option ‘-mapcs’; did you mean ‘--specs’?
> > aarch64-linux-gcc.br_real: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
> > aarch64-linux-gcc.br_real: error: unrecognized command line option ‘-msoft-float’
> 
> You are passing ARM options to an AArch64 compiler: this cannot work.
> 
> Best regards,
> 
> Thomas

I thought there is something funny in the makefile when it comes to cross compile of arm64, that is why I've searched the code for either apcs, no-sched-prolog or soft-float but I didn't found such.
I wonder of there is a -m32 like switch. I'll follow the arm switches.

Thanks,

Dagg.



More information about the buildroot mailing list