borglab / gtsam

GTSAM is a library of C++ classes that implement smoothing and mapping (SAM) in robotics and vision, using factor graphs and Bayes networks as the underlying computing paradigm rather than sparse matrices.
http://gtsam.org
Other
2.63k stars 767 forks source link

compile gtsam on the ios using conan failing with a bug #1689

Closed 11janson closed 9 months ago

11janson commented 11 months ago

Thanks for your reply. I want to use gtsam with an iPad app, so need to compile gtsam on the iOS, but failed both on the Conan and vcpkg, and looks like same errors:

/Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/DecisionTree-inl.h:966:9: error: 'system' is unavailable: not available on iOS

Description

https://github.com/conan-io/conan-center-index/issues/21725 https://github.com/conan-io/conan-center-index/issues/21725

Steps to reproduce

this is the whole logs using Conan:

janson@jansondeMac-mini simple_cmake_project % conan install . --output-folder=build --build=missing --profile:host=ios_profile --profile:build=default

======== Input profiles ======== Profile host: [settings] arch=armv8 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=12.0 os=iOS os.sdk=iphoneos os.version=12.0

Profile build: [settings] arch=x86_64 build_type=Release compiler=apple-clang compiler.cppstd=gnu17 compiler.libcxx=libc++ compiler.version=15 os=Macos

======== Computing dependency graph ======== Graph root conanfile.txt: /Users/janson/Documents/workspace2024/conan/examples2/tutorial/consuming_packages/simple_cmake_project/conanfile.txt Requirements boost/1.82.0#7c9cc60d65d6942a56d4806ab85bda7c - Cache bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache gtsam/4.2.0a9#d31b625288070edd7a353e83cb69a44f - Cache libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c - Cache zlib/1.3#06023034579559bb64357db3a53f88a4 - Cache Build requirements b2/4.10.1#8dc3df1cc73ad65d86cbdfd31fdb011f - Cache Resolved version ranges zlib/[>=1.2.11 <2]: zlib/1.3

======== Computing necessary packages ======== Requirements boost/1.82.0#7c9cc60d65d6942a56d4806ab85bda7c:f460c9c58437ba7aad62d1be01b0a9088b624d15 - Build bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d:83af81a24462d537e70c80a5a894761fa7012d4e#ccc1d60f9ad48fea001aef89781209ab - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c:da39a3ee5e6b4b0d3255bfef95601890afd80709#b2e7c2d86c5d1dbefc534889aa72e12c - Cache gtsam/4.2.0a9#d31b625288070edd7a353e83cb69a44f:d72c1e1aa3a94fb3df4629a2ec154f20a5e3ffdf - Build libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c:f982d85e89b5609eade6f460978e5f30efe96dea#a377bd42178e7944fbd92deceac11063 - Cache zlib/1.3#06023034579559bb64357db3a53f88a4:f982d85e89b5609eade6f460978e5f30efe96dea#0e0c0ada7b5cc66c1f65ff993522b764 - Cache Build requirements b2/4.10.1#8dc3df1cc73ad65d86cbdfd31fdb011f:82339cc4d6db7990c1830d274cd12e7c91ab18a1#93ca405597cc44478fec2b8fe8c855ec - Cache

======== Installing packages ======== b2/4.10.1: Already installed! (1 of 7) bzip2/1.0.8: Already installed! (2 of 7) eigen/3.4.0: Already installed! (3 of 7) libbacktrace/cci.20210118: Already installed! (4 of 7) zlib/1.3: Already installed! (5 of 7)

-------- Installing package boost/1.82.0 (6 of 7) -------- boost/1.82.0: Building from source boost/1.82.0: Package boost/1.82.0:f460c9c58437ba7aad62d1be01b0a9088b624d15 boost/1.82.0: Building your package in /Users/janson/.conan2/p/b/boost7267bb74a7057/b boost/1.82.0: Calling generate() boost/1.82.0: Generators folder: /Users/janson/.conan2/p/b/boost7267bb74a7057/b/build-release/conan boost/1.82.0: Generating aggregated env files boost/1.82.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] boost/1.82.0: Calling build() boost/1.82.0: WARN: replace_in_file didn't find pattern '$(>) > $(<)' in '/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/libs/stacktrace/build/Jamfile.v2' file. boost/1.82.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in '/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build/src/tools/gcc.jam' file. boost/1.82.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in '/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build/src/tools/gcc.jam' file. boost/1.82.0: WARN: replace_in_file didn't find pattern ' @numa' in '/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/libs/fiber/build/Jamfile.v2' file. boost/1.82.0: WARN: Patching user-config.jam boost/1.82.0: WARN: using zlib : 1.3 : "/Users/janson/.conan2/p/b/zlibbd1591f44d1a1/p/include" "/Users/janson/.conan2/p/b/zlibbd1591f44d1a1/p/lib" z ; using bzip2 : 1.0.8 : "/Users/janson/.conan2/p/b/bzip2b42aa1836710f/p/include" "/Users/janson/.conan2/p/b/bzip2b42aa1836710f/p/lib" bz2 ; using "clang-darwin" : : "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk -arch arm64 :

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" "-I/Users/janson/.conan2/p/b/libbad90f82b727c84/p/include" "-L/Users/janson/.conan2/p/b/libbad90f82b727c84/p/lib" "iphone" ; boost/1.82.0: Cross building, detecting compiler... boost/1.82.0: Cross building flags: [] boost/1.82.0: WARN: b2 -q architecture=arm address-model=64 binary-format=mach-o abi=aapcs --layout=system --user-config=/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-filesystem --with-iostreams --with-log --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure toolset=clang-darwin pch=on -sLIBBACKTRACE_PATH=/Users/janson/.conan2/p/b/libbad90f82b727c84/p linkflags="-stdlib=libc++ -mios-version-min=12.0" cxxflags="-fPIC -stdlib=libc++ -mios-version-min=12.0 -DBOOST_SP_USE_SPINLOCK" install --prefix=/Users/janson/.conan2/p/b/boost7267bb74a7057/p -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/janson/.conan2/p/b/boost7267bb74a7057/b/build-release" boost/1.82.0: RUN: b2 -q architecture=arm address-model=64 binary-format=mach-o abi=aapcs --layout=system --user-config=/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-filesystem --with-iostreams --with-log --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure toolset=clang-darwin pch=on -sLIBBACKTRACE_PATH=/Users/janson/.conan2/p/b/libbad90f82b727c84/p linkflags="-stdlib=libc++ -mios-version-min=12.0" cxxflags="-fPIC -stdlib=libc++ -mios-version-min=12.0 -DBOOST_SP_USE_SPINLOCK" install --prefix=/Users/janson/.conan2/p/b/boost7267bb74a7057/p -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/janson/.conan2/p/b/boost7267bb74a7057/b/build-release" notice: found boost-build.jam at /Users/janson/.conan2/p/boost07b80a7bd5806/s/src/boost-build.jam notice: loading B2 from /Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/kernel/bootstrap.jam notice: Searching '/etc' '/Users/janson' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/kernel' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/util' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/build' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/tools' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/contrib' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in '/etc' '/Users/janson' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/kernel' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/util' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/build' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/tools' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/contrib' '/Users/janson/.conan2/p/b2b8bfcc0876b64/p/bin/.b2/.'. notice: Loading explicitly specified user configuration file: /Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build/user-config.jam notice: Searching '/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from '/Users/janson/.conan2/p/boost07b80a7bd5806/s/src/tools/build'. notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: [bzip2] Using pre-installed library notice: [bzip2] Condition notice: will use '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' '-isysroot' '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk' '-arch' 'arm64' for clang-darwin, condition clang-15 notice: [zlib] zlib is already configured notice: [bzip2] bzip is already configured notice: iostreams: not using lzma compression notice: iostreams: not using zstd compression notice: [python-cfg] Configuring python... notice: [python-cfg] Checking interpreter command "python"... notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.4/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.4/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.3/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.3/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.2/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.2/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.1/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.1/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/3.0/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/3.0/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.9/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.9/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.8/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.8/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.6/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.6/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.5/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.5/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.4/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.3/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.3/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.2/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.2/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.1/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.1/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.0/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.0/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.9/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.9/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.8/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.8/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.7/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.6/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.6/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/1.5/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/1.5/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] Python headers and libraries not found. Performing configuration checks - default address-model : 64-bit [1] - default architecture : arm [1] - has std::atomic_ref : no [2] - has statx : no [2] - has statx syscall : no [2] - has init_priority attribute : yes [2] - has stat::st_blksize : no [2] - has stat::st_mtim : no [2] - has stat::st_mtimensec : no [2] - has stat::st_mtimespec : yes [2] - has stat::st_birthtim : no [2] - has stat::st_birthtimensec : no [2] - has stat::st_birthtimespec : yes [2] - has fdopendir(O_NOFOLLOW) : yes [2] - has POSIX *at APIs : no [2] - zlib : yes [3] - bzip2 : yes [3] - native atomic int32 supported : yes [2] - native syslog supported : yes [2] - pthread supports robust mutexes : no [2] - has_icu builds : no [2] - lockfree boost::atomic_flag : yes [2] - libbacktrace builds : yes [2] - addr2line builds : no [2] - addr2line builds : no [4] - WinDbg builds : no [2] - WinDbg builds : no [4] - WinDbgCached builds : no [2] - WinDbgCached builds : no [4] - BOOST_COMP_GNUC >= 4.3.0 : no [2] [1] clng-15 [2] clng-drwn-15/rls/abi-apcs/bst.l-off/bst.l-off/lnk-sttc/thrd-mlt/vsblt-hdn [3] lnk-sttc [4] clng-drwn-15/rls/abi-apcs/bst.l-off/bst.l-off/bld-no/lnk-sttc/thrd-mlt/vsblt-hdn Component configuration: - atomic : building - chrono : building - container : building - context : building - contract : building - coroutine : building - date_time : building - exception : building - fiber : not building - filesystem : building - graph : not building - graph_parallel : not building - headers : not building - iostreams : building - json : not building - locale : not building - log : building - math : not building - mpi : not building - nowide : not building - program_options : building - python : not building - random : building - regex : building - serialization : building - stacktrace : building - system : building - test : building - thread : building - timer : building - type_erasure : building - url : not building - wave : not building boost/1.82.0: Package 'f460c9c58437ba7aad62d1be01b0a9088b624d15' built boost/1.82.0: Build folder /Users/janson/.conan2/p/b/boost7267bb74a7057/b/build-release boost/1.82.0: Generating the package boost/1.82.0: Packaging in folder /Users/janson/.conan2/p/b/boost7267bb74a7057/p boost/1.82.0: Calling package() boost/1.82.0: package(): Packaged 1 '.txt' file: LICENSE_1_0.txt boost/1.82.0: package(): Packaged 15141 '.hpp' files boost/1.82.0: package(): Packaged 148 '.h' files boost/1.82.0: package(): Packaged 17 files boost/1.82.0: package(): Packaged 365 '.ipp' files boost/1.82.0: package(): Packaged 2 '.inc' files: strict_cpp_re.inc, cpp_re.inc boost/1.82.0: package(): Packaged 27 '.a' files boost/1.82.0: Created package revision b5c92258c321be7c797c154bd07175ee boost/1.82.0: Package 'f460c9c58437ba7aad62d1be01b0a9088b624d15' created boost/1.82.0: Full package reference: boost/1.82.0#7c9cc60d65d6942a56d4806ab85bda7c:f460c9c58437ba7aad62d1be01b0a9088b624d15#b5c92258c321be7c797c154bd07175ee boost/1.82.0: Package folder /Users/janson/.conan2/p/b/boost7267bb74a7057/p gtsam/4.2.0a9: Sources downloaded from 'conancenter' gtsam/4.2.0a9: Calling source() in /Users/janson/.conan2/p/gtsam604b0af1148a9/s/src gtsam/4.2.0a9: Downloading 29.7MB 4.2a9.tar.gz -------- Installing package gtsam/4.2.0a9 (7 of 7) -------- gtsam/4.2.0a9: Building from source gtsam/4.2.0a9: Package gtsam/4.2.0a9:d72c1e1aa3a94fb3df4629a2ec154f20a5e3ffdf gtsam/4.2.0a9: Copying sources to build folder gtsam/4.2.0a9: Building your package in /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b gtsam/4.2.0a9: Calling generate() gtsam/4.2.0a9: Generators folder: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release/generators gtsam/4.2.0a9: CMakeToolchain generated: conan_toolchain.cmake gtsam/4.2.0a9: CMakeToolchain generated: CMakePresets.json gtsam/4.2.0a9: CMakeToolchain generated: ../../../src/CMakeUserPresets.json gtsam/4.2.0a9: Generating aggregated env files gtsam/4.2.0a9: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] gtsam/4.2.0a9: Calling build() gtsam/4.2.0a9: Apply patch (conan): Use boost targets gtsam/4.2.0a9: Apply patch (conan): Relocatable shared libs on Apple OS gtsam/4.2.0a9: Apply patch (conan): Get Eigen3 version info from Conan gtsam/4.2.0a9: Apply patch (portability): Fix an invalid include for pre-C++17 compatibility gtsam/4.2.0a9: Running CMake.configure() gtsam/4.2.0a9: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/Users/janson/.conan2/p/b/gtsamd04a918ac3f64/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src" CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using Conan toolchain: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release/generators/conan_toolchain.cmake -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC) -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- The CXX compiler identification is AppleClang 15.0.0.15000040 -- The C compiler identification is AppleClang 15.0.0.15000040 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- GTSAM Version: 4.2a9 -- Performing Test COMPILER_HAS_WSUGGEST_OVERRIDE -- Performing Test COMPILER_HAS_WSUGGEST_OVERRIDE - Success -- Performing Test COMPILER_HAS_WMISSING_OVERRIDE -- Performing Test COMPILER_HAS_WMISSING_OVERRIDE - Failed -- Conan: Component target declared 'Boost::diagnostic_definitions' -- Conan: Component target declared 'Boost::disable_autolinking' -- Conan: Component target declared 'Boost::dynamic_linking' -- Conan: Component target declared 'Boost::headers' -- Conan: Component target declared 'Boost::boost' -- Conan: Component target declared 'boost::_libboost' -- Conan: Component target declared 'Boost::atomic' -- Conan: Component target declared 'Boost::container' -- Conan: Component target declared 'Boost::context' -- Conan: Component target declared 'Boost::date_time' -- Conan: Component target declared 'Boost::exception' -- Conan: Component target declared 'Boost::program_options' -- Conan: Component target declared 'Boost::regex' -- Conan: Component target declared 'Boost::serialization' -- Conan: Component target declared 'Boost::stacktrace' -- Conan: Component target declared 'Boost::stacktrace_backtrace' -- Conan: Component target declared 'Boost::stacktrace_basic' -- Conan: Component target declared 'Boost::stacktrace_noop' -- Conan: Component target declared 'Boost::system' -- Conan: Component target declared 'Boost::test' -- Conan: Component target declared 'Boost::test_exec_monitor' -- Conan: Component target declared 'Boost::wserialization' -- Conan: Component target declared 'Boost::chrono' -- Conan: Component target declared 'Boost::coroutine' -- Conan: Component target declared 'Boost::filesystem' -- Conan: Component target declared 'Boost::prg_exec_monitor' -- Conan: Component target declared 'Boost::random' -- Conan: Component target declared 'Boost::thread' -- Conan: Component target declared 'Boost::timer' -- Conan: Component target declared 'Boost::type_erasure' -- Conan: Component target declared 'Boost::unit_test_framework' -- Conan: Component target declared 'Boost::contract' -- Conan: Component target declared 'Boost::iostreams' -- Conan: Component target declared 'Boost::log' -- Conan: Component target declared 'Boost::log_setup' -- Conan: Target declared 'boost::boost' -- Conan: Target declared 'ZLIB::ZLIB' -- Conan: Target declared 'BZip2::BZip2' -- Conan: Including build module from '/Users/janson/.conan2/p/b/bzip2b42aa1836710f/p/lib/cmake/conan-official-bzip2-variables.cmake' -- Conan: Target declared 'libbacktrace::libbacktrace' -- Conan: Component target declared 'Eigen3::Eigen' -- Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES) -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) -- Building 3rdparty -- Could NOT find GeographicLib (missing: GeographicLib_LIBRARY_DIRS GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS) -- Building base -- Building basis -- Building geometry -- Building inference -- Building symbolic -- Building discrete -- Building hybrid -- Building linear -- Building nonlinear -- Building sam -- Building sfm -- Building slam -- Building navigation -- GTSAM Version: 4.2.0 -- Install prefix: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/p -- Building GTSAM - shared: OFF -- Building base_unstable -- Building geometry_unstable -- Building linear_unstable -- Building discrete_unstable -- Building dynamics_unstable -- Building nonlinear_unstable -- Building slam_unstable -- GTSAM_UNSTABLE Version: 4.2.0 -- Install prefix: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/p -- Wrote /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release/GTSAMConfig.cmake -- Wrote /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release/GTSAM_UNSTABLEConfig.cmake -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- =============================================================== -- ================ Configuration Options ====================== -- CMAKE_CXX_COMPILER_ID type : AppleClang -- CMAKE_CXX_COMPILER_VERSION : 15.0.0.15000040 -- CMake version : 3.28.0 -- CMake generator : Unix Makefiles -- CMake build tool : /usr/bin/make -- Build flags -- Build Tests : Disabled -- Build examples with 'make all' : Disabled -- Build timing scripts with 'make all' : Disabled -- Build shared GTSAM libraries : Disabled -- Put build type in library name : Enabled -- Build libgtsam_unstable : Enabled -- Build GTSAM unstable Python : Disabled -- Build MATLAB Toolbox for unstable : Disabled -- Build for native architecture : Disabled -- Build type : Release -- C compilation flags : -O3 -DNDEBUG -- C++ compilation flags : -stdlib=libc++ -O3 -DNDEBUG -- GTSAM_COMPILE_FEATURES_PUBLIC : cxx_std_11 -- GTSAM_COMPILE_OPTIONS_PUBLIC : -- GTSAM_COMPILE_DEFINITIONS_PUBLIC : -- GTSAM_COMPILE_OPTIONS_PUBLIC_RELEASE : -- GTSAM_COMPILE_DEFINITIONS_PUBLIC_RELEASE : -- Use System Eigen : ON (Using version: 3.4.0) -- Use System Metis : OFF -- Using Boost version : 1.82.0 -- Use Intel TBB : TBB not found -- Eigen will use MKL : MKL not found -- Eigen will use MKL and OpenMP : OpenMP not found -- Default allocator : STL -- Cheirality exceptions enabled : YES -- Build with ccache : No -- Packaging flags -- CPack Source Generator : TGZ -- CPack Generator : TGZ -- GTSAM flags -- Quaternions as default Rot3 : Disabled -- Runtime consistency checking : Disabled -- Rot3 retract is full ExpMap : Disabled -- Pose3 retract is full ExpMap : Disabled -- Allow features deprecated in GTSAM 4.2 : Enabled -- Metis-based Nested Dissection : Disabled -- Use tangent-space preintegration : Disabled -- MATLAB toolbox flags -- Install MATLAB toolbox : Disabled -- Python toolbox flags -- Build Python module with pybind : Disabled -- =============================================================== -- Configuring done (1.7s) -- Generating done (0.4s) -- Build files have been written to: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release gtsam/4.2.0a9: Running CMake.build() gtsam/4.2.0a9: RUN: cmake --build "/Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release" -- -j8 [ 0%] Building CXX object CppUnitLite/CMakeFiles/CppUnitLite.dir/Test.cpp.o [ 0%] Building CXX object CppUnitLite/CMakeFiles/CppUnitLite.dir/TestRegistry.cpp.o [ 0%] Building CXX object CppUnitLite/CMakeFiles/CppUnitLite.dir/TestResult.cpp.o [ 1%] Building C object gtsam/CMakeFiles/gtsam.dir/3rdparty/SuiteSparse_config/SuiteSparse_config.c.o [ 1%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/Matrix.cpp.o [ 1%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/DSFVector.cpp.o [ 1%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/SymmetricBlockMatrix.cpp.o [ 1%] Building C object gtsam/CMakeFiles/gtsam.dir/3rdparty/CCOLAMD/Source/ccolamd.c.o [ 3%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/Vector.cpp.o [ 3%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/VerticalBlockMatrix.cpp.o [ 3%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/cholesky.cpp.o [ 3%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/debug.cpp.o [ 5%] Linking CXX static library libCppUnitLite.a [ 5%] Built target CppUnitLite [ 7%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/timing.cpp.o [ 7%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/types.cpp.o [ 7%] Building CXX object gtsam/CMakeFiles/gtsam.dir/base/utilities.cpp.o [ 7%] Building CXX object gtsam/CMakeFiles/gtsam.dir/basis/Chebyshev.cpp.o [ 9%] Building CXX object gtsam/CMakeFiles/gtsam.dir/basis/Chebyshev2.cpp.o [ 9%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3.cpp.o [ 9%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3Bundler.cpp.o [ 9%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3DS2.cpp.o [ 11%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3DS2_Base.cpp.o [ 11%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3Fisheye.cpp.o [ 11%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3Unified.cpp.o [ 11%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3_S2.cpp.o [ 13%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cal3_S2Stereo.cpp.o [ 13%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/CalibratedCamera.cpp.o [ 13%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Cyclic.cpp.o [ 13%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/EssentialMatrix.cpp.o [ 15%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Line3.cpp.o [ 15%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/OrientedPlane3.cpp.o [ 15%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Point2.cpp.o [ 15%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Point3.cpp.o [ 17%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Pose2.cpp.o [ 17%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Pose3.cpp.o [ 17%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Rot2.cpp.o [ 17%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Rot3.cpp.o [ 19%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Rot3M.cpp.o [ 19%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/SO3.cpp.o [ 19%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/SO4.cpp.o [ 19%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/SOn.cpp.o In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/geometry/Rot3.cpp:24: In file included from /Users/janson/.conan2/p/b/boost7267bb74a7057/p/include/boost/math/constants/constants.hpp:10: /Users/janson/.conan2/p/b/boost7267bb74a7057/p/include/boost/math/tools/config.hpp:23:6: warning: "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)" [-W#warnings] # warning "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)" ^ [ 21%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Similarity2.cpp.o [ 21%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Similarity3.cpp.o In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/geometry/Rot3M.cpp:27: In file included from /Users/janson/.conan2/p/b/boost7267bb74a7057/p/include/boost/math/constants/constants.hpp:10: /Users/janson/.conan2/p/b/boost7267bb74a7057/p/include/boost/math/tools/config.hpp:23:6: warning: "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)" [-W#warnings] # warning "The minimum language standard to use Boost.Math will be C++14 starting in July 2023 (Boost 1.82 release)" ^ 1 warning generated. [ 21%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/SimpleCamera.cpp.o 1 warning generated. [ 21%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/SphericalCamera.cpp.o [ 23%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/StereoCamera.cpp.o [ 23%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/StereoPoint2.cpp.o [ 23%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/Unit3.cpp.o [ 23%] Building CXX object gtsam/CMakeFiles/gtsam.dir/geometry/triangulation.cpp.o [ 25%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/BayesTree.cpp.o [ 25%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/DotWriter.cpp.o [ 25%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/Factor.cpp.o [ 25%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/Key.cpp.o [ 27%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/LabeledSymbol.cpp.o [ 27%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/Ordering.cpp.o [ 27%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/Symbol.cpp.o [ 27%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/VariableIndex.cpp.o [ 29%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/VariableSlots.cpp.o [ 29%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicBayesNet.cpp.o [ 29%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicBayesTree.cpp.o [ 29%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicConditional.cpp.o [ 31%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicEliminationTree.cpp.o [ 31%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicFactor.cpp.o [ 31%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicFactorGraph.cpp.o [ 31%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicISAM.cpp.o [ 33%] Building CXX object gtsam/CMakeFiles/gtsam.dir/symbolic/SymbolicJunctionTree.cpp.o [ 33%] Building CXX object gtsam/CMakeFiles/gtsam.dir/discrete/AlgebraicDecisionTree.cpp.o In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/AlgebraicDecisionTree.cpp:20: In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/AlgebraicDecisionTree.h:22: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/DecisionTree-inl.h:966:9: error: 'system' is unavailable: not available on iOS system(("dot -Tpdf " + name + ".dot -o " + name + ".pdf >& /dev/null") ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/stdlib.h:184:6: note: 'system' has been explicitly marked unavailable here int system(const char *) __DARWIN_ALIAS_C(system); ^ [ 33%] Building CXX object gtsam/CMakeFiles/gtsam.dir/discrete/DecisionTreeFactor.cpp.o 1 error generated. make[2]: *** [gtsam/CMakeFiles/gtsam.dir/discrete/AlgebraicDecisionTree.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/DecisionTreeFactor.cpp:22: In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/DecisionTreeFactor.h:21: In file included from /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/AlgebraicDecisionTree.h:22: /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/src/gtsam/discrete/DecisionTree-inl.h:966:9: error: 'system' is unavailable: not available on iOS system(("dot -Tpdf " + name + ".dot -o " + name + ".pdf >& /dev/null") ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/stdlib.h:184:6: note: 'system' has been explicitly marked unavailable here int system(const char *) __DARWIN_ALIAS_C(system); ^ 1 error generated. make[2]: *** [gtsam/CMakeFiles/gtsam.dir/discrete/DecisionTreeFactor.cpp.o] Error 1 make[1]: *** [gtsam/CMakeFiles/gtsam.dir/all] Error 2 make: *** [all] Error 2 gtsam/4.2.0a9: ERROR: Package 'd72c1e1aa3a94fb3df4629a2ec154f20a5e3ffdf' build failed gtsam/4.2.0a9: WARN: Build folder /Users/janson/.conan2/p/b/gtsamd04a918ac3f64/b/build/Release ********************************************************* Recipe 'gtsam/4.2.0a9' cannot build its binary It is possible that this recipe is not Conan 2.0 ready If the recipe comes from ConanCenter, report it at https://github.com/conan-io/conan-center-index/issues If it is your recipe, check if it is updated to 2.0 ********************************************************* ERROR: gtsam/4.2.0a9: Error in build() method, line 311 cmake.build() ConanException: Error 2 while executing ## Expected behavior ## Environment ## Additional information
ProfFan commented 11 months ago

Please post your complete issue here, thanks.

11janson commented 10 months ago

Please post your complete issue here, thanks.

hello,I have complete this issue.

varunagrawal commented 10 months ago

I believe the issue here is that the system function is not available on iOS. From the MacOSX.sdk stdlib.h

__swift_unavailable("Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)")
__API_AVAILABLE(macos(10.0)) __IOS_PROHIBITED
__WATCHOS_PROHIBITED __TVOS_PROHIBITED
int  system(const char *) __DARWIN_ALIAS_C(system);

A fix for you could be to conditionally compile the system call in DecisionTree-inl.h. That is the only place it is used. We would welcome a PR and I can help land it. It should be really simple to fix.

11janson commented 10 months ago

I believe the issue here is that the system function is not available on iOS. From the MacOSX.sdk stdlib.h

__swift_unavailable("Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)")
__API_AVAILABLE(macos(10.0)) __IOS_PROHIBITED
__WATCHOS_PROHIBITED __TVOS_PROHIBITED
int    system(const char *) __DARWIN_ALIAS_C(system);

A fix for you could be to conditionally compile the system call in DecisionTree-inl.h. That is the only place it is used. We would welcome a PR and I can help land it. It should be really simple to fix.

Thanks. I will push a PR a few days later.

varunagrawal commented 9 months ago

@11janson since we don't officially support iOS, your best bet moving forward is to fork GTSAM and either remove that function or conditionally compile it for your purposes. Closing this issue.

LockedThread commented 8 months ago

I believe the issue here is that the system function is not available on iOS. From the MacOSX.sdk stdlib.h

__swift_unavailable("Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)")
__API_AVAILABLE(macos(10.0)) __IOS_PROHIBITED
__WATCHOS_PROHIBITED __TVOS_PROHIBITED
int  system(const char *) __DARWIN_ALIAS_C(system);

A fix for you could be to conditionally compile the system call in DecisionTree-inl.h. That is the only place it is used. We would welcome a PR and I can help land it. It should be really simple to fix.

Thanks. I will push a PR a few days later.

Did you push a PR for this?