Giter VIP home page Giter VIP logo

Comments (2)

jsteemann avatar jsteemann commented on July 22, 2024

Regarding the missing v8 module:
Initially all git submodules may be missing after a fresh git checkout. Or some newly added git submodules may be adding after a git pull.
In this case it is best to just to git submodule update --init to fetch/update the missing submodules.

Regarding compilation with gcc:
we made the experience that compilation with g++ got increasingly more difficult with more recent versions of g++.
Starting with g++11.3 there were problems with compiling some legitimate code from some third party library we were using. These issues weren't resolved in g++12, but only in g++13.
However, g++12 and also g++13 introduced tons of false positives about uninitialized variables and out-of-bounds accesses, not just in our own code but also in many of the third party libraries (where they have been reported as well and have been identified as false posivies). That was really daunting and forced us to turn these checks off when compiling with g++ >= 13. To the best of my knowledge these issues still haven't been resolved in g++.
We recently also upgraded the bundled version of the V8 third party library, which also isn't able to compile with g++ anymore.

For all these reasons we moved the compilation to clang a while ago. clang-16 is known to compile devel fine. We are also using it in our CI and to reproduce build images.
So switching the tool chain (compiler & linker) to clang & lld would resolve the issue.

from arangodb.

jsteemann avatar jsteemann commented on July 22, 2024

Specifically, I am using all these cmake options to ensure that the entire toolchain uses clang tools and not the gcc ones:

-DCMAKE_C_COMPILER=clang-16 
-DCMAKE_CXX_COMPILER=clang++-16 
-DCMAKE_C_COMPILER_AR="/usr/bin/llvm-ar-16" 
-DCMAKE_CXX_COMPILER_AR="/usr/bin/llvm-ar-16" 
-DCMAKE_C_COMPILER_RANLIB="/usr/bin/llvm-ranlib-16" 
-DCMAKE_CXX_COMPILER_RANLIB="/usr/bin/llvm-ranlib-16" 
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld-16"

from arangodb.

Related Issues (20)

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.