<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<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">https://doc.coreboot.org/lessons/lesson1.html</a><br /></div>
<div><a href="https://www.coreboot.org/Build_HOWTO">https://www.coreboot.org/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; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(239, 240, 241);">coreboot/src/console/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">https://stackoverflow.com/questions/51457851/building-coreboot-undefined-reference-udivmoddi4</a></div>
<div><br /></div>
<div>best regards</div>
<div><br /></div>
<div>Norman Wilms</div>
</div>
</body>
</html>