Correct Forge configuration

Create issue
Issue #863 closed
Erik Schnetter created an issue

When I build on Forge, I receive the error

In file included from timer.c:29:
cycle.h: In function 'getticks':
cycle.h:226: error: 'asm' undeclared (first use in this function)
cycle.h:226: error: (Each undeclared identifier is reported only once
cycle.h:226: error: for each function it appears in.)
cycle.h:226: error: expected ';' before 'volatile'
make[4]: *** [timer.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2

CST error 1:
  -> Configuration script for thorn FFTW3 returned exit code 1
     (no error message)

Using a pre-build FFTW3 library may be a solution.


Comments (3)

  1. Frank Löffler
    • removed comment

    I believe this can be fixed by using -std=gnu99 instead of -std=c99 in the option list. Plain C99 doesn't support asm blocks.

  2. Log in to comment