Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error: "have the same architectures (arm64) and can't be in the same fat output file" #71

Open
cryptozoidberg opened this issue Oct 29, 2021 · 9 comments

Comments

@cryptozoidberg
Copy link

For some reason build fails with this error:
iphoneos/arm64/libboost_system.a and iphonesimulator/arm64/libboost_system.a have the same architectures (arm64) and can't be in the same fat output file

Command line:

./boost.sh -ios -j 4 --boost-version 1.73.0 --ios-sdk 13.4 --ios-archs "armv7 arm64" --min-ios-version 10.2 --universal --boost-libs "system filesystem thread timer date_time chrono regex serialization atomic program_options locale"

Is there something wrong with my command line?

XCode Version 12.3 (12C33)
MacOS BigSur 11.5.2 (20G95)

Full build log:

./boost.sh -ios -j 4  --boost-version 1.73.0 --ios-sdk 13.4 --ios-archs "armv7 arm64" --min-ios-version 10.2 --universal --boost-libs "system filesystem thread timer date_time chrono regex serialization atomic program_options locale"
BOOST_VERSION       : 1.73.0

BUILD_IOS           : YES
IOS_ARCHS           : armv7
IOS_SDK_VERSION     : 13.4
IOS_SDK_PATH        : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
IOSSIM_SDK_PATH     : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk
MIN_IOS_VERSION     : 10.2

BUILD_TVOS          : NO
TVOS_SDK_VERSION    : 14.3
TVOS_SDK_PATH       : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.3.sdk
TVOSSIM_SDK_PATH    : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.3.sdk
MIN_TVOS_VERSION    : 11.0

BUILD_MACOS         : NO
MACOS_ARCHS         : i386
MACOS_SDK_VERSION   : 11.1
MACOS_SDK_PATH      : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MACOS_VERSION   : 10.12

BUILD_MACOS_SILICON : NO
MACOS_SILICON_ARCHS : arm64
MACOS_SILICON_SDK_VERSION: 11.1
MACOS_SILICON_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MACOS_SILICON_VERSION: 11
BUILD_MAC_CATALYST  : NO
MAC_CATALYST_ARCHS  : x86_64
MAC_CATALYST_SDK_VERSION: 11.1
MAC_CATALYST_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MAC_CATALYST_VERSION: 13.0

BOOST_LIBS          : system filesystem thread timer date_time chrono regex serialization atomic program_options locale
BOOST_SRC           : /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0
XCODE_ROOT          : /Applications/Xcode.app/Contents/Developer
IOS_BUILD_DIR       : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build
TVOS_BUILD_DIR      : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/tvos/release/build
MACOS_BUILD_DIR     : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/macos/release/build
MACOS_SILICON_BUILD_DIR: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/macos-silicon/release/build
MAC_CATALYST_BUILD_DIR: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/mac-catalyst/release/build
THREADS             : -j4
BUILD_VARIANT       : release

Cleaning everything

Done
=================================================================

Unpacking boost into /Users/roky/projects/Apple-Boost-BuildScript/src...
    ...unpacked as /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0

Done
=================================================================

Inventing missing headers
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/crt_externs.h: No such file or directory
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/bzlib.h: No such file or directory

Done
=================================================================

Patching boost in /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0
patching file src/tools/darwin.jam

Done
=================================================================

Updating boost into /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0...

Done
=================================================================

Bootstrap libs system filesystem thread timer date_time chrono regex serialization atomic program_options locale
Bootstrapping for iOS (with libs system,filesystem,thread,timer,date_time,chrono,regex,serialization,atomic,program_options,locale)
Building Boost.Build engine with toolset clang... tools/build/src/engine/b2
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for clang...

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

Done
=================================================================

Building Boost for iPhoneSimulator

Done
=================================================================

