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

Building fails on Mac M1 Monterey 12.2.1 #7

Open
kkwteh opened this issue Mar 28, 2022 · 1 comment
Open

Building fails on Mac M1 Monterey 12.2.1 #7

kkwteh opened this issue Mar 28, 2022 · 1 comment

Comments

@kkwteh
Copy link

kkwteh commented Mar 28, 2022

I setup my settings.json file and ran make.

I've pasted the last few lines of the output below. I tried googling the error "ld: library not found for -lstdc++fs" but didn't find anything.

c++  -std=c++11 -MT .obj/.pic/libs/jsoncpp/jsoncpp.o -MMD -MP -MF .dep/.pic/libs/jsoncpp/jsoncpp.Td -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -O3   -I ./   -o .obj/.pic/libs/jsoncpp/jsoncpp.o -c .pic/libs/jsoncpp/jsoncpp.cpp
mv -f .dep/.pic/libs/jsoncpp/jsoncpp.Td .dep/.pic/libs/jsoncpp/jsoncpp.d
c++  -std=c++11 -MT .obj/.o -MMD -MP -MF .dep/.Td -o bin/sanitychecker .obj/src/build/sanitychecker.o .obj/.pic/src/common/.cu-common.o .obj/.pic/src/common/dictator.o .obj/.pic/src/common/system.o .obj/.pic/src/common/validation.o .obj/.pic/src/common/version.o .obj/.pic/src/logic/.cu-automaton.o .obj/.pic/src/logic/.cu-logic.o .obj/.pic/src/logic/bible.o .obj/.pic/libs/jsoncpp/jsoncpp.o -Wl,-rpath,@executable_path/ -Lbin -lstdc++ -lstdc++fs    -O3   -lz -lm -pthread
ld: library not found for -lstdc++fs
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/sanitychecker] Error 1
@SLiV9
Copy link
Member

SLiV9 commented Mar 28, 2022

Hi, unfortunately compiling this project on Mac is quite dependent on OS version and Xcode version, and the current Makefile is not expressive enough to deal with that.

Could you try removing -lstdc++fs (but not -lstdc++) from lines 355 and 365 of the Makefile and running make again?

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

No branches or pull requests

2 participants