Closed xywf221 closed 5 years ago
Ok, I am reading the source code of v.c and found that this error should be in line 7512.
String lang_dir = string_add(os__home_dir(), tos2("/code/v/"));
It seems to use an absolute path, I will try to change it to a relative path
code directory has to be used (it's a temporary limitation) you put the v source code to ~/code ?
Yes I've re-re-edited the clone subcode under the ''-/code' but it's also compilation without success
Error message
ld: library not found for -lcrt1.10.6.o
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
V panic: clang error
make: svError 1
I know through Search Google that it should be using old or unsupported compilation options. I printed out the command line that performed the compilation by modifying the source code.
/usr/local/cellar/llvm/8.0.0/bin/clang -I. -w -g -o v -mmacosx-version-min-10.7 -x objective-c /Users/mac-mini/.vlang0.12//v.c
I tried to change him to
/usr/local/cellar/llvm/8.0.0/bin/clang -I. -w -g -o v /Users/mac-mini//.vlang0.0.12//v.c
It's compiled smoothly.
cc -std-c11 -w -o vc v.c
missing equal symbol, should be cc -std=gnu11 -w -o vc v.c
anyway you should reclone it and try it again with make command. Don't forget about ~/code/v
This is no longer the case.
I installed the compilation v on readme, but his process seemed to be wrong