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

Installation trouble #23

Open
bcpierce00 opened this issue Aug 8, 2018 · 3 comments
Open

Installation trouble #23

bcpierce00 opened this issue Aug 8, 2018 · 3 comments

Comments

@bcpierce00
Copy link

Hi -- I'm having trouble following the installation instructions. Even after doing

Downloading riscv-gcc...
######################################################################### 100.0%
Riscv-gcc has been installed.
~/h/riscv-semantics> . setup.sh

I get this:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C elf2hex
g++ -O --std=c++11 elf2hex.cpp ElfFile.cpp -o elf2hex
In file included from elf2hex.cpp:32:
./ElfFile.hpp:26:10: fatal error: 'elf.h' file not found
#include <elf.h>
         ^~~~~~~
1 error generated.
ElfFile.cpp:27:10: fatal error: 'elf.h' file not found
#include <elf.h>
         ^~~~~~~
1 error generated.
make[1]: *** [elf2hex] Error 1
make: *** [elf2hex] Error 2

Can someone tell me what I'm doing wrong?

Thanks!

  • Benjamin

(P.S. I'm running on OSX, with Stack newly installed.)

@benjaminselfridge
Copy link

Hi Benjamin,

I had the same problem, and found the solution here: https://gist.github.com/mlafeldt/3885346

Just placing that elf.h header file in /usr/local/include did the trick.

@bcpierce00
Copy link
Author

bcpierce00 commented Aug 15, 2018 via email

@bcpierce00
Copy link
Author

bcpierce00 commented Aug 15, 2018 via email

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