Hi, thank you so much Dmitry and René. Is it preferable to continue the discussion in slack rather than here (took me so long to get access to slack but I'm now ready :=))? I tried to add <triple>arm64-apple-darwin21.4 to my user-config.jam but I still cannot build has_external_iconv as the flag is not taken into account by boost.locale. When I see the full built log of boost, it seems that <triple> is not used. Thanks, F Le dim. 18 oct. 2026 à 11:33, Dmitry Arkhipov via Boost <boost@lists.boost.org> a écrit :
В письме от среда, 14 октября 2026 г. 07:05:03 MSK пользователь Frédéric via Boost написал:
Hi,
I'm trying to build boost 1.92 on linux targetting arm64-apple-darwin21.4 but it fails on boost.locale because it cannot compile has_external_iconv. iconv is correctly build with libraries for the right architecture. I'm able to run the iconv binary on a mac without any issue.
I found why has_external_iconv fails to build but do not know what to do to change the automatic settings to make it works.
To compile has_external_iconv and confirm that I have the library in the path I provided, boost.build adds the following flags that make the compilation fail:
-m64 --target=arm64-apple-darwin
What makes it work is to remove -m64 and have --target=arm64-apple-darwin21.4
How can I have that?
Clang toolset recently was updated to have a <triple> option. The option allows suppressing and overriding clang's target triple guessing. So, you should be able to use <triple>arm64-apple-darwin21.4 as an option.
I don't think there's a way to make the toolset to not add -m64 flag. But it looks like this shouldn't create problems for clang compiler.
Also, a suggestion: rather then adding <cxxflags>"-std=c++14" to clang-darwin options add cxxstd=14 to the build request. In order to simplify your command you can add that property to a custom variant defined in your configuration file, e.g.
variant myrelease : release : <cxxstd>14 ;
_______________________________________________ Boost mailing list -- boost@lists.boost.org To unsubscribe send an email to boost-leave@lists.boost.org https://lists.boost.org/mailman3/lists/boost.lists.boost.org/ Archived at: https://lists.boost.org/archives/list/boost@lists.boost.org/message/VSQV45K2...