Git Product home page Git Product logo

Comments (7)

cyrush avatar cyrush commented on May 18, 2024

I think the problem is cropping up in unit testing. The solution may simply be to create a lib for fruit AND the fortran gtest driver.

from conduit.

cyrush avatar cyrush commented on May 18, 2024

This could also bug specific to gfortran 4.9 and 4.9.1
http://stackoverflow.com/questions/27281158/fortran-90-gfortran-fatal-error-cant-rename-module-file-exists
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62215

from conduit.

cyrush avatar cyrush commented on May 18, 2024

closing, I don't see this any more on OSX 10.11 using gfortran 6.1. Assuming this was resolved by the compiler update.

from conduit.

cyrush avatar cyrush commented on May 18, 2024

seeing with gfortran 5 (or even 7) so this isn't just the 4.9 bug.

Seems like a chicken vs egg issue. Object libs might help, or setting more fortran flags:

https://stackoverflow.com/questions/43917443/fortran-module-files-not-found-by-cmake

from conduit.

cyrush avatar cyrush commented on May 18, 2024

https://gitlab.kitware.com/cmake/cmake/issues/17525

from conduit.

cyrush avatar cyrush commented on May 18, 2024

Try not using a single Fortran_MODULE_DIRECTORY dir, by tweaking
SetupFortran.cmake:

    set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/fortran)
      
      # make sure the fortran compiler can see the module files it
      # generates
      include_directories(${CMAKE_Fortran_MODULE_DIRECTORY})

from conduit.

cyrush avatar cyrush commented on May 18, 2024

finally got to the bottom of this.

It was a very simple error: I had a copy and paste typo in one of the test modules leading to a name collision.

The t_conduit_node_obj test, was defining a module t_conduit_node instead of t_conduit_node_obj. Since the t_conduit_node test also defines the t_conduit_node module -- they would stomp on each other when compiled in parallel.

from conduit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.