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 <[email protected]> Sent: Sunday, October 20, 2019 5:47 AM To: Naveen Chaudhary <[email protected]> Cc: [email protected] <[email protected]> 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 <[email protected]<mailto:[email protected]>> 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 -- [email protected]<mailto:[email protected]> To unsubscribe send an email to [email protected]<mailto:[email protected]>
_______________________________________________ coreboot mailing list -- [email protected] To unsubscribe send an email to [email protected]

