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

The project doesn't work #1

Closed
qijiale opened this issue Jan 5, 2021 · 12 comments
Closed

The project doesn't work #1

qijiale opened this issue Jan 5, 2021 · 12 comments

Comments

@qijiale
Copy link

qijiale commented Jan 5, 2021

Is it possible to provide a detailed step of project operation?
Thanks

@chenyueqi
Copy link
Owner

Hi, thank you very much for your interest.
Could you provide me with a more concrete description of the problem you encountered?
In this way, I can help solve your problem more efficiently and effectively.

In general, this project is mainly based on LLVM infrastructure. So you first need to download and install LLVM 10.0 and then build the project in code/analyzer. The input, IR files for the kernel, can be found in kernels/ .
You can find more hints in the script scripts/build_essential.sh.

@qijiale
Copy link
Author

qijiale commented Jan 6, 2021 via email

@chenyueqi
Copy link
Owner

As I said, LLVM is an infrastructure. You should install LLVM first.
A similar issue and corresponding solution can be found here.

Theoretically, running it on Mac is doable. However, I haven't tested it on Mac.
I would appreciate it a lot if you are willing to have a try and return back to me your experience.
Of course, it's more than welcome if you can contribute a building script on Mac.

@qijiale
Copy link
Author

qijiale commented Jan 6, 2021 via email

@chenyueqi
Copy link
Owner

1 .
I paste the log on my machine for your reference
-- Found LLVM 10.0.0
-- Using LLVMConfig.cmake in: /home/yueqi/llvm-10.0.0.src/build/lib/cmake/llvm
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yueqi/eloise/code/analyzer/build
make[1]: Entering directory '/home/yueqi/eloise/code/analyzer/build'
make[2]: Entering directory '/home/yueqi/eloise/code/analyzer/build'
make[3]: Entering directory '/home/yueqi/eloise/code/analyzer/build'
Scanning dependencies of target analyzer
make[3]: Leaving directory '/home/yueqi/eloise/code/analyzer/build'
make[3]: Entering directory '/home/yueqi/eloise/code/analyzer/build'

I don't know why the built files are going to be written to /src instead of /build on your machine.
I guess your error is still about the LLVM configuration.
Could you read Makefile and compare its content with your LLVM configuration?

2 .
Running make in code/analyzer only builds the analyzer.
Please refer to code/Makefile to learn how to use the analyzer.

@qijiale
Copy link
Author

qijiale commented Jan 7, 2021 via email

@chenyueqi
Copy link
Owner

10.0 is the right version.
9.0 also works if you modify the -std= option in analyzer/Makefile.
Since we now have LLVM 10, let's use this version.

LLVM_BUILD is not necessary.
LLVM_BUILD helps find LLVM executables and so on.
As long as you can find kinds of stuff like clang and llvm-config in your PATH, you need not set LLVM_BUILD.

@chenyueqi
Copy link
Owner

Since no more comments for 5 days, I plan to close this issue in 24 hours.
Please let me know if you have more questions.

@qijiale
Copy link
Author

qijiale commented Jan 12, 2021 via email

@chenyueqi
Copy link
Owner

Yep.

@qijiale
Copy link
Author

qijiale commented Jan 17, 2021 via email

@chenyueqi
Copy link
Owner

Probably you need a good VPN.

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