piotr5 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Dec 2012 Posts: 121
|
Posted: Sat Jul 06, 2024 4:06 pm Post subject: clang failed to compile with gcc arguments |
|
|
distcc asks us to figure out what -march=native is doing and give those arguments. I did do that for gcc and wrote the result into CFLAGS in make.conf.
now however the package dev-libs/rocm-device-libs-6.1.1::gentoo failed (configure phase) because clang doesn't support a command-line option:
Code: | clang: error: unknown argument '-mabm'; did you mean '-marm'?
| is there a way to provide different CFLAGS for clang than for gcc? or was that the fault of the package to make use of CFLAGS in the first place?
needless to say, solution is to disable distcc and compile with -march=native at least for this package. strange though I never experienced this problem before... |
|