Opened 2 years ago

Last modified 2 years ago

#65296 new defect

ecCodes @2.26.0 +debug+memfs+openmp: The Fortran compiler "/opt/local/bin/gfortran-mp-11" is not able to compile a simple test program.

Reported by: cooljeanius (Eric Gallager) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: tenomoto (Takeshi Enomoto), remkos (Remko Scharroo)
Port: ecCodes

Description

I'm on Big Sur with Xcode 13:

-- Feature FORTRAN enabled
-- The Fortran compiler identification is unknown
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-11
-- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-11 - broken
CMake Error at /opt/local/share/cmake-3.22/Modules/CMakeTestFortranCompiler.cmake:61 (message):
  The Fortran compiler

    "/opt/local/bin/gfortran-mp-11"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make -f Makefile cmTC_8b4a2/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_8b4a2.dir/build.make CMakeFiles/cmTC_8b4a2.dir/build
    Building Fortran object CMakeFiles/cmTC_8b4a2.dir/testFortranCompiler.f.o
    /opt/local/bin/gfortran-mp-11   -pipe -Os -fallow-argument-mismatch -m64  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -mmacosx-version-min=11.0 -fPIC -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_8b4a2.dir/testFortranCompiler.f.o
    clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'.  Try: 'clang (LLVM option parsing) --help'
    clang (LLVM option parsing): Did you mean '--stackrealign=false'?
    make[1]: *** [CMakeFiles/cmTC_8b4a2.dir/testFortranCompiler.f.o] Error 1
    make: *** [cmTC_8b4a2/fast] Error 2
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  cmake/ecbuild_enable_fortran.cmake:46 (enable_language)
  CMakeLists.txt:152 (ecbuild_enable_fortran)


-- Configuring incomplete, errors occurred!
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/build/CMakeFiles/CMakeOutput.log".
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/build/CMakeFiles/CMakeError.log".
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DENABLE_FORTRAN=ON -DENABLE_NETCDF=ON -DENABLE_PNG=ON -DENABLE_AEC=ON -DAEC_PATH=/opt/local/lib/libaec -DENABLE_TESTS=OFF -DNETCDF_CONFIG_EXECUTABLE=/opt/local/bin/nc-config -DENABLE_JPG_LIBJASPER=OFF -DOPENJPEG_INCLUDE_DIR=/opt/local/include/openjpeg-1.5 -DOPENJPEG_LIBRARY=/opt/local/lib/libopenjpeg.dylib -DZLIB_INCLUDE_DIR=/opt/local/include -DZLIB_LIBRARY=/opt/local/lib/libz.dylib -DENABLE_ECCODES_OMP_THREADS=ON -DENABLE_MEMFS=ON -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk" -DCMAKE_STRIP:FILEPATH=/bin/echo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/eccodes-2.26.0-Source 
Exit code: 1
Error: Failed to configure ecCodes: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure ecCodes: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ecCodes/ecCodes/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ecCodes failed

Attachments (1)

ecCodes_main.log (228.3 KB) - added by cooljeanius (Eric Gallager) 2 years ago.
main.log for ecCodes

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by cooljeanius (Eric Gallager)

Attachment: ecCodes_main.log added

main.log for ecCodes

comment:1 Changed 2 years ago by kencu (Ken)

the buildbot works to build this without all your added variants, so presumably it's one of those.

comment:2 Changed 2 years ago by kencu (Ken)

surprisingly, it's the +debug variant that kills the build. huh.

you'll have to do one of these:

  1. fix the debug variant
  2. don't use the debug variant

comment:3 Changed 2 years ago by remkos (Remko Scharroo)

The error message:

clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'.  Try: 'clang (LLVM option parsing) --help'
    clang (LLVM option parsing): Did you mean '--stackrealign=false'?

has all the hallmarks of a bad configure script, at least one that is not adapted to MacOS.

I am not sure that it is worthwhile to try to make this work just for a +debug variant. Maybe we should remove that variant?

Views from others are appreciated before I try to make it work.

comment:4 in reply to:  2 Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to kencu:

surprisingly, it's the +debug variant that kills the build. huh.

you'll have to do one of these:

  1. fix the debug variant
  2. don't use the debug variant

OK I have removed the debug variant for now and it works again.

Replying to remkos:

The error message:

clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'.  Try: 'clang (LLVM option parsing) --help'
    clang (LLVM option parsing): Did you mean '--stackrealign=false'?

has all the hallmarks of a bad configure script, at least one that is not adapted to MacOS.

I am not sure that it is worthwhile to try to make this work just for a +debug variant. Maybe we should remove that variant?

Isn't the +debug variant added by the cmake portgroup?

Note: See TracTickets for help on using tickets.