<div dir="ltr"><div><div><div><div><div>Hi, I need help with an error of clang in mock.<br><br></div>I have this package review:<br><br><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1012169">https://bugzilla.redhat.com/show_bug.cgi?id=1012169</a><br>

<br></div>That builds OK in mock in a x86_64 machine.<br><br></div>A scratch build in koji fails for x86_64 (and probably others)<br><br><a href="http://koji.fedoraproject.org/koji/taskinfo?taskID=5992058">http://koji.fedoraproject.org/koji/taskinfo?taskID=5992058</a><br>

<br></div>with the following error (<a href="http://kojipkgs.fedoraproject.org//work/tasks/2060/5992060/build.log">http://kojipkgs.fedoraproject.org//work/tasks/2060/5992060/build.log</a>)<br><pre>error: unknown target CPU &#39;pentium-m&#39;
ERROR:root:Command &#39;[&#39;clang&#39;, &#39;-O3&#39;, &#39;-march=native&#39;, &#39;-c&#39;, &#39;mathcode.c&#39;, &#39;-S&#39;, &#39;-emit-llvm&#39;, &#39;-o&#39;, &#39;/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/mathcode/mathcode.s&#39;, &#39;-I/usr/lib64/python2.7/site-packages/numpy/core/include&#39;, &#39;-I/usr/include/python2.7&#39;, &#39;-I/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/mathcode/private&#39;]&#39; returned non-zero exit status 1
Traceback (most recent call last):
  File &quot;setup.py&quot;, line 103, in &lt;module&gt;
    llvmmath.build.build_targets(config)
  File &quot;/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/build.py&quot;, line 97, in build_targets
    build_target(config)
  File &quot;/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/build.py&quot;, line 46, in build_llvm
    cwd=mathcode)
  File &quot;/usr/lib64/python2.7/subprocess.py&quot;, line 542, in check_call
    raise CalledProcessError(retcode, cmd)</pre>I imaging that -march=native is returning the arch of the builder, that is not supported. How can I make this work?<br><br></div>Regards, Sergio<br></div>