Skip to content

Can't build relic with benchmarks or tests #12897

Open
@maksim-pinguin

Description

I was trying to build riot with the relic library with the BENCH and the TESTS flag set.
The build failed with the following error when at least one of the flags(BENCH,TEST) is set to a value above zero.
This is the error it produces
with BENCH flag set:
[ 88%] Linking C executable ../bin/bench_rand gcc: error: gcc: No such file or directory make[4]: *** [bench/CMakeFiles/bench_rand.dir/build.make:85: bin/bench_rand] Error 1 make[3]: *** [CMakeFiles/Makefile2:229: bench/CMakeFiles/bench_rand.dir/all] Error 2 make[2]: *** [Makefile:130: all] Error 2 make[1]: *** [Makefile:16: all] Error 2 make: *** [/home/maksim/code/RIOT/examples/Relic_Hello-World/../../Makefile.include:614: pkg-build-relic] Error 2
with TESTS flag set:
[ 85%] Building C object test/CMakeFiles/test_ec.dir/test_ec.c.obj [ 86%] Linking C executable ../bin/test_ec gcc: error: gcc: No such file or directory make[4]: *** [test/CMakeFiles/test_ec.dir/build.make:85: bin/test_ec] Error 1 make[3]: *** [CMakeFiles/Makefile2:233: test/CMakeFiles/test_ec.dir/all] Error 2 make[2]: *** [Makefile:141: all] Error 2 make[1]: *** [Makefile:16: all] Error 2 make: *** [/home/maksim/code/RIOT/examples/Relic_Hello-World/../../Makefile.include:614: pkg-build-relic] Error 2 [maksim@maksbook ~/code/RIOT/examples/Relic_Hello-World]$

Steps to reproduce:
To build I copied the hello-world example and changed the Makefile
I just added those two lines:

export RELIC_CONFIG_FLAGS=-DARCH=x86 -DQUIET=off -DWORD=32 -DFP_PRIME=255 -DWITH=ALL -DSEED=ZERO -DBENCH=** -DTESTS=**
USEPKG += relic

with -DBENCH and -DTESTS > 0

I'm very new to RIOT so please excuse naivety. By any means I'm ready to solve this problem on my own, but I don't know how to approach right now.

Metadata

Assignees

Labels

Area: pkgArea: External package portsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions