<div dir="ltr">Hello Norman,<div><br></div><div>As far as I know, coreboot runs in 32-bit mode on the x86 architecture, even if the hardware supports x86_64. This does not prevent running x86_64 OSes.</div><div>Therefore, and as the first document you linked says, you should build the i386 toolchain and build coreboot with it.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Angel Pons Pons</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 19, 2018 at 8:43 PM,  <span dir="ltr"><<a href="mailto:hybris@e2m.io" target="_blank">hybris@e2m.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hello,<br>
<br>
I am trying to build coreboot for a Lenovo Thinkpad x201.
<div>
<div><br></div>
</div>
<div>I followed the instructions from the following documents:</div>
<div><a href="https://doc.coreboot.org/lessons/lesson1.html" target="_blank">https://doc.coreboot.org/<wbr>lessons/lesson1.html</a><br></div>
<div><a href="https://www.coreboot.org/Build_HOWTO" target="_blank">https://www.coreboot.org/<wbr>Build_HOWTO</a><br></div>
<div><br></div>
<div>When using the crossgcc-x64 toolchain building works fine but linking fails with the following error:</div>
<div><span style="color:rgb(36,39,41);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;font-variant-ligatures:normal;white-space:pre-wrap;background-color:rgb(239,240,241)">coreboot/src/console/<wbr>vtxprintf.c:102: undefined reference to '__udivmoddi4'</span><br></div>
<div><br></div>
<div>As far is i could find out this error should not even get thrown for x64, since `__udivmoddi4` is an optimization for i386. [0]</div>
<div><br></div>
<div>Building (and linking) with the crossgcc-i386 toolchain works fine though.</div>
<div>But I guess x64 features will then be missing in the build.</div>
<div><br></div>
<div>Is there currently a way to build a x64 version of coreboot or do I have to go with i386 for now?</div>
<div><br></div>
<div>[0] <a href="https://stackoverflow.com/questions/51457851/building-coreboot-undefined-reference-udivmoddi4" target="_blank">https://stackoverflow.com/<wbr>questions/51457851/building-<wbr>coreboot-undefined-reference-<wbr>udivmoddi4</a></div>
<div><br></div>
<div>best regards</div>
<div><br></div>
<div>Norman Wilms</div>
</div>
</div>

<br>-- <br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://mail.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://mail.coreboot.org/<wbr>mailman/listinfo/coreboot</a><br></blockquote></div><br></div>