[MacPorts] #67904: opencolorio fails to configure with gcc due to wrong cxxflags: cc1plus: error: '-Wno-error=self-assign-field': no option '-Wself-assign-field'

MacPorts noreply at macports.org
Fri Aug 4 09:39:45 UTC 2023


#67904: opencolorio fails to configure with gcc due to wrong cxxflags: cc1plus:
error: '-Wno-error=self-assign-field': no option '-Wself-assign-field'
--------------------------+---------------------------------
 Reporter:  barracuda156  |      Owner:  MarcusCalhoun-Lopez
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:                |       Port:  opencolorio
--------------------------+---------------------------------
 {{{
 --->  Configuring opencolorio
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencolorio/opencolorio/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_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
 -DCMAKE_CONFIGURATION_TYPES=MacPorts -DOCIO_BUILD_TRUELIGHT=OFF
 -DOCIO_BUILD_NUKE=OFF -DUSE_EXTERNAL_YAML=ON -DUSE_EXTERNAL_TINYXML=ON
 -DUSE_EXTERNAL_LCMS=ON -DOCIO_BUILD_APPS=OFF
 -DPYTHON=/opt/local/bin/python3.11
 -DBOOST_ROOT=/opt/local/libexec/boost/1.76
 -DBOOSTROOT=/opt/local/libexec/boost/1.76
 -DBOOST_INCLUDEDIR=/opt/local/libexec/boost/1.76/include
 -DBOOST_LIBRARYDIR=/opt/local/libexec/boost/1.76/lib
 -DBOOST_INCLUDE_DIR=/opt/local/libexec/boost/1.76/include
 -DBOOST_LIBRARY_DIR=/opt/local/libexec/boost/1.76/lib
 -DBOOST_LIB_DIR=/opt/local/libexec/boost/1.76/lib
 -DBoost_NO_SYSTEM_PATHS=ON
 -DBoost_INCLUDE_DIR=/opt/local/libexec/boost/1.76/include
 -DBoost_DIR=/opt/local/libexec/boost/1.76 -DCMAKE_OSX_ARCHITECTURES="ppc"
 -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/"
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencolorio/opencolorio/work/OpenColorIO-1.1.1
 -- The C compiler identification is GNU 12.3.0
 -- The CXX compiler identification is GNU 12.3.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
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working C compiler: /opt/local/bin/gcc-mp-12 - skipped
 -- Detecting C compile features
 -- Detecting C compile features - done
 -- Checking whether CXX compiler has -isysroot
 -- Checking whether CXX compiler has -isysroot - yes
 -- Checking whether CXX compiler supports OSX deployment target flag
 -- Checking whether CXX compiler supports OSX deployment target flag - yes
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - failed
 -- Check for working CXX compiler: /opt/local/bin/g++-mp-12
 -- Check for working CXX compiler: /opt/local/bin/g++-mp-12 - broken
 CMake Error at
 /opt/local/share/cmake-3.26/Modules/CMakeTestCXXCompiler.cmake:60
 (message):
   The C++ compiler

     "/opt/local/bin/g++-mp-12"

   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_graphics_opencolorio/opencolorio/work/build/CMakeFiles/CMakeScratch
 /TryCompile-mocqQn

     Run Build Command(s):/opt/local/bin/cmake -E env VERBOSE=1
 /usr/bin/make -f Makefile cmTC_6de31/fast && /usr/bin/make  -f
 CMakeFiles/cmTC_6de31.dir/build.make CMakeFiles/cmTC_6de31.dir/build
     Building CXX object CMakeFiles/cmTC_6de31.dir/testCXXCompiler.cxx.o
     /opt/local/bin/g++-mp-12   -pipe
 -I/opt/local/libexec/boost/1.76/include -Os -std=c++11 -Wno-error=self-
 assign-field -Wno-deprecated-declarations -DNDEBUG
 -I/opt/local/libexec/boost/1.76/include -I/opt/local/include
 -D_GLIBCXX_USE_CXX11_ABI=0  -arch ppc -mmacosx-version-min=10.6 -o
 CMakeFiles/cmTC_6de31.dir/testCXXCompiler.cxx.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencolorio/opencolorio/work/build/CMakeFiles/CMakeScratch
 /TryCompile-mocqQn/testCXXCompiler.cxx
     cc1plus: error: '-Wno-error=self-assign-field': no option '-Wself-
 assign-field'
     make[1]: *** [CMakeFiles/cmTC_6de31.dir/testCXXCompiler.cxx.o] Error 1
     make: *** [cmTC_6de31/fast] Error 2





   CMake will not be able to correctly generate this project.
 Call Stack (most recent call first):
   CMakeLists.txt:1 (project)


 -- Configuring incomplete, errors occurred!
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67904>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list