[llvm-dev] LLVM source compilation Error: CommandLine Error: Option 'mc-relax-all' registered more than once!

K Jelesnianski via llvm-dev llvm-dev at lists.llvm.org
Sun Jul 12 19:22:09 PDT 2020


Thanks for your quick reply. I have also tried disabling build shared
libs, specifying via
"-DBUILD_SHARED_LIBS=OFF" in my cmake config line
However I am getting the same exact error with this flag specified as well.

Just an idea, would removing all llvm/clang instances/libs on my
machine work? Do you know what the default location is of these
shared/static llvm libraries that are conflicting?

I'm not exactly sure how to do this via command line on linux though.
I definitely agree this is related to  linkage error as you say. I'm
just not sure what I have to remove to get this server to go back to a
"clean slate" state such that I can build llvm-project. That is
information I have been looking for, but can't seem to find and this
error doesn't seem to be well documented.
I have already tried the following, but it didn't help either
$ sudo su
$ dnf remove llvm
$ dnf remove clang

and then performing
$ sudo dnf install llvm
$ sudo dnf install clang

To give more context, I can do a clean install of vanilla llvm-project
on other servers I have access to, but can't currently afford to move
my code base to these other servers.


More information about the llvm-dev mailing list