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

Cannot build #13

Open
blacktop opened this issue Nov 26, 2021 · 5 comments
Open

Cannot build #13

blacktop opened this issue Nov 26, 2021 · 5 comments

Comments

@blacktop
Copy link

~/Developer/Github/rems-project/sail-arm/arm-v8.5-a master 6m 24s
❯ make aarch64
gcc -O2 aarch64.c /lib/*.c -DHAVE_SETCONFIG -lgmp -lz -I /lib/ -o aarch64
clang: error: no such file or directory: '/lib/*.c'
make: *** [aarch64] Error 1
@blacktop blacktop changed the title Cannot buid Cannot build Nov 26, 2021
@Alasdair
Copy link
Contributor

I think the Makefile expects the SAIL_DIR environment variable to be set to find the Sail library files. If you installed Sail via opam it should be at opam var sail:share. I'll look into having the Makefile pick that up automatically if present.

@blacktop
Copy link
Author

blacktop commented Dec 1, 2021

Thank you for the VERY fast response! Here's my next road bump. Is this project now out of sync with sail ?

❯ make aarch64
Makefile:7: SAIL_DIR is /Users/blacktop/.opam/default/share/sail
gcc -O2 aarch64.c /Users/blacktop/.opam/default/share/sail/lib/*.c -DHAVE_SETCONFIG -lgmp -lz -I /Users/blacktop/.opam/default/share/sail/lib/ -o aarch64
In file included from aarch64.c:1:
/Users/blacktop/.opam/default/share/sail/lib/sail.h:8:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
In file included from /Users/blacktop/.opam/default/share/sail/lib/elf.c:7:
In file included from /Users/blacktop/.opam/default/share/sail/lib/rts.h:8:
/Users/blacktop/.opam/default/share/sail/lib/sail.h:8:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
In file included from /Users/blacktop/.opam/default/share/sail/lib/rts.c:5:
/Users/blacktop/.opam/default/share/sail/lib/sail.h:8:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
In file included from /Users/blacktop/.opam/default/share/sail/lib/sail.c:10:
/Users/blacktop/.opam/default/share/sail/lib/sail.h:8:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
In file included from /Users/blacktop/.opam/default/share/sail/lib/sail_failure.c:1:
In file included from /Users/blacktop/.opam/default/share/sail/lib/sail_failure.h:4:
/Users/blacktop/.opam/default/share/sail/lib/sail.h:8:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
make: *** [aarch64] Error 1

@Alasdair
Copy link
Contributor

Alasdair commented Dec 1, 2021

Do you have libgmp?

I didn't think my response was that fast - I had review deadlines for several conferences that were keeping me busy over the weekend, I should be more responsive now.

@blacktop
Copy link
Author

blacktop commented Dec 2, 2021

❯ brew list | grep gmp
gmp

@blacktop
Copy link
Author

blacktop commented Dec 3, 2021

Adding -I/opt/homebrew/include -L/opt/homebrew/lib to the gcc make targets worked.

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