Splitting all existing fat binaries...
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphone-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphone-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
Decomposing each architecture's .a files
Decomposing libboost_system.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/system
Decomposing libboost_filesystem.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/filesystem
Decomposing libboost_thread.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/thread
Decomposing libboost_timer.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/timer
Decomposing libboost_date_time.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/date_time
Decomposing libboost_chrono.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/chrono
Decomposing libboost_regex.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/regex
Decomposing libboost_serialization.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/serialization
Decomposing libboost_atomic.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/atomic
Decomposing libboost_program_options.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/program_options
Decomposing libboost_locale.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Linking each architecture into an uberlib ( libboost_system.a libboost_filesystem.a libboost_thread.a libboost_timer.a libboost_date_time.a libboost_chrono.a libboost_regex.a libboost_serialization.a libboost_atomic.a libboost_program_options.a libboost_locale.a => libboost.a )
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/libboost.a: No such file or directory
Archiving system
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving filesystem
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving thread
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving timer
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving date_time
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving chrono
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving regex
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving serialization
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving atomic
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving program_options
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving locale
...ios-armv7
ar: obj/locale/*.o: No such file or directory
...ios-arm64
ar: obj/locale/*.o: No such file or directory
...ios-sim-i386
ar: obj/locale/*.o: No such file or directory
...ios-sim-x86_64
ar: obj/locale/*.o: No such file or directory
...ios-sim-arm64
ar: obj/locale/*.o: No such file or directory
Creating universal library...
... system
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: iphoneos/arm64/libboost_system.a and iphonesimulator/arm64/libboost_system.a have the same architectures (arm64) and can't be in the same fat output file

Aborted: Lipo system failed
@faithfracture
Copy link
Owner

I'm not 100%, but I'd guess the problem is that it's trying to pack the iphone-arm64 and the iphonesimulator-arm64 architectures into the same binary. They're different SDKs so I wouldn't think it would have a problem, but maybe because they're both arm64 the SDK might not matter? (Are you running an M1 or an Intel Mac?) You might try either omitting the arm64 from either the IOS_SIM_ARCHS or the IOS_ARCHS declaration and seeing it that works. armv7 and arm64 are defaults for the iOS archs, so you can omit that parameter.

@cryptozoidberg
Copy link
Author

I'm running Intel Mac Pro 2017
By "omitting the arm64 from either the IOS_SIM_ARCHS" you mean edit boost.sh file here
image

?

@faithfracture
Copy link
Owner

Yep, that's what I mean. There's not currently a CLI parameter to specify simulator arches, so you'll have to edit that line. I'm pretty sure that arch was added for M1 Macs, but I don't have one of those so I'm not 100% on that.

@cryptozoidberg
Copy link
Author

I've removed arm64 from IOS_SIM_ARCHS, delete intermediate files in src and build subfolders

image

Build log are pretty much the same :

./boost.sh -ios -j 4  --boost-version 1.73.0 --ios-sdk 13.4 --ios-archs "armv7 arm64" --min-ios-version 10.2 --universal --boost-libs "system filesystem thread timer date_time chrono regex serialization atomic program_options locale"
BOOST_VERSION       : 1.73.0

BUILD_IOS           : YES
IOS_ARCHS           : armv7
IOS_SDK_VERSION     : 13.4
IOS_SDK_PATH        : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
IOSSIM_SDK_PATH     : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk
MIN_IOS_VERSION     : 10.2

BUILD_TVOS          : NO
TVOS_SDK_VERSION    : 14.3
TVOS_SDK_PATH       : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.3.sdk
TVOSSIM_SDK_PATH    : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.3.sdk
MIN_TVOS_VERSION    : 11.0

BUILD_MACOS         : NO
MACOS_ARCHS         : i386
MACOS_SDK_VERSION   : 11.1
MACOS_SDK_PATH      : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MACOS_VERSION   : 10.12

BUILD_MACOS_SILICON : NO
MACOS_SILICON_ARCHS : arm64
MACOS_SILICON_SDK_VERSION: 11.1
MACOS_SILICON_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MACOS_SILICON_VERSION: 11
BUILD_MAC_CATALYST  : NO
MAC_CATALYST_ARCHS  : x86_64
MAC_CATALYST_SDK_VERSION: 11.1
MAC_CATALYST_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MAC_CATALYST_VERSION: 13.0

BOOST_LIBS          : system filesystem thread timer date_time chrono regex serialization atomic program_options locale
BOOST_SRC           : /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0
XCODE_ROOT          : /Applications/Xcode.app/Contents/Developer
IOS_BUILD_DIR       : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build
TVOS_BUILD_DIR      : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/tvos/release/build
MACOS_BUILD_DIR     : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/macos/release/build
MACOS_SILICON_BUILD_DIR: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/macos-silicon/release/build
MAC_CATALYST_BUILD_DIR: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/mac-catalyst/release/build
THREADS             : -j4
BUILD_VARIANT       : release

Cleaning everything

Done
=================================================================

Unpacking boost into /Users/roky/projects/Apple-Boost-BuildScript/src...
    ...unpacked as /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0

Done
=================================================================

Inventing missing headers
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/crt_externs.h: No such file or directory
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/bzlib.h: No such file or directory

Done
=================================================================

Patching boost in /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0
patching file src/tools/darwin.jam

Done
=================================================================

Updating boost into /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0...

Done
=================================================================

Bootstrap libs system filesystem thread timer date_time chrono regex serialization atomic program_options locale
Bootstrapping for iOS (with libs system,filesystem,thread,timer,date_time,chrono,regex,serialization,atomic,program_options,locale)
Building Boost.Build engine with toolset clang... tools/build/src/engine/b2
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for clang...

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

Done
=================================================================

Building Boost for iPhoneSimulator

Done
=================================================================

Splitting all existing fat binaries...
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphone-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphone-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
Decomposing each architecture's .a files
Decomposing libboost_system.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/system
Decomposing libboost_filesystem.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/filesystem
Decomposing libboost_thread.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/thread
Decomposing libboost_timer.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/timer
Decomposing libboost_date_time.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/date_time
Decomposing libboost_chrono.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/chrono
Decomposing libboost_regex.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/regex
Decomposing libboost_serialization.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/serialization
Decomposing libboost_atomic.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/atomic
Decomposing libboost_program_options.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/program_options
Decomposing libboost_locale.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Linking each architecture into an uberlib ( libboost_system.a libboost_filesystem.a libboost_thread.a libboost_timer.a libboost_date_time.a libboost_chrono.a libboost_regex.a libboost_serialization.a libboost_atomic.a libboost_program_options.a libboost_locale.a => libboost.a )
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/arm64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/libboost.a: No such file or directory
Archiving system
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving filesystem
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving thread
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving timer
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving date_time
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving chrono
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving regex
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving serialization
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving atomic
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving program_options
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
...ios-sim-arm64
Archiving locale
...ios-armv7
ar: obj/locale/*.o: No such file or directory
...ios-arm64
ar: obj/locale/*.o: No such file or directory
...ios-sim-i386
ar: obj/locale/*.o: No such file or directory
...ios-sim-x86_64
ar: obj/locale/*.o: No such file or directory
...ios-sim-arm64
ar: obj/locale/*.o: No such file or directory
Creating universal library...
... system
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: iphoneos/arm64/libboost_system.a and iphonesimulator/arm64/libboost_system.a have the same architectures (arm64) and can't be in the same fat output file

Aborted: Lipo system failed

@faithfracture
Copy link
Owner

faithfracture commented Oct 29, 2021

Hmm, it looks like there's a couple other places that's adding arm64 back to the IOS_SIM_ARCHS array.
This one is one line 598

        # Add x86-64 and arm64 mac simulator for 64-bit arm iOS
        if [[ "${IOS_ARCHS[*]}" =~ arm64 ]]; then
            IOS_SIM_ARCHS+=("x86_64" "arm64")
        fi

and this is one is just below it on 605

        read -ra MIN_IOS_PARTS <<< "${MIN_IOS_VERSION//./ }"
        if [[ ${MIN_IOS_PARTS[0]} -ge 11 ]]; then
            # iOS 11 dropped support for 32bit devices
            IOS_ARCHS=("arm64")
            IOS_SIM_ARCHS=("x86_64" "arm64")
        fi

Try removing the "arm64" from those too (or maybe just comment out the whole block?). The second one I think is skipped though because you're targeting iOS 10.2 so that shouldn't matter.

Also, before running the script to build, run ./build.sh --purge. That'll nuke everything and start over.

@cryptozoidberg
Copy link
Author

@faithfracture Thanks for advice, this worked and brought me to the next fail:

Looks like for some reason it's not building boost locale:

./boost.sh -ios -j 4  --boost-version 1.73.0 --ios-sdk 13.4  --min-ios-version 9.3 --universal --boost-libs "system filesystem thread timer date_time chrono regex serialization atomic program_options locale"
BOOST_VERSION       : 1.73.0

BUILD_IOS           : YES
IOS_ARCHS           : armv7
IOS_SDK_VERSION     : 13.4
IOS_SDK_PATH        : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
IOSSIM_SDK_PATH     : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk
MIN_IOS_VERSION     : 9.3

BUILD_TVOS          : NO
TVOS_SDK_VERSION    : 14.3
TVOS_SDK_PATH       : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.3.sdk
TVOSSIM_SDK_PATH    : /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.3.sdk
MIN_TVOS_VERSION    : 11.0

BUILD_MACOS         : NO
MACOS_ARCHS         : i386
MACOS_SDK_VERSION   : 11.1
MACOS_SDK_PATH      : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MACOS_VERSION   : 10.12

BUILD_MACOS_SILICON : NO
MACOS_SILICON_ARCHS : arm64
MACOS_SILICON_SDK_VERSION: 11.1
MACOS_SILICON_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MACOS_SILICON_VERSION: 11
BUILD_MAC_CATALYST  : NO
MAC_CATALYST_ARCHS  : x86_64
MAC_CATALYST_SDK_VERSION: 11.1
MAC_CATALYST_SDK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MIN_MAC_CATALYST_VERSION: 13.0

BOOST_LIBS          : system filesystem thread timer date_time chrono regex serialization atomic program_options locale
BOOST_SRC           : /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0
XCODE_ROOT          : /Applications/Xcode.app/Contents/Developer
IOS_BUILD_DIR       : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build
TVOS_BUILD_DIR      : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/tvos/release/build
MACOS_BUILD_DIR     : /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/macos/release/build
MACOS_SILICON_BUILD_DIR: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/macos-silicon/release/build
MAC_CATALYST_BUILD_DIR: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/mac-catalyst/release/build
THREADS             : -j4
BUILD_VARIANT       : release

Cleaning everything

Done
=================================================================

Downloading boost 1.73.0 from https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_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  104M  100  104M    0     0  2466k      0  0:00:43  0:00:43 --:--:-- 2130k

Done
=================================================================

Unpacking boost into /Users/roky/projects/Apple-Boost-BuildScript/src...
    ...unpacked as /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0

Done
=================================================================

Inventing missing headers
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/crt_externs.h: No such file or directory
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/bzlib.h: No such file or directory

Done
=================================================================

Patching boost in /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0
patching file src/tools/darwin.jam

Done
=================================================================

Updating boost into /Users/roky/projects/Apple-Boost-BuildScript/src/boost_1_73_0...

Done
=================================================================

Bootstrap libs system filesystem thread timer date_time chrono regex serialization atomic program_options locale
Bootstrapping for iOS (with libs system,filesystem,thread,timer,date_time,chrono,regex,serialization,atomic,program_options,locale)
Building Boost.Build engine with toolset clang... tools/build/src/engine/b2
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for clang...

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

Done
=================================================================

Building Boost for iPhoneSimulator

Done
=================================================================

Splitting all existing fat binaries...
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphone-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphone-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphonesim-build/stage/lib/libboost_locale.a (No such file or directory)
Decomposing each architecture's .a files
Decomposing libboost_system.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/system
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/system
Decomposing libboost_filesystem.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/filesystem
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/filesystem
Decomposing libboost_thread.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/thread
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/thread
Decomposing libboost_timer.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/timer
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/timer
Decomposing libboost_date_time.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/date_time
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/date_time
Decomposing libboost_chrono.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/chrono
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/chrono
Decomposing libboost_regex.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/regex
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/regex
Decomposing libboost_serialization.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/serialization
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/serialization
Decomposing libboost_atomic.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/atomic
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/atomic
Decomposing libboost_program_options.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/program_options
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/program_options
Decomposing libboost_locale.a
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Unpacking /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/obj/locale
ar: ../../libboost_locale.a: No such file or directory
mv: rename *.o to locale_*.o: No such file or directory
Linking each architecture into an uberlib ( libboost_system.a libboost_filesystem.a libboost_thread.a libboost_timer.a libboost_date_time.a libboost_chrono.a libboost_regex.a libboost_serialization.a libboost_atomic.a libboost_program_options.a libboost_locale.a => libboost.a )
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/armv7/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/arm64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphoneos/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/i386/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/x86_64/libboost.a: No such file or directory
rm: /Users/roky/projects/Apple-Boost-BuildScript/build/boost/1.73.0/ios/release/build/iphonesimulator/libboost.a: No such file or directory
Archiving system
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving filesystem
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving thread
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving timer
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving date_time
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving chrono
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving regex
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving serialization
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving atomic
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving program_options
...ios-armv7
...ios-arm64
...ios-sim-i386
...ios-sim-x86_64
Archiving locale
...ios-armv7
ar: obj/locale/*.o: No such file or directory
...ios-arm64
ar: obj/locale/*.o: No such file or directory
...ios-sim-i386
ar: obj/locale/*.o: No such file or directory
...ios-sim-x86_64
ar: obj/locale/*.o: No such file or directory
Creating universal library...
... system
... filesystem
... thread
... timer
... date_time
... chrono
... regex
... serialization
... atomic
... program_options
... locale
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: iphoneos/armv7/libboost_locale.a (No such file or directory)

Aborted: Lipo locale failed

@cryptozoidberg
Copy link
Author

@faithfracture is there any guidance on building boost.locale for ios ?

@faithfracture
Copy link
Owner

I don't use that Boost component, so I'm not really sure. I remember something about this in the past, but it's been so long that I don't remember what the issue was. Some Boost components depend on other ones. Can you try --boost_libs "all" and see if that works?

@kambala-decapitator
Copy link

@faithfracture is there any guidance on building boost.locale for ios ?

@cryptozoidberg see #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants