jschanck / ntru

Implementations of the NIST post-quantum cryptography process finalist NTRU.
https://ntru.org
Creative Commons Zero v1.0 Universal
41 stars 8 forks source link

Making the files get this error #25

Open ndrahmani opened 2 years ago

ndrahmani commented 2 years ago

cc -O3 -fomit-frame-pointer -march=native -fPIC -fPIE -pie -Wall -Wextra -Wpedantic -DCRYPTO_NAMESPACE\(s\)=ntru_##s -o test/decap cmov.c crypto_sort_int32.c fips202.c kem.c owcpa.c pack3.c packq.c poly.c poly_lift.c poly_mod.c poly_r2_inv.c poly_rq_mul.c poly_s3_inv.c sample.c sample_iid.c randombytes.c test/decap.c cmov.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/cmov.c | ^ crypto_sort_int32.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/crypto_sort_int32.c | ^ fips202.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/fips202.c | ^ kem.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/kem.c | ^ owcpa.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/owcpa.c | ^ pack3.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/pack3.c | ^ packq.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/pack2048.c | ^ poly.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/poly.c | ^ poly_lift.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/poly_lift.c | ^ poly_mod.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/poly_mod.c | ^ poly_r2_inv.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/poly_r2_inv.c | ^ poly_rq_mul.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/poly_rq_mul_toom4_k2x2.c | ^ poly_s3_inv.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/poly_s3_inv.c | ^ sample.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/sample.c | ^ sample_iid.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/sample_iid.c | ^ randombytes.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../ref-common/randombytes.c | ^ test/decap.c:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../../test/decap.c | ^ make: *** [Makefile:67: test/decap] Error 1

I get this error each time I run "make" command any help please

jschanck commented 2 years ago

Some context would help, e.g. the compiler and operating system. Does this happen with a fresh clone of the repository?

Also you might find the version of this code that is packaged with pqclean to be easier to use.

ndrahmani commented 2 years ago

I use WSL2 Debian Ubunto 20 gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Yeah I clone it freshly

ndrahmani commented 2 years ago

any help please