Public bug reported: Current version of libllvm in precise supports the sse4a cpuflag and cpu type amdfam10
Using clang with -march=native (which on my CPU implies -march=amdfam10) fails: clang -march=native -c -o dummy.o dummy.c error: unknown target CPU 'amdfam10' libllvm-3.0 supports amdfam10 / sse4a, and upstream svn for clang also supports it; clang svn commits 143315 and 143302 are the ones which add this support: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?r1=142881&r2=143312 I have attached a debian/patches/ file (slightly different from the diff reported by the URL above) which applies cleanly to 3.0-3ubuntu1, and enables this. *** N.B.: libllvm's support for sse4a doesn't appear to do anything at this point, however this patch allows proper handling of -march=native on certain AMD CPUs. Description: Ubuntu precise (development branch) Release: 12.04 libllvm3.0: Installed: 3.0-4ubuntu1 Candidate: 3.0-4ubuntu1 Version table: *** 3.0-4ubuntu1 0 500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status clang: Installed: 3.0-3ubuntu1 Candidate: 3.0-3ubuntu1 Version table: *** 3.0-3ubuntu1 0 500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status ** Affects: clang (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/930494 Title: (precise) sse4a / amdfam10 support not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/clang/+bug/930494/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs