Bug#653024: clang: -march=native (sometimes?) fails

Miles Bader miles at gnu.org
Thu Dec 22 21:45:39 UTC 2011


Package: clang
Version: 3.0-5
Severity: normal

At least on this system, "-march=native" fails oddly:

   $ echo 'int main () { }' > m.cc; clang++ -o m -march=native m.cc
   error: unknown target CPU 'amdfam10'

The -march=native option _used_ to work with [the debian version of]
clang [on this same system], and seems to work with a recent clang
trunk version, so I'm not sure what's going on... something out of
sync?

[Using clang/llvm trunk:

   $ clang++-trunk -o m -march=native m.cc
   $ clang++-trunk --version
   clang version 3.1 (http://llvm.org/git/clang.git b0c6c33c3479d2cb4c3b9f5a6e58c58d07c731e7)
   Target: x86_64-unknown-linux-gnu
   Thread model: posix
]

Thanks,

-Miles


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clang depends on:
ii  libc6                2.13-23
ii  libclang-common-dev  3.0-5
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.6.2-9
ii  libllvm3.0           3.0-5
ii  libstdc++6           4.6.2-9
ii  libstdc++6-4.6-dev   4.6.2-9

Versions of packages clang recommends:
ii  llvm-3.0-dev  3.0-5
ii  python        2.7.2-9

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list