Clang error: unknown target CPU 'pentium-m'

Sergio Pascual sergio.pasra at gmail.com
Sun Sep 29 22:01:22 UTC 2013


Hi, I need help with an error of clang in mock.

I have this package review:

https://bugzilla.redhat.com/show_bug.cgi?id=1012169

That builds OK in mock in a x86_64 machine.

A scratch build in koji fails for x86_64 (and probably others)

http://koji.fedoraproject.org/koji/taskinfo?taskID=5992058

with the following error (
http://kojipkgs.fedoraproject.org//work/tasks/2060/5992060/build.log)

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)

I imaging that -march=native is returning the arch of the builder, that is
not supported. How can I make this work?

Regards, Sergio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20130930/564e5e8e/attachment.html>


More information about the devel mailing list