Giter VIP home page Giter VIP logo

Comments (9)

milancurcic avatar milancurcic commented on July 23, 2024

I tried this and couldn't reproduce on my Ubuntu 18.10. I'm not experienced with autotools, maybe @tcanich will have an idea.

from datetime-fortran.

alexavr avatar alexavr commented on July 23, 2024

Weird... Have just tried on my Mac -- the same result. I did:

wget https://github.com/wavebitscientific/datetime-fortran/releases/download/v1.6.0/datetime-fortran-1.6.0.tar.gz
FC=ifort ./configure --prefix=/opt/datetime-fortran-1.6.0
make 
make check
sudo make install

All went smoothly but there is only datetime_module.mod in the include folder. So I had to cp other *.mod files from src/lib/ again. I'm not an expert in autotools as well. That's why I couldn't fix it by myself.
Anyway, it's not a big deal :)
Thanx again!

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

Is there anything in your lib folder, /opt/datetime-fortran-1.6.0/lib?

from datetime-fortran.

alexavr avatar alexavr commented on July 23, 2024

Yes:

ls /opt/datetime-fortran-1.6.0/lib/
libdatetime.a	pkgconfig

from datetime-fortran.

tcanich avatar tcanich commented on July 23, 2024

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

Thanks, Tom, I will try it.

Alexander: I'm sorry, I read your original message but somehow my brain went somewhere else. I also get only datetime_module.mod in the include directory. However, I struggle reproducing this:

That (datetime_module.mod) is not enough to link datetime.

Can you give an example program that needs any other module than datetime_module.mod?

from datetime-fortran.

alexavr avatar alexavr commented on July 23, 2024

Thank you, Tom!

Milan, It was early morning when I was writing that. Apologize :)
I meant that having the datetime_module.mod only in the include folder makes compiling FORTRAN code with use datetime_module impossible.
But if I copy all *.mod files from src/lib to the include -- everything compiles and works perfectly.

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

Got it, but I'm saying for me I can build with just datetime_module.mod, with gfortran.

I just tried with ifort and indeed I can't, just like you. This looks like an Intel-specific issue, however from the top of my head, I don't know whether the GNU or the Intel behavior is standard conforming. I will do some research.

Anyway, for now, it doesn't hurt for now to copy all .mod files to make ifort happy.

from datetime-fortran.

alexavr avatar alexavr commented on July 23, 2024

Agreed. It doesn't ;)
Maybe it's related to shared/dynamic compilation but I couldn't find this option in configure.

from datetime-fortran.

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.