Bug 379248 - AlpineLinux: Option 'help-list' registered more than once!
Summary: AlpineLinux: Option 'help-list' registered more than once!
Status: RESOLVED DOWNSTREAM
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-26 13:08 UTC by aklitzing
Modified: 2017-06-03 16:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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