Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clang failed to compile with gcc arguments
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
piotr5
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2012
Posts: 121

PostPosted: Sat Jul 06, 2024 4:06 pm    Post subject: clang failed to compile with gcc arguments Reply with quote

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...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum