https://ticket.coreboot.org/https://ticket.coreboot.org/themes/PurpleMine2-2.16.2/favicon/favicon.ico?12020-01-30T09:43:32ZIssue Trackercoreboot - Bug #240: cbfstool fails to build with old gcc due to compiler bugshttps://ticket.coreboot.org/issues/240?journal_id=6002020-01-30T09:43:32ZAngel Pons
<ul></ul><p>Looks like what fails to build is cbfstool: <code>make: *** [build/util/cbfstool/cbfstool.o] Error 1</code>. Looks like it is built using the system toolchain, but maybe it should be built by crossgcc when building coreboot.</p>
coreboot - Bug #240: cbfstool fails to build with old gcc due to compiler bugshttps://ticket.coreboot.org/issues/240?journal_id=6012020-01-30T09:55:34ZPaul Menzelpmenzel+ticket.coreboot@molgen.mpg.de
<ul></ul><p>What is the system GLIBC version? See <a href="https://review.coreboot.org/c/coreboot/+/38638" class="external">https://review.coreboot.org/c/coreboot/+/38638</a> for a fix.</p>
coreboot - Bug #240: cbfstool fails to build with old gcc due to compiler bugshttps://ticket.coreboot.org/issues/240?journal_id=6812020-07-06T12:50:08ZPatrick Georgipgeorgi@google.com
<ul><li><strong>Subject</strong> changed from <i>Coreboot fails to build</i> to <i>cbfstool fails to build with old gcc due to compiler bugs</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul><p>cbfstool is always built with the host compiler and the cross toolchain is completely unsuitable for that.</p>
<p>This error doesn't seem to be related to glibc (which <a href="https://review.coreboot.org/38638" class="external">https://review.coreboot.org/38638</a> fixes), but to a compiler bug: <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19449" class="external">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19449</a>. It was also reported on the list at <a href="https://mail.coreboot.org/hyperkitty/list/coreboot@coreboot.org/message/HY2OB7IN5QU2T6Q7FSY5YMDFRJFXXWDM/" class="external">https://mail.coreboot.org/hyperkitty/list/coreboot@coreboot.org/message/HY2OB7IN5QU2T6Q7FSY5YMDFRJFXXWDM/</a>, the affected compiler in that case was gcc 4.8.4, and I could reproduce the issue on a centos 7 system.</p>
<p><a href="https://review.coreboot.org/c/coreboot/+/43143" class="external">https://review.coreboot.org/c/coreboot/+/43143</a> and <a href="https://review.coreboot.org/c/coreboot/+/43144" class="external">https://review.coreboot.org/c/coreboot/+/43144</a> force the creation of the bootstrap compiler for gcc < 4.9 and tell xcompile to look for a host compiler in the cross compiler directory when collecting compilers, which should resolve the issue (after running crossgcc.)</p>
coreboot - Bug #240: cbfstool fails to build with old gcc due to compiler bugshttps://ticket.coreboot.org/issues/240?journal_id=6822020-07-06T12:52:00ZPatrick Georgipgeorgi@google.com
<ul><li><strong>Assignee</strong> set to <i>Patrick Georgi</i></li></ul> coreboot - Bug #240: cbfstool fails to build with old gcc due to compiler bugshttps://ticket.coreboot.org/issues/240?journal_id=6952020-07-08T06:55:20ZPatrick Georgipgeorgi@google.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul><p>Resolved by <a href="https://review.coreboot.org/c/coreboot/+/43143" class="external">https://review.coreboot.org/c/coreboot/+/43143</a>, <a href="https://review.coreboot.org/c/coreboot/+/43144" class="external">https://review.coreboot.org/c/coreboot/+/43144</a> and <a href="https://review.coreboot.org/c/coreboot/+/43145:" class="external">https://review.coreboot.org/c/coreboot/+/43145:</a> Creating a toolchain with a host compiler older than gcc 4.9 now leads to a bootstrap build, and the bootstrap compiler is picked up as host compiler by default.</p>