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

Build of rnbyc failed on Mac #31

Open
f-lombardo opened this issue Jul 6, 2023 · 3 comments
Open

Build of rnbyc failed on Mac #31

f-lombardo opened this issue Jul 6, 2023 · 3 comments
Labels
question Further information is requested

Comments

@f-lombardo
Copy link

Hello,

I'm trying to compile rnbyc on Mac, bu I get this error: 'gnutls/abstract.h' file not found. I installed gnutls and I tried to add the -I flag to compilation:

CFLAGS+=-Wall -Werror -Wextra -Wconversion -I$(RHONABWY_INCLUDE) -I/opt/homebrew/Cellar/gnutls/3.8.0/include $(ADDITIONALFLAGS) $(CPPFLAGS)

Could you help me in spotting what I am doing wrong?

Thanks in advance.

@babelouest
Copy link
Owner

Hello,

I'm sorry I'm not familiar with the MacOS build environment, so I wouldn't know what's wrong. I know it's possible since other have succeeded.

But when you say rnbyc build fails, does the rhonabwy library build succeed before that?

You can also try to use the Makefile instead of the cmake script, to see if the result is different?

@babelouest babelouest added the question Further information is requested label Jul 7, 2023
@f-lombardo
Copy link
Author

Hi Nicolas,

thank you for your answer.

I was experiencing problems probabilly because I wasn't compiling the tool properly. I think that the correct process is:

$ cd <yder_source>
$ mkdir build
$ cd build
$ cmake ..
$ make && sudo make install

Is it true? Moreover, it would be useful to have a list of prerequisites for compilation.
Anyway, after installing Gmp, Jansson, Orcania and Yder, I still have this error:

In file included from [...]rhonabwy/src/jwe.c:47:
/opt/homebrew/Cellar/nettle/3.9.1/include/nettle/bignum.h:50:11: fatal error: 'gmp.h' file not found
# include <gmp.h>
          ^~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/rhonabwy.dir/src/jwe.c.o] Error 1
make[1]: *** [CMakeFiles/rhonabwy.dir/all] Error 2
make: *** [all] Error 2

@babelouest
Copy link
Owner

I'm not sure what you mean by after installing GMP, but the error you have with gmp.h is probably because you didn't install nettle properly, or you must specify nettle location somewhere to build rhonabwy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants