On Sat, 2018-12-29 at 12:38 +0100, Angel Pons wrote:
Hello Salvatore,
On Sat, Dec 29, 2018, 12:24 Salvatore Bellizzi <coreboot@seppia.net wrote:
Hi, I have a question reguarding the build process.
Since crossgcc has been updated and gcc is now at version 8.1 I always encounter an error when building coreboot:
coreboot/src/console/vtxprintf.c:102: undefined reference to '__udivmoddi4'
If I remember properly, this happens when using the x86_64 (64-bit) toolchain with coreboot for x86 mainboards, on which coreboot runs in 32-bit mode. The older x86_64 GCC6 toolchain had a multilib patch which allowed it to compile to i386 (32-bit) machine code, which is why it worked fine. However, the x86_64 GCC8 toolchain does not have the aforementioned patch and fails.
That was it. I thought I didn't need the i386 toolchain since I was building for an x86_64 board but I was evidently mistaken. After building also the i386 GCC8 toolchain I was able to successfully build coreboot 4.9 stable and from master branch too.
Thank you Angel,
Salvatore Bellizzi