Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15642 closed defect (fixed)

plplot 5.9.0 make does not find fortran module plplot.mod

Reported by: david.lindsay.green@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Installation of plplot 5.9.0 fails with the following error:

[ 59%] Building Fortran object examples/f95/CMakeFiles/x01f.dir/x01f.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/build/examples/f95 && /opt/local/bin/gfortran-mp-4.2  -o CMakeFiles/x01f.dir/x01f.o  -O2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/build   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/plplot-5.9.0/examples/f95/x01f.f90
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/plplot-5.9.0/examples/f95/x01f.f90:23.26:

   use plplot, PI => PL_PI
                         1
Fatal Error: Can't open module file 'plplot.mod' for reading at (1): No such file or directory
make[2]: *** [examples/f95/CMakeFiles/x01f.dir/x01f.o] Error 1
make[1]: *** [examples/f95/CMakeFiles/x01f.dir/all] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

On OS X 10.5.3 this error occurs with all variants and gcc versions I have tried (gcc40, mp-gcc42, mp-gcc43).

Any suggestions?

Change History (6)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to takeshi@…

Assigning to maintainer.

comment:2 Changed 16 years ago by tenomoto (Takeshi Enomoto)

I don't have any problems with both gcc42 (default) and g95 (my favourite) variants. I am not sure what you meant with gcc40, mp-gcc42, mp-gcc43.

[ 63%] Building Fortran object examples/f95/CMakeFiles/x01f.dir/x01f.o
/opt/local/bin/gfortran-mp-4.2  -o examples/f95/CMakeFiles/x01f.dir/x01f.o  -O2 -I/opt/local/var/macports/build/_Users_takeshi_Library_MacPorts_ports_science_plplot/work/build    -c /opt/local/var/macports/build/_Users_takeshi_Library_MacPorts_ports_science_plplot/work/plplot-5.9.0/examples/f95/x01f.f90
Linking Fortran executable x01f

With

pkg-config --cflags --libs plplotd-f95

I get

-I/opt/local/include/plplot -I/opt/local/lib/fortran/modules/plplot  /opt/local/lib/libfreetype.dylib -L/opt/local/lib -lplplotf95d -lplplotf95cd -lplplotd -lltdl -ldl -lm -lcsirocsa -lcsironn -lqhull 

comment:3 in reply to:  2 Changed 16 years ago by david.lindsay.green@…

Replying to takeshi@macports.org:

I don't have any problems with both gcc42 (default) and g95 (my favourite) variants. I am not sure what you meant with gcc40, mp-gcc42, mp-gcc43.

I just meant I have tried building plplot with more than one version of gcc (using the gcc42 variant), i.e., I have tried all gcc versions I have on my system:

dg6@greendl/opt/local
: gcc_select -l
Available versions:
gcc40 mp-gcc42 mp-gcc43 mp-gcc44

I ended up getting it to work by manually copying the .mod files to two locations they seemed to be required:

sudo cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/build/bindings/f95/plplot*.mod /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/plplot-5.9.0/examples/f95/

sudo cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/build/bindings/f95/plplot*.mod /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_plplot/work/build/

export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig

pkg-config --cflags --libs plplotd

-I/opt/local/include/plplot  /opt/local/lib/libfreetype.dylib -L/opt/local/lib -lplplotd -lltdl -ldl -lm -lcsirocsa  

comment:4 Changed 16 years ago by tenomoto (Takeshi Enomoto)

I confirm the problem. It occurs with cmake-2.6.0. I was using an older version cmake-2.4.7. I'll try to resolve this issue.

comment:5 Changed 16 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Plplot developers are working to migrate cmake-2.4 to cmake-2.6. The build system of the next version will use cmake-2.6. I made adhoc fixes. Stopped testing. Copied *.mod to build.

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.