Closed miraliahmadli closed 3 years ago
Fixed make test
by removing -10
parts (version numbers) from test/Makefile
:) I am not sure if it okay to do.
But I still get Error: Cannot find /proc/self/exe
error.
Do not change any file arbitrarily other than the thing you should implement. All the homework will be auto graded. If it does not run in TA's machine, you will get no points.
-10
is intended to fix a specific version of LLVM for this course. We haven't test the homework with LLVM 11.I strongly recommend you use the provided environment if you are not sure.
Maybe you should try using docker image which is provided. The environment is set by TAs, so there won't be any environment issues.
Where can I get the docker images or provided environment?
The dockerfile is in the classroom repository.
About the docker file and environment please see here, https://github.com/prosyslab-classroom/cs448-2021-spring/issues/1#issue-822720209
I was trying to test my code but when I run
make test
command I getI think problem is related to clang and llvm version. In the installation page of llvm-primer, it says install llvm version 10 using homebrew, but llvm 10 is not available on homebrew. Therefore, I installed llvm 11 (so my clang version is 11 as well). I am not sure if this causes the problem or not.
I also tried to run sanitizer as given in README page. I successfully managed to run until
./example1
part, but when I run this command, I gotI am not exactly sure what those errors mean. Did anyone face the same issue or anyone knows how to solve these problems?
UPDATE
make test
failed because Makefile usesclang-10
andopt-10
and LLVM 10 is not available for Homebrew. Second issue was caused becausereadlink
is for Linux, and it can be fixed by using_NSGetExecutablePath
seeI think it is impossible to run on Apple devices without Docker. By using provided docker image, problem was fixed.