Comments (6)
Noticed the same issue today on CentOS 6.
Worked around by patching file "libs/locale/build/Jamfile.v2", changing line
exe has_iconv : $(TOP)/build/has_iconv.cpp ;
to
obj has_iconv : $(TOP)/build/has_iconv.cpp ;
from locale.
Noticed the same issue today on CentOS 6.
Worked around by patching file "libs/locale/build/Jamfile.v2", changing line
That is likely a different issue then as in the initial report iconv is found: - iconv (separate) : yes [2]
With your workaround you basically skip testing if it requires linking against libiconv. I Suspect for you both iconv (separate)
and iconv (libc)
are "no"? You might need to set ICONV_PATH
as documented.
@pisajew Looks like the compiler you are using is lacking C++11 support. See e.g. cxx11_noexcept : no
. Check the config.log
as this looks odd as appearently Clang 15 is used which should default to a higher standard.
from locale.
I checked, the linking is OK: if I build it manually with gcc has_iconv.cpp -o has_iconv.cpp.exe
, it gets the symbol iconv_open
from /lib64/libc.so.6
. I wanted to debug what happens inside the failing command configure.builds has_iconv : $(properties) : "iconv (libc)"
, but I couldn't figure out how can I do that. (Can you advice how to do that?)
I can submit a separate issue for this if preferred.
from locale.
Strange indeed. If I checkout master boost_locale builds correctly. It is just for version tag 1.83.0 where it's not being built (sad as I need that one compiled). For version 1.83.0 here is the relevant output from config.log:
clang-darwin.compile.c++ ../build/boost/bin.v2/libs/config/checks/clang-darwin-15/release/link-static/threading-multi/visibility-hidden/cxx11_noexcept.o
"clang++" -fvisibility-inlines-hidden -O3 -Wall -fvisibility=hidden -Wno-inline --target=arm64-apple-darwin -DBOOST_ALL_NO_LIB=1 -DNDEBUG -DTEST_BOOST_NO_CXX11_NOEXCEPT -I"." -c -o "../build/boost/bin.v2/libs/config/checks/clang-darwin-15/release/link-static/threading-multi/visibility-hidden/cxx11_noexcept.o" "libs/config/checks/test_case.cpp"
libs/config/checks/test_case.cpp:901:7: error: "Defect macro BOOST_NO_CXX11_NOEXCEPT is defined."
# error "Defect macro BOOST_NO_CXX11_NOEXCEPT is defined."
^
1 error generated.
...failed updating 1 target...
but if I rerun the command manually adding correct standard option, it works:
% "clang++" -fvisibility-inlines-hidden -O3 -Wall -fvisibility=hidden -Wno-inline --target=arm64-apple-darwin -DBOOST_ALL_NO_LIB=1 -DNDEBUG -DTEST_BOOST_NO_CXX11_NOEXCEPT -I"." -c -o "../build/boost/bin.v2/libs/config/checks/clang-darwin-15/release/link-static/threading-multi/visibility-hidden/cxx11_noexcept.o" "libs/config/checks/test_case.cpp"
libs/config/checks/test_case.cpp:901:7: error: "Defect macro BOOST_NO_CXX11_NOEXCEPT is defined."
# error "Defect macro BOOST_NO_CXX11_NOEXCEPT is defined."
^
1 error generated.
% "clang++" -std=c++11 -fvisibility-inlines-hidden -O3 -Wall -fvisibility=hidden -Wno-inline --target=arm64-apple-darwin -DBOOST_ALL_NO_LIB=1 -DNDEBUG -DTEST_BOOST_NO_CXX11_NOEXCEPT -I"." -c -o "../build/boost/bin.v2/libs/config/checks/clang-darwin-15/release/link-static/threading-multi/visibility-hidden/cxx11_noexcept.o" "libs/config/checks/test_case.cpp"
%
from locale.
I've ended up manually specifying -std=c++11
for cxxflags in project-config.jam, which does the job for me. As the problem doesn't exist on master I think this workaround is good enough and I'm closing this issue now.
from locale.
Ok so I guess that Clang is older and/or has C++98 as the default standard.
Note that you can pass cxxstd=11
to b2
instead
from locale.
Related Issues (20)
- [Q] Meaning of utf8_from_wide/utf8_native_with_wide HOT 1
- Std backend falls back to system locale instead of C locale on Windows HOT 8
- Stream read/write with generated locales defaults to classic format/parse HOT 4
- test_formatting failure, ICU >= 72.1
- error C2220: warning treated as error, warning C4702: unreachable code HOT 1
- icu only build on windows fails
- Boost-locale compiled with vcpkg won't pass program linking HOT 4
- Missing boost_locale on a build for Haiku HOT 5
- Bad behaviour with multiple curly braces in format string HOT 2
- Crash on macOS 14.0 HOT 8
- locale::conv::from_utf freezing on macOS14 and iOS17 because iconv library HOT 12
- libboost_locale 1.82.0 will not build on MacOS Sonoma Intel HOT 11
- Use of boost::locale::collator crashes when not using ICU/WinAPI HOT 1
- date_time created with decimals HOT 8
- Fail to build wich cxxstd=20 on Clang HOT 6
- Boost.Locale 1.84.0: boost::locale::to_title() is no longer threadsafe under Windows with ICU HOT 2
- How to Verify boost::locale::generator? HOT 1
- Test libraries and executables should be declared EXCLUDE_FROM_ALL HOT 6
- std::uint64_t numbers above a certain value are not formatted correctly
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 locale.