Comments (2)
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.
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)
- Response files issues and long path support HOT 2
- bootstrap fails on gcc-8.3 HOT 8
- version mismatch message HOT 2
- `--abbreviate-paths` leads to build config clashes HOT 2
- Building boost to web assembly fails HOT 1
- Enhanced `dll-path` & `hardcode-dll-paths` documentation HOT 1
- boost fail to be detected / No 'bootstrap.jam' was found by searching for / file STRINGS file "/usr/include/boost/version.hpp" cannot be read. HOT 2
- Bootstrap procedure writes to source directory HOT 1
- OSPLAT is not defined for riscv HOT 1
- breaking change with rsp file when migrating from boost 1.78 to boost 1.83 under windows/mingw64 HOT 8
- Cannot run bootstrap.bat with VC141 HOT 3
- commented modified rebuild HOT 2
- How to build Boost arm64 on MSVC using b2? HOT 1
- `ar` response files under MinGW contain paths with backslashes, which fails
- b2 fails to build for clang 3.6 HOT 1
- Manifest-related problems with b2 building in msvc-14.0 HOT 2
- Can't compile and install b2 with b2 HOT 1
- How to build clangw .lib HOT 2
- `b2` build fails on gcc 4.8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from b2.