All of lore.kernel.org
 help / color / mirror / Atom feed
From: "György Kövesdi" <kgy@teledigit.eu>
To: meta-freescale@yoctoproject.org
Subject: Re: Error compiling barebox on fido
Date: Mon, 22 Jun 2015 13:17:04 +0200	[thread overview]
Message-ID: <5587EEB0.50008@teledigit.eu> (raw)
In-Reply-To: <5587C667.10701@teledigit.eu>

Hi,

I tried to switch back to gcc 4.8 on fido, but the same error occurs.
Is the gcc built differently on fido?

Regards
Gyorgy Kovesdi

On 2015-06-22 10:25, György Kövesdi wrote:
> Hi,
>
> I found that really the gcc causes the problem.
> I created this test file (x.c):
>
> #include <stdio.h>
> int main() {}
>
> I tried to compile it this way:
>
> arm-poky-linux-gnueabi-gcc x.c
>
> On fido it fails, while on daisy, it succeeds.
> I see that gcc 4.9 on fido does not have standard includes by default, 
> while gcc 4.8 on daisy does. However, it is set in CFLAGS, so all 
> compilation succeeded this way.
> I will resolve barebox build by changing its make rules, but i don't 
> know if this is a problem with gcc 4.9 or not. Which behaviour is 
> standard?
>
> Regards
> Gyorgy Kovesdi
>
> On 2015-06-21 18:32, Gyorgy Kovesdi wrote:
>> Hi,
>>
>> I tried to compile barebox_2015.06 on the current fido, and got the 
>> following error:
>>
>>    arm-poky-linux-gnueabi-gcc -Wp,-MD,scripts/.bareboxenv-target.d 
>> -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs 
>> -Werror-implicit-function-declaration -fno-strict-aliasing 
>> -fno-common -Os -pipe  -fno-stack-protector 
>> -Wno-unused-but-set-variable -Wno-trampolines 
>> -Wdeclaration-after-statement -Wno-pointer-sign -o 
>> scripts/bareboxenv-target scripts/bareboxenv.c
>> scripts/bareboxenv.c:20:19: fatal error: stdio.h: No such file or 
>> directory
>>    #include <stdio.h>
>>                     ^
>> compilation terminated.
>>
>> Exactly the same command is executed when building on odler revisions 
>> (e.g. on current daisy), without problem.
>>
>> The difference I see that fido uses gcc 4.9 and daisy uses 4.8, but I 
>> think this is not the cause.
>> What can be the problem?
>>
>> Thanks in advance
>> György Kövesdi
>



  reply	other threads:[~2015-06-22 11:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-21 16:32 Error compiling barebox on fido Gyorgy Kovesdi
2015-06-22  8:25 ` György Kövesdi
2015-06-22 11:17   ` György Kövesdi [this message]
2015-06-22 11:33     ` Nikolay Dimitrov
2015-06-22 14:38       ` György Kövesdi
2015-06-22 15:40         ` Nikolay Dimitrov
2015-06-28 14:03           ` 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=5587EEB0.50008@teledigit.eu \
    --to=kgy@teledigit.eu \
    --cc=meta-freescale@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.