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

gc: backport basic arm64 support for Darwin #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barracuda156
Copy link

@barracuda156
Copy link
Author

P. S. Perhaps a better way would be to link against external boehmgc, however I tried that, and as of now it fails:

[ 99%] Linking CXX executable lv5
cd /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_iv/iv/work/build/iv/lv5 && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/lv5.dir/link.txt --verbose=ON
/opt/local/bin/clang++-mp-16 -pipe -Os -DNDEBUG -I/opt/local/include -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -std=c++11 -stdlib=libc++ -fno-operator-names -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk CMakeFiles/lv5.dir/main.cc.o -o lv5   -L/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_iv/iv/work/iv-64c3a9c7c517063f29d90d449180ea8f6f4d946f/iv/lv5/third_party/netlib_dtoa  -L/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_iv/iv/work/iv-64c3a9c7c517063f29d90d449180ea8f6f4d946f/iv/lv5/third_party/v8_dtoa  -Wl,-rpath,/opt/local/lib liblv5.a -lgc third_party/v8_dtoa/libv8_dtoa.a third_party/netlib_dtoa/libnetlib_dtoa.a /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/lib/libm.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/lib/libc++.tbd 
ld: Undefined symbols:
  GC_throw_bad_alloc(), referenced from:
      iv::lv5::railgun::Context::Context() in main.cc.o
      iv::lv5::JSEvalError::New(iv::lv5::Context*, iv::lv5::JSString*) in main.cc.o
      iv::lv5::JSRangeError::New(iv::lv5::Context*, iv::lv5::JSString*) in main.cc.o
      iv::lv5::JSReferenceError::New(iv::lv5::Context*, iv::lv5::JSString*) in main.cc.o
      iv::lv5::JSSyntaxError::New(iv::lv5::Context*, iv::lv5::JSString*) in main.cc.o
      iv::lv5::JSTypeError::New(iv::lv5::Context*, iv::lv5::JSString*) in main.cc.o
      iv::lv5::JSURIError::New(iv::lv5::Context*, iv::lv5::JSString*) in main.cc.o
      ...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iv/lv5/lv5] Error 1

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

Successfully merging this pull request may close these issues.

1 participant