[MacPorts] #15642: plplot 5.9.0 make does not find fortran module plplot.mod
#15642: plplot 5.9.0 make does not find fortran module plplot.mod -------------------------------------------+-------------------------------- Reporter: david.lindsay.green@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | -------------------------------------------+-------------------------------- 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? -- Ticket URL: <http://trac.macports.org/ticket/15642> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15642: plplot 5.9.0 make does not find fortran module plplot.mod --------------------------------------------+------------------------------- Reporter: david.lindsay.green@gmail.com | Owner: takeshi@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------------+------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => takeshi@macports.org * milestone: => Port Bugs Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15642#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15642: plplot 5.9.0 make does not find fortran module plplot.mod --------------------------------------------+------------------------------- Reporter: david.lindsay.green@gmail.com | Owner: takeshi@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------------+------------------------------- Comment (by 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. {{{ [ 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 }}} -- Ticket URL: <http://trac.macports.org/ticket/15642#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15642: plplot 5.9.0 make does not find fortran module plplot.mod --------------------------------------------+------------------------------- Reporter: david.lindsay.green@gmail.com | Owner: takeshi@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------------+------------------------------- Comment (by david.lindsay.green@gmail.com): Replying to [comment:2 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 }}} -- Ticket URL: <http://trac.macports.org/ticket/15642#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15642: plplot 5.9.0 make does not find fortran module plplot.mod --------------------------------------------+------------------------------- Reporter: david.lindsay.green@gmail.com | Owner: takeshi@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------------+------------------------------- Comment (by takeshi@macports.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/15642#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15642: plplot 5.9.0 make does not find fortran module plplot.mod --------------------------------------------+------------------------------- Reporter: david.lindsay.green@gmail.com | Owner: takeshi@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: --------------------------------------------+------------------------------- Changes (by takeshi@macports.org): * status: new => closed * resolution: => fixed Comment: 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. -- Ticket URL: <http://trac.macports.org/ticket/15642#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts