Compile error in libadaptivity: using wrong definition of ewrite macro

Bug #915907 reported by Stephan Kramer
6
This bug affects 1 person
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_VERSION__
/bin/sh: bzr: command not found
        CXX main.cpp
mpicxx
-I/share/apps/visit/current/2.0.1/linux-x86_64/include/vtk/include/vtk-5.0/
-I/nethome/jmensa/fluidity/include
-I/nethome/jmensa/fluidity/include/python2.7 -I/usr/include/
-I/usr/local/include/ -I/nethome/jmensa/fluidity/include
-I/nethome/jmensa/fluidity/include -I/nethome/jmensa/fluidity/include
-I/nethome/jmensa/fluidity/include -I/nethome/jmensa/fluidity/lib
-DHAVE_PETSC -DHAVE_VTK=1 -I/nethome/jmensa/fluidity/include/python2.7
-I./include -c main.cpp
    MKDIR lib
    MAKE libadaptivity
./src/Debug.F:47.39:

          if (-1 <= current_debug_level) write(debug_unit(-1), FMT='(A)')
"***
                                       1
Error: Symbol 'current_debug_level' at (1) has no IMPLICIT type
./src/Debug.F:47.47:

          if (-1 <= current_debug_level) write(debug_unit(-1), FMT='(A)')
"***
                                               1
Error: Function 'debug_unit' at (1) has no IMPLICIT type
./src/Debug.F:48.47:

          if (-1 <= current_debug_level) write(debug_unit(-1),
FMT='(3A,I5,A)')
                                               1
Error: Function 'debug_unit' at (1) has no IMPLICIT type
./src/Debug.F:49.47:

          if (-1 <= current_debug_level) write(debug_unit(-1), FMT='(2A)')
"Err
                                               1
Error: Function 'debug_unit' at (1) has no IMPLICIT type
./src/Debug.F:50.47:

          if (-1 <= current_debug_level) write(debug_unit(-1), FMT='(A)')
"Erro
                                               1
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/libadaptivity.a': No such file or directory

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.

Revision history for this message
Patrick Farrell (pefarrell) wrote :

I think this is happening because:

On 13/01/12 14:54, jean mensa wrote:
> [jmensa@u04 adapt3d]$ make
> make: Warning: File `Debug.F' has modification time 4.7e+02 s in the future
> mpif90
> -I/nethome/jmensa/fluidity/include
is appearing before

> -DHAVE_PETSC -DHAVE_VTK=1 -I./include -I../include -ffast-math
and so it's picking up fluidity's fdebug.h.

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Fixed in r3897.

Changed in fluidity:
status: New → Fix Committed
Tim Bond (timothy-bond)
Changed in fluidity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.