Git Product home page Git Product logo

Comments (7)

osubboo avatar osubboo commented on May 26, 2024 2

Sorry, I was not completely clear on youк next steps.
If you compile with recent OS/compilers, you might want to change _GLIBCXX_USE_CXX11_ABI to 1.
Or better just follow the official llvm Getting Started Guide.
After rebuilding and installing llvm/clang, try to relink bde-verify.
You have to checkout llvm 9 release tag and specify clang and clang-tools-extra as enabled projects.

Here is sample configuration command (for llvm build):
cmake -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_BINDINGS=No -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=<install_path> -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_LIBDIR_SUFFIX=64 ../llvm/

from bde_verify.

osubboo avatar osubboo commented on May 26, 2024 1

As noted above - you cannot compile against newer version of llvm/clang. This code is written for llvm 9 API.

There are few errors in this trace:
a) C++11 ABI compatibility.
LLVM config script sets _GLIBCXX_USE_CXX11_ABI=0 here:
https://github.com/bloomberg/bde_verify/blob/master/config_llvm.sh#L48
New distributions and libraries are likely to be compiled with this flag set to 1 ( or not set at all, for gcc 9+ this becomes default behavior).
b). Missing aspell library ( and/or its dev package - with headers ).

from bde_verify.

RMGiroux avatar RMGiroux commented on May 26, 2024

Just to make sure, which version of llvm/clang did you build?

Thanks!

from bde_verify.

Scicomath avatar Scicomath commented on May 26, 2024

Just to make sure, which version of llvm/clang did you build?

Thanks!

I am using llvm/clang 9.0 and build from source following the instruction on README.md.

from bde_verify.

osubboo avatar osubboo commented on May 26, 2024

PS. There is an ongoing work to move bde-verify to newer versions of clang and to simplify build process.

from bde_verify.

Scicomath avatar Scicomath commented on May 26, 2024

Sorry, I was not completely clear on youк next steps.
If you compile with recent OS/compilers, you might want to change _GLIBCXX_USE_CXX11_ABI to 1.
Or better just follow the official llvm Getting Started Guide.
After rebuilding and installing llvm/clang, try to relink bde-verify.
You have to checkout llvm 9 release tag and specify clang and clang-tools-extra as enabled projects.

Here is sample configuration command (for llvm build):
cmake -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_BINDINGS=No -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=<install_path> -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_LIBDIR_SUFFIX=64 ../llvm/

I solve the build issue by install llvm/clang by Ubuntu package manager. This time I install specified version 9 of llvm/clang and everything goes well.

Thank you very much!

from bde_verify.

yashin-alexander avatar yashin-alexander commented on May 26, 2024

If you compile with recent OS/compilers, you might want to change _GLIBCXX_USE_CXX11_ABI to 1. <...> After rebuilding and installing llvm/clang, try to relink bde-verify.

I had the same issue. Setting _GLIBCXX_USE_CXX11_ABI to 1 in https://github.com/bloomberg/bde_verify/blob/master/config_llvm.sh#L48 worked for me. Thanks.

from bde_verify.

Related Issues (6)

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.