Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants