Comments (6)
This change got merged to the Boost mirror repo already. I.e. I merged the current b2 release, 4.6.1 to Boost. Hence it will show up in the next Boost release.
from b2.
It seems, the problem is caused by that build.sh
does not define any platform macros, which makes most of the standard library functions unavailable. Adding -D_GNU_SOURCE
to compiler arguments fixes the compilation.
from b2.
Fixed in 2fd5be1 .. Thanks for the report and solution!
from b2.
@grafikrobot : It's not clear to me how the b2 split from boost works? Will this change appear in a boost point release?
from b2.
Make sure you completed the following tasks
I searched the discussions
I searched the closed and open issues
I read the contribution guidelines
Environment and version details
OS: Windows 10, Cygwin64
Compiler+: GCC 11.1.0
Shell: GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
B2 Version: b2/4.5.0:171939b47f0d17f8c5eb15e8a8251c598d99fe35 - Build
I updated the toolset in build.sh by adding -D_GNU_SOURCE to compiler arguments like done in the latest version of build.sh
But when I ran build.sh after this it doesn't compile anymore.
The build logs is as follow:
FailedB2BuildCygwin64.txt
from b2.
@holly564 Your log shows that you're trying to build with MSVC, which is not installed:
###
### Using 'msvc' toolset.
###
C:\Users\MyComputer\.conan\data\b2\4.5.0\_\_\build\171939b47f0d17f8c5eb15e8a8251c598d99fe35\source\src\engine>"cl" /nologo /MP /MT /TP
/Feb2 /wd4996 /O2 /GL /EHsc -DNDEBUG builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp
execcmd.cpp execnt.cpp filent.cpp filesys.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cp
p jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt
.cpp pathsys.cpp regexp.cpp rules.cpp scan.cpp search.cpp jam_strings.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.
cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.c
pp /link kernel32.lib advapi32.lib user32.lib
'"cl"' is not recognized as an internal or external command,
operable program or batch file.
I suspect, you're invoking build.bat
or bootstrap.bat
instead of the .sh
equivalents.
This is unrelated to this bug report.
from b2.
Related Issues (20)
- `ar` response files under MinGW contain paths with backslashes, which fails
- b2 fails to build for clang 3.6 HOT 1
- FreeBSD builds in CI HOT 2
- 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
- b2 can't find MSVC toolset for Visual Studio 2022 v17.9.0 HOT 2
- Warnings about freeing a non-allocated object
- Infinite recursion in `bcp` tests HOT 3
- Config checks using `address-model=32` in Linux don't use the right flags HOT 2
- [question] Best way to pass _GLIBCXX_USE_CXX11_ABI=0/1 using b2?
- Should --abbreviate-paths be made default under Windows? HOT 15
- lzma.jam doesn't support building from source, like zlib.jam and bzip2.jam HOT 1
- zstd.jam doesn't support building from source, as zlib.jam and bzip2.jam do
- Linking Fails - dangerous relocation: R_AMD64_IMAGEBASE with __ImageBase undefined HOT 2
- Boost build fails when VS 2022 Preview is installed HOT 14
- Generate compile_commands.json HOT 8
- build error-boost1.85 with VS2022 under win10 HOT 1
- after setting using zstd in project-config.jam boost.iostreams still can not detect zstd HOT 2
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.