gmake: parse error: error in archive specification

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gmake: parse error: error in archive specification

Rafael Sadowski
I see a strange output with ports gmake. I thought it had something to do with our
env vars. But a simple gmake call in ${WRKSRC} produces the same error.  Under
Linux and GUN make this does not happen. (Tested with Debian Sid)

We can see the some error message in sysutils/node_exporter if we use our make
instead gmake. (Comment out USE_GMAKE)

I am here at the end of my make knowledge. Maybe someone wants to analyse the
issue.

Rafael Sadowski

It is very easy to reproduce:
$ cd /usr/ports/security/argon2 && make test

===>  Regression tests for argon2-20190702
Building without optimizations
cc -O2 -pipe -std=c89 -Wall -g -Iinclude -Isrc -pthread  -Wextra -Wno-type-limits src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c src/encoding.c src/ref.c src/test.c -o testcase
Default build
*** Parse error in /usr/ports/pobj/argon2-20190702/phc-winner-argon2-20190702: Error in archive specification: "(, 1)" (Makefile:42)
*** Parse error: Need an operator in 'else' (Makefile:44)
*** Parse error: Need an operator in 'endif' (Makefile:46)
*** Parse error: Error in archive specification: "(, 0)" (Makefile:55)
*** Parse error: Need an operator in '' (Makefile:56)
*** Parse error: Need an operator in 'else' (Makefile:58)
*** Parse error: Need an operator in '' (Makefile:59)
*** Parse error: Need an operator in 'endif' (Makefile:62)
*** Parse error: Error in archive specification: "(, Linux)" (Makefile:72)
*** Parse error: Need an operator in 'endif' (Makefile:78)
*** Parse error: Error in archive specification: "(, )" (Makefile:79)
*** Parse error: Need an operator in 'endif' (Makefile:83)
*** Parse error: Error in archive specification: "(, Darwin)" (Makefile:84)
*** Parse error: Need an operator in 'endif' (Makefile:89)
*** Parse error: Error in archive specification: "(, CYGWIN)" (Makefile:90)
*** Parse error: Need an operator in 'endif' (Makefile:94)
*** Parse error: Error in archive specification: "(, MINGW)" (Makefile:95)
*** Parse error: Need an operator in 'endif' (Makefile:99)
*** Parse error: Error in archive specification: "(, MSYS)" (Makefile:100)
*** Parse error: Need an operator in 'endif' (Makefile:104)
*** Parse error: Error in archive specification: "(, SunOS)" (Makefile:105)
*** Parse error: Need an operator in 'endif' (Makefile:111)
*** Parse error: Error in archive specification: "(, Linux)" (Makefile:113)
*** Parse error: Error in archive specification: "(cc, clang)" (Makefile:114)
*** Parse error: Need an operator in 'endif' (Makefile:116)
*** Parse error: Need an operator in 'endif' (Makefile:117)
*** Parse error: Need an operator in 'LINKED_LIB_EXT' (Makefile:122)
*** Parse error: Need an operator in 'endif' (Makefile:124)
*** Parse error: Error in archive specification: "(, )" (Makefile:133)
*** Parse error: Error in archive specification: "(-, Linux-x86_64)" (Makefile:141)
*** Parse error: Need an operator in 'else' (Makefile:149)
*** Parse error: Need an operator in 'endif' (Makefile:157)
*** Parse error: Need an operator in 'LINKED_LIB_SH' (Makefile:240)
*** Parse error: Need an operator in 'endif' (Makefile:242)
./testcase