Compile error in libadaptivity: using wrong definition of ewrite macro
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fluidity |
Fix Released
|
Medium
|
Stephan Kramer |
Bug Description
On fluidity mailing list Jean Menses reported the following:
When I call make I get the following error compiling libadaptivity.a which
seems to be coming from Debug.F. It seems a bug of the library. Any
suggestion?
Thank you,
j
attache is my conf.log file.
[jmensa@u04 fluidity]$ make
DEFINE __FLUIDITY_
/bin/sh: bzr: command not found
CXX main.cpp
mpicxx
-I/share/
-I/nethome/
-I/nethome/
-I/usr/
-I/nethome/
-I/nethome/
-DHAVE_PETSC -DHAVE_VTK=1 -I/nethome/
-I./include -c main.cpp
MKDIR lib
MAKE libadaptivity
./src/Debug.
if (-1 <= current_
"***
Error: Symbol 'current_
./src/Debug.
if (-1 <= current_
"***
Error: Function 'debug_unit' at (1) has no IMPLICIT type
./src/Debug.
if (-1 <= current_
FMT='(3A,I5,A)')
Error: Function 'debug_unit' at (1) has no IMPLICIT type
./src/Debug.
if (-1 <= current_
"Err
Error: Function 'debug_unit' at (1) has no IMPLICIT type
./src/Debug.
if (-1 <= current_
"Erro
Error: Function 'debug_unit' at (1) has no IMPLICIT type
gmake[2]: *** [Debug.o] Error 1
gmake[1]: *** [default] Error 2
cp: cannot stat `lib/libadaptiv
It looks like the ewrite macro used in libadaptivity (defined in include/ewrite.h) is somehow getting replaced by that of fluidity and is therefore using current_debug_level which is not defined *inside* libadaptivity.
Changed in fluidity: | |
status: | Fix Committed → Fix Released |
I think this is happening because:
On 13/01/12 14:54, jean mensa wrote: jmensa/ fluidity/ include
> [jmensa@u04 adapt3d]$ make
> make: Warning: File `Debug.F' has modification time 4.7e+02 s in the future
> mpif90
> -I/nethome/
is appearing before
> -DHAVE_PETSC -DHAVE_VTK=1 -I./include -I../include -ffast-math
and so it's picking up fluidity's fdebug.h.