Clang error: unknown target CPU 'pentium-m'

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

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

I have this package review:

That builds OK in mock in a x86_64 machine.

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

with the following error (

error: unknown target CPU 'pentium-m'
ERROR:root:Command '['clang', '-O3', '-march=native', '-c',
'mathcode.c', '-S', '-emit-llvm', '-o',
returned non-zero exit status 1
Traceback (most recent call last):
  File "", line 103, in <module>
  File "/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/", line
97, in build_targets
  File "/builddir/build/BUILD/llvmmath-0.1.1/llvmmath/", line
46, in build_llvm
  File "/usr/lib64/python2.7/", 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: <>

More information about the devel mailing list