Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#22833 closed defect (fixed)

openmpi 1.3.4 configure error -- fortran

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: fortran build_arch Cc: mf2k (Frank Schima)
Port: openmpi

Description

The port uses the --enable-f{77,90} options to configure, but those aren't supported.

--->  Configuring openmpi
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: configure phase started at Tue Dec  8 14:58:22 PST 2009
DEBUG: Executing org.macports.configure (openmpi)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch ppc' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch ppc' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_science_openmpi/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m32' LDFLAGS='-L/opt/local/lib -arch ppc' FCFLAGS='-pipe -O2 -m32' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' FC='/opt/local/bin/gfortran-mp-4.3' OBJCFLAGS='-pipe -O2 -arch ppc' FFLAGS='-pipe -O2 -m32' F77='/opt/local/bin/gfortran-mp-4.3' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_science_openmpi/work/build" && /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_science_openmpi/work/openmpi-1.3.4/configure --prefix=/opt/local --with-xgrid --sysconfdir=/opt/local/etc/openmpi --includedir=/opt/local/include/openmpi --bindir=/opt/local/lib/openmpi/bin --mandir=/opt/local/share/man --enable-f77 --enable-f90'
configure: WARNING: unrecognized options: --enable-f77, --enable-f90

Furthermore, it fails to use gfortran-mp-4.3 as F77 :

*** Fortran 77 compiler
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether /opt/local/bin/gfortran-mp-4.3 accepts -g... yes
checking if Fortran 77 compiler works... no
**********************************************************************
* It appears that your Fortran 77 compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
configure: error: Could not run a simple Fortran 77 program.  Aborting.
shell command " cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_science_openmpi/work/build" && /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_science_openmpi/work/openmpi-1.3.4/configure --prefix=/opt/local --with-xgrid --sysconfdir=/opt/local/etc/openmpi --includedir=/opt/local/include/openmpi --bindir=/opt/local/lib/openmpi/bin --mandir=/opt/local/share/man --enable-f77 --enable-f90 " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed

Attachments (2)

config.log (190.1 KB) - added by jeremyhu (Jeremy Huddleston Sequoia) 15 years ago.
config.log
main.log (17.5 KB) - added by jeremyhu (Jeremy Huddleston Sequoia) 15 years ago.
main.log

Download all attachments as: .zip

Change History (10)

Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Attachment: config.log added

config.log

Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Attachment: main.log added

main.log

comment:1 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Keywords: build_arch added; build removed

It looks like it's an issue with build_arch using the latest trunk/base

comment:2 Changed 15 years ago by jmroot (Joshua Root)

The fortran flags are correct, so it's probably getting the -arch from LDFLAGS (at least I hope it's not using CFLAGS...). This is of course the very reason why configure.ld_archflags didn't initially exist. Have to either clear it, or set configure.compiler so the chosen gcc is used for C as well.

comment:3 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Well, I understand that... but I think that this situation is better. I'd rather have a correct base and fix buggy ports than a buggy base to workaround buggy ports and need to "fix" correct ports to work with the buggy base.

comment:4 Changed 15 years ago by mf2k (Frank Schima)

I still see this error with version 1.4.

comment:5 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:6 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

The fortran options are still broken. The used configure options are not even valid:

Warning: openmpi has no universal variant
Warning: gcc43 has no universal variant
--->  Computing dependencies for openmpi.
--->  Configuring openmpi
configure: WARNING: unrecognized options: --enable-f77, --enable-f90

comment:7 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

workaround in r63917

comment:8 Changed 15 years ago by jmroot (Joshua Root)

The workaround was not compatible with 1.8, fixed in r63921.

Note: See TracTickets for help on using tickets.