-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with autotools (not all libs are copied) #57
Comments
I tried this and couldn't reproduce on my Ubuntu 18.10. I'm not experienced with autotools, maybe @tcanich will have an idea. |
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. |
Is there anything in your lib folder, |
Yes: ls /opt/datetime-fortran-1.6.0/lib/
libdatetime.a pkgconfig |
Hi,
I think I see the problem in src/lib/Makefile.am, nodist_include_HEADERS on
line 1 restricts this to only install datetime_module.mod. @milacurcic I've
sent a pull request ca18d40 with a fix which installs all of the headers.
I don't have a machine here with a suitable combination of autotools and
Intel compiler, but this should work...
Tom
|
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:
Can you give an example program that needs any other module than datetime_module.mod? |
Thank you, Tom! Milan, It was early morning when I was writing that. Apologize :) |
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. |
Agreed. It doesn't ;) |
Hello,
and HUGE thanks for your enormous effort. Now datetime operations in FORTRAN have stopped being a nightmare! 👍 One weird thing I'd like to highlight though. Building with autotools:
at the
make install
stage the onlydatetime_module.mod
is actually copied in the destination include folder. That is not enough to link datetime.Fast solution: manually copy all *.mod files from
src/lib
to/path/to/folder/include
.The issue is probably OS related. I'm using CentOS7, ifort-19.
The text was updated successfully, but these errors were encountered: