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

blst fails to build macos 13.x #194

Closed
Cmdv opened this issue Sep 26, 2023 · 2 comments
Closed

blst fails to build macos 13.x #194

Cmdv opened this issue Sep 26, 2023 · 2 comments

Comments

@Cmdv
Copy link

Cmdv commented Sep 26, 2023

When following the docs on building locally (running ./build.sh) the following error shows:

+ cc -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -c ./src/server.c
In file included from ./src/server.c:7:
In file included from ./src/keygen.c:7:
In file included from ./src/consts.h:8:
./src/vect.h:402:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>

To get around that it seems I can copy my x-code dir **/include/ to /usr/local/include/ shown here

But then other C related compilations in my project just fail.

I'm not entirely sure if this is blst related but wanted to see if someone else had hit a similar issue on macos. 😸

@abailly
Copy link

abailly commented Sep 26, 2023

Actually, this might be because you're using llvm from brew. When using stock llvm from Xcode command-line, it works.

@Cmdv
Copy link
Author

Cmdv commented Sep 26, 2023

Well that totally did the trick thanks @abailly conflicting llvms 😅

@Cmdv Cmdv closed this as completed Sep 26, 2023
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