<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 'pentium-m'
ERROR:root:Command '['clang', '-O3', '-march=native', '-c', 'mathcode.c', '-S', '-emit-llvm', '-o', '/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/mathcode/mathcode.s', '-I/usr/lib64/python2.7/site-packages/numpy/core/include', '-I/usr/include/python2.7', '-I/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/mathcode/private']' returned non-zero exit status 1
Traceback (most recent call last):
File "setup.py", line 103, in <module>
llvmmath.build.build_targets(config)
File "/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/build.py", line 97, in build_targets
build_target(config)
File "/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/build.py", line 46, in build_llvm
cwd=mathcode)
File "/usr/lib64/python2.7/subprocess.py", 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>