[Buildroot] EABIhf: breaks kernel build

Peter Korsgaard jacmet at uclibc.org
Fri Jul 19 20:07:34 UTC 2013

>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

 Yann> Thomas, All,
 Yann> Since the ARM EABIhf stuff was committed, the Linux kernel build is
 Yann> broken, and fails with this message:
 Yann>     armv6-rpi36-linux-gnueabi-gcc: error: -mfloat-abi=soft and
 Yann>     -mfloat-abi=hard may not be used together

 Yann> This is because -mfloat-abi=hard is hard-coded in the wrapper, but the
 Yann> kernel wants to pass -msoft-float.

 Yann> See attach exerpt of my build log (with a instrumented ext-ttolchain
 Yann> wrapper). Notice argv[6] and argv[41]:

 Yann>     argv[6]='-mfloat-abi=hard'
 Yann>     argv[41]='-msoft-float'

 Yann> argv[6] is out hard-coded float ABI option, while argv[41] is passed by
 Yann> the kernel.

 Yann> I don't know how to solve this.

 Yann> The trivial and immediate idea would be to have a black-list of
 Yann> arguments and exclude the ones we pass that conflict with the ones
 Yann> passed on the command line, but this will be *very* complex and always
 Yann> incomplete.

Yeah, but I think it's the best solution still.

Bye, Peter Korsgaard

More information about the buildroot mailing list