GithubHelp home page GithubHelp logo

FreeBSD builds in CI about b2 HOT 2 CLOSED

sdarwin avatar sdarwin commented on August 17, 2024
FreeBSD builds in CI

from b2.

Comments (2)

grafikrobot avatar grafikrobot commented on August 17, 2024

Not sure I'm going to be able to help much. What I can see from the logs you linked:

  • B2 is being built with gcc-11 (the first g++ in the path?).
  • When loading b2 it's trying to dynamic link to glibcxx that is different than what it was built with.
  • Perhaps the dynamic loader path is different when linking vs. running.
  • Generally smells like a badly configured set of compilers.
  • Almost certainly not a b2 problem. But a general system set up problem.

Closing as I'm 99% sure it's not a b2 problem. Reopen if you find otherwise.

from b2.

sdarwin avatar sdarwin commented on August 17, 2024

@grafikrobot

More info:

When installing gcc11 on FreeBSD it says:

To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

  -Wl,-rpath=/usr/local/lib/gcc11

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.

That's right! So, for specific CI jobs we are adding something like export B2_LINKFLAGS='-Wl,-rpath=/usr/local/lib/gcc11' and those jobs are building successfully.

What would be the best way to add similar link flags to bootstrap.sh? The problem is occurring at this stage of the process:

./bootstrap.sh
./b2 headers

In other words. it only involves b2 before getting to any specific CI jobs.

I have avoided the problem by removing the "default" gcc. In the absence of /usr/local/bin/gcc b2 compiles with /usr/bin/clang++.

from b2.

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.