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 david.hendricks@gmail.com Sent: Sunday, October 20, 2019 5:47 AM To: Naveen Chaudhary NaveenChaudhary2010@hotmail.com Cc: coreboot@coreboot.org 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 <NaveenChaudhary2010@hotmail.commailto:NaveenChaudhary2010@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 - coreboothttps://www.coreboot.org/Build_HOWTO This page describes how you can build a coreboot image for your specific mainboard. www.coreboot.orghttp://www.coreboot.org
_______________________________________________ coreboot mailing list -- coreboot@coreboot.orgmailto:coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.orgmailto:coreboot-leave@coreboot.org