mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "György Kövesdi" <kgy@teledigit.eu>
To: barebox@lists.infradead.org
Subject: Re: Compiling barebox for newest Yocto/meta-freescale
Date: Tue, 23 Jun 2015 13:29:42 +0200	[thread overview]
Message-ID: <55894326.5000107@teledigit.eu> (raw)
In-Reply-To: <1435047176.25607.3.camel@pengutronix.de>

Hi Jan,

> I had to change
> -       oe_runmake
> +       oe_runmake CC="$CC"
> for recent yocto versions. What was your fix?
My fix was more complicated, by exporting ${TOOLCHAIN_OPTIONS} and 
${HOST_CC_ARCH}. Thanks for this simpler solution.
>> The option "-mfloat-abi=soft" is used in barebox compilation, which
>> seems not supported by gcc. Adding "-mfloat-abi=hard" is not enough, the
>> original "-mfloat-abi=soft" should be removed. Unfortunately, i could
>> not find where this option is added and how to remove it.
>> Can anybody help me to fix it?
> Which yocto and gcc version are you using? Could you show us the actual
> error messages and yocto recipe?
The current fido and master branches use gcc 4.9.2 and the problem is 
that soft float abi support seems missing and the option 
-mfloat-abi=soft is always added by the make rules of barebox.
If i use the above mentioned fix, the result is:

arm-poky-linux-gnueabi-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard 
may not be used together

because -mfloat-abi=hard is passed in ${CC} variable.

If i remove the option -mfloat-abi=hard, then got this error:

... stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory

that's why i think the soft abi support is missing.
IMHO the float abi should not be set by the make rules because it is 
hardware specific, and therefore should be set by the build system.

Regards
György Kövesdi


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-06-23 11:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 15:18 György Kövesdi
2015-06-23  8:12 ` Jan Lübbe
2015-06-23 11:29   ` György Kövesdi [this message]
2015-06-23 12:22     ` Holger Schurig
2015-06-23 13:40       ` György Kövesdi
2015-06-23 14:07         ` Holger Schurig
2015-06-23 14:52           ` György Kövesdi
2015-06-23 15:01             ` Holger Schurig
2015-06-23 17:57               ` Gyorgy Kovesdi
2015-06-23 19:30                 ` Lucas Stach
2015-06-24 14:33                   ` Jan Lübbe
2015-06-24 19:59                     ` Fabio Estevam
2015-06-29 10:24                     ` Gyorgy Kovesdi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55894326.5000107@teledigit.eu \
    --to=kgy@teledigit.eu \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox