eosio.cdt
eosio.cdt copied to clipboard
OS X build broken: framework not found Foundation
OS X 11.0 - Big Sur
I did the manual build steps as per the instructions since I have never gotten the brew install to work correctly
This used to work prior to OS X big sur, but it now fails with a build error
The below is the end of the output
[ 27%] Linking CXX executable print_tests
ld: framework not found Foundation
ld: framework not found Foundation
make[5]: *** [system_tests] Error 255
make[5]: *** [print_tests] Error 255
make[4]: *** [CMakeFiles/print_tests.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [CMakeFiles/system_tests.dir/all] Error 2
[ 30%] Linking CXX executable symbol_tests
ld: framework not found Foundation
make[5]: *** [symbol_tests] Error 255
make[4]: *** [CMakeFiles/symbol_tests.dir/all] Error 2
[ 33%] Linking CXX executable varint_tests
ld: framework not found Foundation
make[5]: *** [varint_tests] Error 255
make[4]: *** [CMakeFiles/varint_tests.dir/all] Error 2
[ 36%] Linking CXX executable crypto_tests
ld: framework not found Foundation
make[5]: *** [crypto_tests] Error 255
make[4]: *** [CMakeFiles/crypto_tests.dir/all] Error 2
[ 38%] Linking CXX executable name_tests
ld: framework not found Foundation
make[5]: *** [name_tests] Error 255
make[4]: *** [CMakeFiles/name_tests.dir/all] Error 2
[ 41%] Linking CXX executable time_tests
ld: framework not found Foundation
make[5]: *** [time_tests] Error 255
make[4]: *** [CMakeFiles/time_tests.dir/all] Error 2
[ 44%] Linking CXX executable string_tests
ld: framework not found Foundation
make[5]: *** [string_tests] Error 255
make[4]: *** [CMakeFiles/string_tests.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [EosioWasmTests-prefix/src/EosioWasmTests-stamp/EosioWasmTests-build] Error 2
make[1]: *** [CMakeFiles/EosioWasmTests.dir/all] Error 2
make: *** [all] Error 2
Any ideas how to fix this would be appreciated.
I will append the full output as well eosio.cdt.build.log.txt
This is likely related to this https://stackoverflow.com/questions/62587131/macos-big-sur-python-ctypes-find-library-does-not-find-libraries-ssl-corefou
Big Sur has some changes as to how dynamic libraries are accessed.
Currently, Big Sur is not supported at this time. We will let you know when it is available.
Currently, Big Sur is not supported at this time. We will let you know when it is available.
This is even more problematic now that M1 Silicon macs are out and the brew package doesn't support silicon.
Any way to fix this?
Edit: Python has fixed this, it seems https://bugs.python.org/issue41100
eosio.cdt 1.7.0 is required to compile contracts for many EOSIO-based systems - is there an alternative way to install CDT 1.7.0? Brew seems to only have 1.8 built currently and these builds seem to fail.
For example, even if I run:
arch -x86_64 ./scripts/eosiocdt_build.sh
The build fails with:
[ 13%] Linking CXX executable fixed_bytes_tests
ld: framework not found Foundation
ld: framework not found Foundation
ld: framework not found Foundation
ld: framework not found Foundation
ld: framework not found Foundation
make[5]: *** [crypto_tests] Error 255
make[5]: *** [asset_tests] Error 255
make[5]: *** [datastream_tests] Error 255
make[5]: *** [fixed_bytes_tests] Error 255
make[5]: *** [binary_extension_tests] Error 255
make[4]: *** [CMakeFiles/fixed_bytes_tests.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [CMakeFiles/binary_extension_tests.dir/all] Error 2
make[4]: *** [CMakeFiles/crypto_tests.dir/all] Error 2
make[4]: *** [CMakeFiles/datastream_tests.dir/all] Error 2
make[4]: *** [CMakeFiles/asset_tests.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [EosioWasmTests-prefix/src/EosioWasmTests-stamp/EosioWasmTests-build] Error 2
make[1]: *** [CMakeFiles/EosioWasmTests.dir/all] Error 2
make: *** [all] Error 2