[clazy] [Bug 352896] Doesn't build on OSX

RJVB bugzilla_noreply at kde.org
Wed Nov 2 16:56:50 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=352896

--- Comment #16 from RJVB <rjvbertin at gmail.com> ---
Have you tested building against LLVM versions < 3.7.9 on OS X? According to my
local patches those had a versioned libLLVM name (libLLVM-${LLVM_VERSION}), at
least in MacPorts.

Also, while everything builds correctly, I'm seeing an error when I build and
run against port:clang-3.9 :

: CommandLine Error: Option 'pass-remarks' registered more than once!

I cannot find anything resembling that option in the clazy sources, nor on the
internal commandline (see below) so maybe this is an error in LLVM/clang?

```
env CLAZY_CHECKS=level3 clazy-mp-3.9 kk.cpp -v
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.9/bin
 "/opt/local/libexec/llvm-3.9/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0
-Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj
-mrelax-all -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name kk.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 253.3 -v -dwarf-column-info -debugger-tuning=lldb
-resource-dir /opt/local/libexec/llvm-3.9/bin/../lib/clang/3.9.0 -stdlib=libc++
-fdeprecated-macro -fdebug-compilation-dir /Users/bertin/cworks/new/Qt
-ferror-limit 19 -fmessage-length 132 -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fcxx-exceptions
-fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics
-load /opt/local/libexec/llvm-3.9/lib/ClangLazy.dylib -add-plugin clang-lazy -o
/var/folders/j1/1439ppj08xj8h6006s6drbq00000gs/T/kk-c33ea5.o -x c++ kk.cpp
: CommandLine Error: Option 'pass-remarks' registered more than once!
fatal error: error in backend: inconsistency in registered CommandLine options
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.9/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s).
```

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list