Hi, I'm trying to build boost 1.70.0 but it always error out for some reason, my XCode version is 14.1, please help.
BOOST_VERSION : 1.70.0
BUILD_IOS : YES
IOS_ARCHS : arm64
IOS_SDK_VERSION : 16.1
IOS_SDK_PATH : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk
IOSSIM_SDK_PATH : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.1.sdk
MIN_IOS_VERSION : 12.0
BUILD_TVOS : NO
TVOS_SDK_VERSION : 16.1
TVOS_SDK_PATH : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS16.1.sdk
TVOSSIM_SDK_PATH : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.1.sdk
MIN_TVOS_VERSION : 13.0
BUILD_MACOS : NO
MACOS_ARCHS : i386
MACOS_SDK_VERSION : 13.0
MACOS_SDK_PATH : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk
MIN_MACOS_VERSION : 10.12
BUILD_MACOS_SILICON : NO
MACOS_SILICON_ARCHS : arm64
MACOS_SILICON_SDK_VERSION: 13.0
MACOS_SILICON_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk
MIN_MACOS_SILICON_VERSION: 11
BUILD_MAC_CATALYST : NO
MAC_CATALYST_ARCHS : x86_64
MAC_CATALYST_SDK_VERSION: 13.0
MAC_CATALYST_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk
MIN_MAC_CATALYST_VERSION: 14.0
BOOST_LIBS : atomic chrono date_time exception filesystem program_options random system thread test
BOOST_SRC : /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0
XCODE_ROOT : /Applications/Xcode.app/Contents/Developer
IOS_BUILD_DIR : /Users/vutien/Downloads/Apple-Boost-BuildScript-master/build/boost/1.70.0/ios/release/build
TVOS_BUILD_DIR : /Users/vutien/Downloads/Apple-Boost-BuildScript-master/build/boost/1.70.0/tvos/release/build
MACOS_BUILD_DIR : /Users/vutien/Downloads/Apple-Boost-BuildScript-master/build/boost/1.70.0/macos/release/build
MACOS_SILICON_BUILD_DIR: /Users/vutien/Downloads/Apple-Boost-BuildScript-master/build/boost/1.70.0/macos-silicon/release/build
MAC_CATALYST_BUILD_DIR: /Users/vutien/Downloads/Apple-Boost-BuildScript-master/build/boost/1.70.0/mac-catalyst/release/build
THREADS : -j8
BUILD_VARIANT : release
Cleaning everything
Done
=================================================================
Downloading boost 1.70.0 from https://boostorg.jfrog.io/artifactory/main/release/1.70.0/source/boost_1_70_0.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 93.3M 100 93.3M 0 0 2195k 0 0:00:43 0:00:43 --:--:-- 1515k
Done
=================================================================
Unpacking boost into /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src...
...unpacked as /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0
Done
=================================================================
Inventing missing headers
Done
=================================================================
Patching boost in /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0
patching file 'src/tools/darwin.jam'
Done
=================================================================
Updating boost into /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0...
Done
=================================================================
Bootstrapping for bcp (with libs atomic,chrono,date_time,exception,filesystem,program_options,random,system,thread,test)
Building Boost.Build engine with toolset darwin... tools/build/src/engine/bin.macosxarm/b2
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for darwin...
Bootstrapping is done. To build, run:
./b2
To generate header files, run:
./b2 headers
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/build/
Done
=================================================================
Thinning boost in /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0_thinned (input is /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0)
Performing configuration checks
- default address-model : 64-bit
- default architecture : arm
- has_icu builds : no
...patience...
...found 1032 targets...
...updating 59 targets...
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/add_dependent_lib.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/add_path.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/bcp_imp.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/copy_path.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/file_types.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/fileview.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/main.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/path_operations.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/scan_cvs_path.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/licence_info.o
tools/bcp/licence_info.cpp:716:48: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
static const boost::regex e("(^)?[^-(<a-zA-Z<C0>-<FE>]+(([(<].*)?$)?");
^~~~ ~~~~
1 warning generated.
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/scan_licence.o
clang-darwin.compile.c++ bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/output_licence_info.o
In file included from tools/bcp/output_licence_info.cpp:17:
In file included from ./boost/lexical_cast.hpp:32:
In file included from ./boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from ./boost/lexical_cast/detail/converter_lexical.hpp:54:
./boost/lexical_cast/detail/converter_lexical_streams.hpp:285:21: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
sprintf(begin,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
In file included from tools/bcp/output_licence_info.cpp:17:
In file included from ./boost/lexical_cast.hpp:32:
In file included from ./boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from ./boost/lexical_cast/detail/converter_lexical.hpp:54:
./boost/lexical_cast/detail/converter_lexical_streams.hpp:297:21: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
sprintf(begin,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
In file included from tools/bcp/output_licence_info.cpp:17:
In file included from ./boost/lexical_cast.hpp:32:
In file included from ./boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from ./boost/lexical_cast/detail/converter_lexical.hpp:54:
./boost/lexical_cast/detail/converter_lexical_streams.hpp:310:21: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
sprintf(begin,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
3 warnings generated.
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/codecvt_error_category.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/operations.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/path.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/path_traits.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/portability.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/unique_path.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/utf8_codecvt_facet.o
clang-darwin.compile.c++ bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/windows_file_codecvt.o
clang-darwin.archive bin.v2/libs/filesystem/build/clang-darwin-14.0/release/link-static/visibility-hidden/libboost_filesystem.a
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/c_regex_traits.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/cpp_regex_traits.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/cregex.o
libs/regex/build/../src/cregex.cpp:374:24: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
int r = (std::sprintf)(buf, "%s%s%s", dstart.path(), directory_iterator::separator(), ptr);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
1 warning generated.
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/fileiter.o
libs/regex/build/../src/fileiter.cpp:857:17: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
r = (std::sprintf)(buf, "%s%s", root, name);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
libs/regex/build/../src/fileiter.cpp:859:17: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
r = (std::sprintf)(buf, "%s%s%s", root, _fi_sep, name);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
2 warnings generated.
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/icu.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/instances.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/posix_api.o
libs/regex/build/../src/posix_api.cpp:175:27: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
int r = (std::sprintf)(localbuf, "%d", i);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
libs/regex/build/../src/posix_api.cpp:187:21: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
int r = (std::sprintf)(localbuf, "%d", 0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
2 warnings generated.
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/regex.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/regex_debug.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/regex_raw_buffer.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/regex_traits_defaults.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/static_mutex.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/w32_regex_traits.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/wc_regex_traits.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/wide_posix_api.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/winstances.o
clang-darwin.compile.c++ bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/usinstances.o
clang-darwin.archive bin.v2/libs/regex/build/clang-darwin-14.0/release/link-static/visibility-hidden/libboost_regex.a
clang-darwin.link bin.v2/tools/bcp/clang-darwin-14.0/release/link-static/bcp
common.copy dist/bin/bcp
...updated 59 targets...
Active source dir is now /Users/vutien/Downloads/Apple-Boost-BuildScript-master/src/boost_1_70_0_thinned
Done
=================================================================
Bootstrapping for iOS (with libs atomic,chrono,date_time,exception,filesystem,program_options,random,system,thread,test)
Building Boost.Build engine with toolset darwin... tools/build/src/engine/bin.macosxarm/b2
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for darwin...
Bootstrapping is done. To build, run:
./b2
To generate header files, run:
./b2 headers
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/build/
Done
=================================================================
Building Boost for iPhone
Error staging iPhone. Check log.