Giter Site home page Giter Site logo

xcalcc / labrador Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.79 MB

C/C++ standard compliance analyzer

License: Other

CMake 0.09% C++ 7.13% C 92.55% Pawn 0.17% Python 0.06%
autosar cert-c compiler misra static-analysis clang misra-c program-analysis security

labrador's People

Contributors

yvan-xy avatar zxj-github-user avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

labrador's Issues

Compile command does not work on OS X

The standard compile command that was provided in the readme attempts to use the built in OS X version of clangd, which fails:

[44/44] Linking CXX executable xsca
FAILED: xsca 
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -fno-exceptions -fno-rtti -pthread -no-pie -O0 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/xsca.dir/cc1_main.cpp.o CMakeFiles/xsca.dir/driver.cpp.o CMakeFiles/xsca.dir/xsca_gen.cpp.o CMakeFiles/xsca.dir/xsca_link.cpp.o -o xsca -L/Users/tenkai/Development/language_servers/clang-prebuilt/release/lib -Wl,-rpath,/Users/tenkai/Development/language_servers/clang-prebuilt/release/lib  core/libxscaCore.a  rules/libxscaRule.a  -Wl,--start-group  -lclangAnalysis  -lclangAST  -lclangBasic  -lclangDriver  -lclangEdit  -lclangFrontend  -lclangFrontendTool  -lclangLex  -lclangParse  -lclangRewrite  -lclangRewriteFrontend  -lclangSema  -lclangSerialization  -lclangTooling  -lLLVMBinaryFormat  -lLLVMBitReader  -lLLVMBitstreamReader  -lLLVMCore  -lLLVMDemangle  -lLLVMFrontendOpenMP  -lLLVMMC  -lLLVMMCParser  -lLLVMOption  -lLLVMProfileData  -lLLVMRemarks  -lLLVMSupport  -Wl,--end-group  -lm  -ldl  -lrt  -lpthread  rules/GJB5369/libxscaGJB5369Rule.a  rules/GJB8114/libxscaGJB8114Rule.a  rules/MISRA/libxscaMISRARule.a  rules/CERT/libxscaCERTRule.a  rules/AUTOSAR/libxscaAUTOSARRule.a  rules/libxscaRule.a  rules/GJB5369/libxscaGJB5369Rule.a  rules/GJB8114/libxscaGJB8114Rule.a  rules/MISRA/libxscaMISRARule.a  rules/CERT/libxscaCERTRule.a  rules/AUTOSAR/libxscaAUTOSARRule.a  core/libxscaCore.a && :
clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
ld: unknown options: --start-group --end-group 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

In order to use the homebrew installed version, I had to use the following command:

fsh ❯ cmake -G Ninja -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ ../src

And then it compiled properly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.