Opened 16 months ago
Closed 15 months ago
#67904 closed defect (fixed)
opencolorio fails to configure with gcc due to wrong cxxflags: cc1plus: error: '-Wno-error=self-assign-field': no option '-Wself-assign-field'
Reported by: | barracuda156 | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | opencolorio |
Description
---> 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!
Change History (3)
comment:1 Changed 16 months ago by barracuda156
comment:2 Changed 16 months ago by barracuda156
Then it is broken by upstream a bit further:
[ 5%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/CDLTransform.cpp.o cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/build/src/core && /opt/local/bin/g++-mp-12 -DOpenColorIO_STATIC -DUSE_SSE -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/OpenColorIO-1.1.1/export -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/build/export -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/OpenColorIO-1.1.1/ext/oiio/src/include -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/build/ext/dist/include -pipe -I/opt/local/libexec/boost/1.76/include -Os -std=c++11 -Wno-deprecated-declarations -DNDEBUG -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 -msse2 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -Werror -MD -MT src/core/CMakeFiles/OpenColorIO_STATIC.dir/CDLTransform.cpp.o -MF CMakeFiles/OpenColorIO_STATIC.dir/CDLTransform.cpp.o.d -o CMakeFiles/OpenColorIO_STATIC.dir/CDLTransform.cpp.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/OpenColorIO-1.1.1/src/core/CDLTransform.cpp g++-mp-12: error: unrecognized command-line option '-msse2' make[2]: *** [src/core/CMakeFiles/OpenColorIO.dir/AllocationTransform.cpp.o] Error 1 g++-mp-12: error: unrecognized command-line option '-msse2' make[2]: *** [src/core/CMakeFiles/OpenColorIO.dir/Baker.cpp.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/build' make[1]: *** [src/core/CMakeFiles/OpenColorIO.dir/all] Error 2 g++-mp-12: error: unrecognized command-line option '-msse2' make[2]: *** [src/core/CMakeFiles/OpenColorIO_STATIC.dir/Baker.cpp.o] Error 1 g++-mp-12: error: unrecognized command-line option '-msse2' make[2]: *** [src/core/CMakeFiles/OpenColorIO_STATIC.dir/CDLTransform.cpp.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/build' make[1]: *** [src/core/CMakeFiles/OpenColorIO_STATIC.dir/all] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_opencolorio/opencolorio/work/build' make: *** [all] Error 2
comment:3 Changed 15 months ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Oh, it is we are breaking it by adding a wrong flag…