[MacPorts] #59973: broken mpicc-openmpi-gcc9 causes flann +gcc9 +debug +openmpi +python37 build failure
MacPorts
noreply at macports.org
Thu Jan 16 03:00:17 UTC 2020
#59973: broken mpicc-openmpi-gcc9 causes flann +gcc9 +debug +openmpi +python37
build failure
-----------------------------+--------------------
Reporter: TheLastLovemark | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Keywords: | Port: flann
-----------------------------+--------------------
I tried to install flann with: {{{sh-3.2# port -vd install flann +gcc9
+debug +openmpi +python37}}}
which gave me this debug error message:
{{{
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /opt/local/bin/mpicc-openmpi-gcc9
-- Check for working C compiler: /opt/local/bin/mpicc-openmpi-gcc9 --
broken
CMake Error at
/opt/local/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/opt/local/bin/mpicc-openmpi-gcc9"
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_flann/flann/work/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_283d7/fast &&
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/cmTC_283d7.dir/build.make CMakeFiles/cmTC_283d7.dir/build
Building C object CMakeFiles/cmTC_283d7.dir/testCCompiler.c.o
/opt/local/bin/mpicc-openmpi-gcc9 -pipe -Os -g -fno-limit-debug-info
-DDEBUG -I/opt/local/include -arch x86_64 -mmacosx-version-min=10.13 -o
CMakeFiles/cmTC_283d7.dir/testCCompiler.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_flann/flann/work/build/CMakeFiles/CMakeTmp/testCCompiler.c
gcc-mp-9: error: unrecognized command line option '-fno-limit-debug-
info'
make[1]: *** [CMakeFiles/cmTC_283d7.dir/testCCompiler.c.o] Error 1
make: *** [cmTC_283d7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred!
See also
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_flann/flann/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_flann/flann/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_flann/flann/work/build"
&& /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles"
-DCMAKE_BUILD_TYPE=MacPorts -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_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 flann-1.9.1
-DBUILD_MATLAB_BINDINGS=OFF -DBUILD_CUDA_LIB=OFF -DUSE_MPI=ON
-DCMAKE_STRIP:FILEPATH=/bin/echo
-DPYTHON_EXECUTABLE=/opt/local/bin/python3.7
-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.13"
-DCMAKE_OSX_SYSROOT="/"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_flann/flann/work/flann-1.9.1
Exit code: 1
Error: Failed to configure flann: configure failure: command execution
failed
}}}
Initially I did not have an mpi selection set.
I changed that with:
{{{
sh-3.2# port select --set mpi openmpi-gcc9-fortran
Selecting 'openmpi-gcc9-fortran' for 'mpi' succeeded. 'openmpi-
gcc9-fortran' is now active.
}}}
which yelded:
{{{
$ port select --summary
Name Selected Options
==== ======== =======
clang mp-clang-9.0 mp-clang-3.7 mp-clang-9.0 none
cython cython37 cython27 cython37 cython38 none
gcc mp-gcc9 mp-gcc5 mp-gcc6 mp-gcc7 mp-gcc8 mp-gcc9
none
ipython py37-ipython py37-ipython py38-ipython none
ipython3 py37-ipython py37-ipython py38-ipython none
llvm mp-llvm-9.0 mp-llvm-3.7 mp-llvm-7.0 mp-llvm-8.0 mp-
llvm-9.0 none
mpi openmpi-gcc9-fortran mpich-mp-fortran openmpi-clang90-fortran
openmpi-gcc9-fortran openmpi-mp-fortran none
nosetests nosetests37 nosetests27 nosetests37 nosetests38 none
pip pip37 pip27 pip37 pip38 none
pip2 pip27 pip27 none
pip3 pip37 pip37 pip38 none
pygments py37-pygments py27-pygments py37-pygments py38-pygments
none
pytest pytest37 pytest37 pytest38 none
python python37 python27 python27-apple python37 python38
none
python2 python27 python27 python27-apple none
python3 python37 python37 python38 none
sphinx py37-sphinx py27-sphinx py37-sphinx py38-sphinx none
wxWidgets none wxWidgets-3.0 none
}}}
The log file is attached.
Thanks for all your help!
--
Ticket URL: <https://trac.macports.org/ticket/59973>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list