[coreboot] Re: How to use crossgcc-i386 during make?

2019-10-20 Thread Nico Huber
Hello Naveen,

On 17.10.19 07:26, Naveen Chaudhary wrote:
> As per the Wiki : https://www.coreboot.org/Build_HOWTO I did "make 
> crossgcc-i386". Now when I do make, I get compilation errors because my host 
> gcc verion is 4.3. In case I update the host gcc version is updated to some 
> later version, says gcc-8 , the errors are gone.
>
> Looks like coreboot build system still uses the host gcc. How can I make with 
> coreboot toolchain, instead of the host gcc toolchain.

coreboot's toolchain is only used to build "target" code, i.e. the
coreboot itself. There are some tools to be compiled for the host,
however, during the build process. As we usually only build a cross
compiler, the original host toolchain will always be used for the
tools.

It's most likely the build of such a tool that fails. If you can
update your host toolchain, that's probably the best thing to do.

Nico
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] Re: How to use crossgcc-i386 during make?

2019-10-20 Thread Naveen Chaudhary
Hi David,

Thanks for the response.
I did check the option and its not enabled for me.

Additional Info :
I was very well able to build the crossgcc-i386 and can see that
coreboot/util/crossgcc/xgcc/bin $ ./i386-elf-gcc --version
i386-elf-gcc (coreboot toolchain vf5fa96f9c3 2019-09-21) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Bu when I do "make" from the root of coreboot, the build fails for me because 
the host gcc version is 4.8.5. If I update the host gcc version to gcc-8, the 
build passes for me. This somewhat indicates that coreboot build system still 
picks the host toolchain, and not the coreboot's internal toolchain.

Do I need to export some env variable before calling make, say CROSS_COMPILE or 
something similar to point to the coreboot's internal toolchain?

Regards,
Naveen

From: David Hendricks 
Sent: Sunday, October 20, 2019 5:47 AM
To: Naveen Chaudhary 
Cc: coreboot@coreboot.org 
Subject: Re: [coreboot] How to use crossgcc-i386 during make?

Hi Naveen,
Do you have the ANY_TOOLCHAIN option enabled? It's under General setup --> 
Allow building with any toolchain.

Make sure that option is not selected if you want to use coreboot's crossgcc 
toolchain.

On Sat, Oct 19, 2019 at 12:08 PM Naveen Chaudhary 
mailto:naveenchaudhary2...@hotmail.com>> wrote:
As per the Wiki : https://www.coreboot.org/Build_HOWTO I did "make 
crossgcc-i386". Now when I do make, I get compilation errors because my host 
gcc verion is 4.3. In case I update the host gcc version is updated to some 
later version, says gcc-8 , the errors are gone.

Looks like coreboot build system still uses the host gcc. How can I make with 
coreboot toolchain, instead of the host gcc toolchain.

Regards,
Naveen
Build HOWTO - coreboot<https://www.coreboot.org/Build_HOWTO>
This page describes how you can build a coreboot image for your specific 
mainboard.
www.coreboot.org<http://www.coreboot.org>

___
coreboot mailing list -- coreboot@coreboot.org<mailto:coreboot@coreboot.org>
To unsubscribe send an email to 
coreboot-le...@coreboot.org<mailto:coreboot-le...@coreboot.org>
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] Re: How to use crossgcc-i386 during make?

2019-10-19 Thread David Hendricks
Hi Naveen,
Do you have the ANY_TOOLCHAIN option enabled? It's under General setup -->
Allow building with any toolchain.

Make sure that option is not selected if you want to use coreboot's
crossgcc toolchain.

On Sat, Oct 19, 2019 at 12:08 PM Naveen Chaudhary <
naveenchaudhary2...@hotmail.com> wrote:

> As per the Wiki : https://www.coreboot.org/Build_HOWTO I did "make
> crossgcc-i386". Now when I do make, I get compilation errors because my
> host gcc verion is 4.3. In case I update the host gcc version is updated to
> some later version, says gcc-8 , the errors are gone.
>
> Looks like coreboot build system still uses the host gcc. How can I make
> with coreboot toolchain, instead of the host gcc toolchain.
>
> Regards,
> Naveen
> Build HOWTO - coreboot 
> This page describes how you can build a coreboot image for your specific
> mainboard.
> www.coreboot.org
>
> ___
> coreboot mailing list -- coreboot@coreboot.org
> To unsubscribe send an email to coreboot-le...@coreboot.org
>
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org