Bug 379248

Summary: AlpineLinux: Option 'help-list' registered more than once!
Product: [Developer tools] clazy Reporter: aklitzing
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description aklitzing 2017-04-26 13:08:09 UTC
I'm trying to use clazy on AlpineLinux with clang/llvm 4.0.0.
"clazy --version" works but if I want to compile something I get this error.

Troubleshooting help for Fedora doesn't help as there is no static library for llvm/clang.



: CommandLine Error: Option 'help-list' registered more than once!
fatal error: error in backend: inconsistency in registered CommandLine options
clang-4.0: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 4.0.0 (tags/RELEASE_400/final)
Target: x86_64-alpine-linux-musl
Thread model: posix
InstalledDir: /usr/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to  and include the crash backtrace, preprocessed source, and associated run script.
clang-4.0: note: diagnostic msg: Error generating preprocessed source(s).






cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM (version: 4.0.0): (using /usr/bin/llvm-config)
--   Include dirs:   /usr/lib/llvm4/include
--   LLVM libraries: -lLLVM-4.0
--   LLVM System libraries: 
-- Found Clang (LLVM version: 4.0.0)
--   Include dirs:       /usr/lib/llvm4/include
--   Clang libraries:    
--   Libclang C library: /usr/lib/libclang.so
Looking for std::regex support...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/[...]/clazy/build
Comment 1 Sergio Martins 2017-04-26 21:06:08 UTC
Might be a bug in alpine's packaging of clang

I recommend you build llvm/clang yourself into some prefix. It's really easy, mostly running cmake & make provided you have the needed dependencies