You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've installed all dependencies properly and configured paths properly. I'm building from source, not with brew. Started running into an error on my machine
[ 65%] Linking CXX executable souffle
ld: library not found for -ld_classic
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [src/CMakeFiles/souffle.dir/build.make:105: src/souffle] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1750: src/CMakeFiles/souffle.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
in more detail with the -v flag, this expanded out to
cd ~/souffle/build/src && /opt/homebrew/bin/cmake -E cmake_link_script CMakeFiles/souffle.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++ -O3 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-ld_classic -ld_classic CMakeFiles/souffle.dir/souffle.cpp.o -o souffle libsouffle.a /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libffi.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libncurses.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libz.tbd /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libsqlite3.tbd
ld: library not found for -ld_classic
looks like the -ld_classic flag is the cause of the error, found the following code in src/CMakeLists.txt at
if ("${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "arm64")
# work around a known issue with xcode15 linker
# c++ exceptions handling is broken otherwise
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,-ld_classic")
target_link_options(libsouffle PUBLIC "-ld_classic")
target_link_options(compiled PUBLIC "-ld_classic")
target_link_options(souffleprof PUBLIC "-ld_classic")
endif()
commenting out all of these lines in this file worked for me and I'm successfully compiling souffle, just wanted to throw this solution there in case anyone else encounters this problem. Caveat is that I'm not on xcode15, so it should be safe to get rid of these lines according to the comment above
The text was updated successfully, but these errors were encountered:
Hi, I've installed all dependencies properly and configured paths properly. I'm building from source, not with brew. Started running into an error on my machine
in more detail with the -v flag, this expanded out to
looks like the -ld_classic flag is the cause of the error, found the following code in src/CMakeLists.txt at
commenting out all of these lines in this file worked for me and I'm successfully compiling souffle, just wanted to throw this solution there in case anyone else encounters this problem. Caveat is that I'm not on xcode15, so it should be safe to get rid of these lines according to the comment above
The text was updated successfully, but these errors were encountered: