Giter VIP home page Giter VIP logo

Comments (6)

gh-user-2022 avatar gh-user-2022 commented on August 31, 2024

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.

Flamefire avatar Flamefire commented on August 31, 2024

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.

gh-user-2022 avatar gh-user-2022 commented on August 31, 2024

@Flamefire

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.

pisajew avatar pisajew commented on August 31, 2024

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.

pisajew avatar pisajew commented on August 31, 2024

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.

Flamefire avatar Flamefire commented on August 31, 2024

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)

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.