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

dpicall.cc:25:10: fatal error: ffi.h: No such file or directory #1137

Open
kotak31 opened this issue Jun 13, 2023 · 4 comments
Open

dpicall.cc:25:10: fatal error: ffi.h: No such file or directory #1137

kotak31 opened this issue Jun 13, 2023 · 4 comments
Assignees

Comments

@kotak31
Copy link

kotak31 commented Jun 13, 2023

Subject

[Build] for compilation-related issues.

Describe the bug

frontends/ast/dpicall.cc:25:10: fatal error: ffi.h: No such file or directory
25 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:704: frontends/ast/dpicall.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/kotakosa/Desktop/ResearchVLSI/OpenROAD-flow-scripts/tools/yosys'

Expected Behavior

Im trying to install OpenRoad Project local installation scripts as per this https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/blob/master/docs/user/BuildLocally.md

I've entered the following command in my terminal - ./build_openroad.sh --local
build_openroad.log

It resulted in error as follows.
frontends/ast/dpicall.cc:25:10: fatal error: ffi.h: No such file or directory
25 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:704: frontends/ast/dpicall.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/kotakosa/Desktop/ResearchVLSI/OpenROAD-flow-scripts/tools/yosys'

Environment

kotakosa@vemuri-test:~/Desktop/ResearchVLSI/OpenROAD-flow-scripts/tools/OpenROAD$ ./etc/Env.sh
[WARNING] Your current OpenROAD version is outdated.
It is recommened to pull the latest changes.
If problem persists, file a github issue with the re-producible test case.
kernel: Linux 5.4.0-150-generic
os: Linux Mint 20 (Ulyana)
./etc/Env.sh: line 57: cmake: command not found

To Reproduce

git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts
cd OpenROAD-flow-scripts
sudo ./setup.sh

./build_openroad.sh --local
build_openroad.log

Relevant log output

No response

Screenshots

No response

Additional Context

No response

@vijayank88
Copy link
Collaborator

@kotak31
Is sudo ./setup.sh completed without any errors?
Can you share tail of log as well for setup.sh run?

@vvbandeira
Copy link
Member

@kotak31, did you had a chance to try the suggestion above? Are you still having the issue?

@rovinski
Copy link
Collaborator

Just an FYI - the error means that the libffi package is either not installed on your system or is not found during compilation. The setup script mentioned above should fix that, or you can install the package on your own.

@gustad
Copy link

gustad commented Jul 14, 2024

Depending upon the distro you might need libffi-devel.

@vvbandeira vvbandeira self-assigned this Feb 14, 2025
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

5 participants