[MacPorts] #57119: mpich @3.2.1 : Incompatible Fortran and C Object File Types

MacPorts noreply at macports.org
Tue Sep 11 21:12:36 UTC 2018


#57119: mpich @3.2.1 : Incompatible Fortran and C Object File Types
-----------------------+----------------------
  Reporter:  lzkelley  |      Owner:  eborisch
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.5.3
Resolution:            |   Keywords:
      Port:  mpich     |
-----------------------+----------------------

Comment (by lzkelley):

 Replying to [comment:4 lzkelley]:
 > Replying to [comment:3 eborisch]:
 > > Sure looks like a duplicate of #56938; try this and see if it works:
 > >
 > > {{{#!sh
 > > sudo port selfupdate
 > > sudo port upgrade cctools
 > > sudo port clean mpich-default
 > > sudo port install mpich-default
 > > }}}
 > >
 > > Please report back so we can close / investigate as necessary.
 >
 > I tried the above.  I wasn't able to run `sudo port upgrade cctools` (it
 said libgcc7 was broken, no other info), but uninstalling and reinstalling
 libgcc7 and then reinstalling cctools worked.  Trying to install `mpich-
 default` leads to (seemingly) the same error:
 >
 > {{{
 > :info:configure checking for Fortran 77 libraries of /opt/local/bin
 /gfortran-mp-7...
 > :info:configure checking whether /opt/local/bin/gfortran-mp-7 accepts
 the FLIBS found by autoconf... no
 > :info:configure checking for valid entries in FLIBS...
 > :info:configure checking whether /usr/bin/clang links with FLIBS found
 by autoconf... yes
 > :info:configure checking whether Fortran 77 and C objects are
 compatible... no
 > :info:configure checking for file... file
 > :info:configure configure: error: ****  Incompatible Fortran and C
 Object File Types!  ****
 > :info:configure F77 Object File Type produced by "/opt/local/bin
 /gfortran-mp-7  -pipe" is : : cannot open `' (No such file or directory).
 > :info:configure  C  Object File Type produced by "/usr/bin/clang  -pipe
 -arch x86_64  -O2" is : : Mach-O 64-bit object x86_64.
 > :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_mpich
 /mpich-default/work/mpich-3.2.1" && ./configure --prefix=/opt/local
 --disable-dependency-tracking --disable-silent-rules --enable-base-cache
 --enable-cache --enable-cxx --enable-fast=O2 --enable-shared --enable-
 smpcoll --with-device=ch3:nemesis --with-pm=hydra --with-thread-
 package=posix --enable-versioning F90FLAGS='' F90='' --enable-timer-
 type=mach_absolute_time --libdir=/opt/local/lib/mpich-mp
 --sysconfdir=/opt/local/etc/mpich-mp --program-suffix=-mpich-mp
 --includedir=/opt/local/include/mpich-mp MPICHLIB_CFLAGS="$CFLAGS"
 CFLAGS="" MPICHLIB_CPPFLAGS="$CPPFLAGS" CPPFLAGS=""
 MPICHLIB_CXXFLAGS="$CXXFLAGS" CXXFLAGS="" MPICHLIB_FFLAGS="$FFLAGS"
 FFLAGS="" MPICHLIB_FCFLAGS="$FCFLAGS" FCFLAGS="" --enable-fortran
 > :info:configure Exit code: 1
 > :error:configure Failed to configure mpich-default, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_mpich
 /mpich-default/work/mpich-3.2.1/config.log
 > :error:configure Failed to configure mpich-default: configure failure:
 command execution failed
 > :debug:configure Error code: NONE
 > :debug:configure Backtrace: configure failure: command execution failed
 > :debug:configure     while executing
 > :debug:configure "$procedure $targetname"
 > :error:configure See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_mpich
 /mpich-default/main.log for details.
 > }}}
 >
 > I'll attached the full, updated main.log (new: `main.2.log`)
 >
 > ----------
 >
 > In the referenced ticket () they say to make sure the `xcode` cctools
 variant is installed.  I did a `port variants cctools` and get:
 > {{{
 > cctools has the variants:
 >    llvm39: Use llvm-3.9 for libLTO, llvm-mc, llvm-size, and llvm-nm
 >      * conflicts with llvm40 llvm50 llvmdev xcode
 >    llvm40: Use llvm-4.0 for libLTO, llvm-mc, llvm-size, and llvm-nm
 >      * conflicts with llvm39 llvm50 llvmdev xcode
 > [+]llvm50: Use llvm-5.0 for libLTO, llvm-mc, llvm-size, and llvm-nm
 >      * conflicts with llvm39 llvm40 llvmdev xcode
 >    llvmdev: Use llvm-devel for libLTO, llvm-mc, llvm-size, and llvm-nm
 >      * conflicts with llvm39 llvm40 llvm50 xcode
 >    universal: Build for multiple architectures
 >      * conflicts with xcode
 >    xcode: Use Xcode supplied toolkit
 >      * conflicts with universal
 > }}}
 > This means the `llvm50` is the installed variant, I think.  Should I try
 the xcode version?

 Update: using the xcode version fixes the problem.

-- 
Ticket URL: <https://trac.macports.org/ticket/57119#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list