MOABConfig.h:14:32: error: '##' cannot appear at either end of a macro expansion

Issue #33 resolved
Nico Schlömer created an issue

As of recently, I'm getting build errors of the kind

/«PKGBUILDDIR»/obj-x86_64-linux-gnu/src/moab/MOABConfig.h:14:32: error: '##' cannot appear at either end of a macro expansion
 #define MOAB_F77_FUNC(name,NAME)  name ## 
                                ^

Full logs here.

Comments (11)

  1. Vijay M

    On first look, the configuration for mangling seems to be screwed up. From the configuration logs:

    -- Detecting Fortran/C Interface
    -- Detecting Fortran/C Interface - Failed to compile
    

    Knowing why the compilation failed would help here. I also don't have access to GNU 5.3.1 and so this would be a hard one to test.

  2. Brad King

    Check CMakeFiles/CMakeError.log for more details about why the Fortran/C interface check failed to compile.

  3. Nico Schlömer reporter

    The issue was probably a missing/defective Fortran compiler. I've upgraded that and now get

    CMake Error: Error processing file: /«PKGBUILDDIR»/config/ITAPSFortranMangling.cmake
    itaps/fbigeom/CMakeFiles/FBiGeomMOAB.dir/build.make:56: recipe for target 'itaps/fbigeom/FBiGeom_protos.h' failed
    make[3]: *** [itaps/fbigeom/FBiGeom_protos.h] Error 1
    

    (see here).

  4. Vijay M

    Ah yes. Can you try this branch: vijaysm/missing-fbigeom-protos

    If that solves all issues, can submit a PR. Else we can add more fixes to this branch.

  5. Vijay M

    Can you pull and check this branch again ? I committed another fix to append the variable only when its not empty. I'll also be merging this to develop to make sure our builds keep working correctly. Will submit a PR after that.

  6. Log in to comment