Opened 3 years ago
Closed 3 years ago
#63367 closed defect (fixed)
sfcgal @1.3.9 +debug+examples+viewer: cmake fails to find boost during configure step
Reported by: | cooljeanius (Eric Gallager) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | Veence (Vincent) | |
Port: | sfcgal |
Description
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DSFCGAL_BUILD_VIEWER=ON -DSFCGAL_BUILD_EXAMPLES=ON -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9 DEBUG: system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DSFCGAL_BUILD_VIEWER=ON -DSFCGAL_BUILD_EXAMPLES=ON -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9 -- The C compiler identification is AppleClang 12.0.5.12050022 -- The CXX compiler identification is AppleClang 12.0.5.12050022 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /opt/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR) Call Stack (most recent call first): /opt/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /opt/local/share/cmake-3.20/Modules/FindBoost.cmake:2345 (find_package_handle_standard_args) /opt/local/share/cmake-3.20/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/local/lib/cmake/CGAL/CGALConfig.cmake:16 (find_dependency) CMakeLists.txt:56 (find_package) -- Configuring incomplete, errors occurred! See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9/CMakeFiles/CMakeOutput.log". Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DSFCGAL_BUILD_VIEWER=ON -DSFCGAL_BUILD_EXAMPLES=ON -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.9 Exit code: 1 Error: Failed to configure sfcgal: configure failure: command execution failed
Building in trace mode shows that it checks a whole bunch of different places for boost, too, none of which are correct (the list of them is too big to paste here).
Change History (6)
comment:1 Changed 3 years ago by Veence (Vincent)
comment:2 follow-up: 3 Changed 3 years ago by Veence (Vincent)
Oops, the dependency was missing. Please try again, I have also updated the version to 1.3.10
comment:3 Changed 3 years ago by cooljeanius (Eric Gallager)
Replying to Veence:
Oops, the dependency was missing. Please try again, I have also updated the version to 1.3.10
Now I get a different error:
-- Found Boost: /opt/local/include (found version "1.76.0") found components: serialization CMake Warning at /opt/local/lib/cmake/CGAL/CGAL_enable_end_of_configuration_hook.cmake:99 (message): ======================================================================= CGAL performance notice: The variable CMAKE_BUILD_TYPE is set to "Debug". For performance reasons, you should set CMAKE_BUILD_TYPE to "Release". Set CGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE to TRUE if you want to disable this warning. ======================================================================= Call Stack (most recent call first): CMakeLists.txt:9223372036854775807 (CGAL_run_at_the_end_of_configuration) -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: SFCGAL_BUILD_VIEWER -- Build files have been written to: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.10 DEBUG: Executing proc-post-org.macports.configure-configure-0 DEBUG: configure.ccache restored to no DEBUG: Executing proc-post-org.macports.configure-configure-1 ---> Patching link.txt: s|(.*)|\1 -F /opt/local/Library/Frameworks -lQtCore -lQtOpenGL -lQtGui| DEBUG: Executing reinplace: /usr/bin/sed -E {s|(.*)|\1 -F /opt/local/Library/Frameworks -lQtCore -lQtOpenGL -lQtGui|} </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.10/viewer/CMakeFiles/viewer-SFCGAL.dir/link.txt >@file15 DEBUG: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.10/viewer/CMakeFiles/viewer-SFCGAL.dir/link.txt": no such file or directory while executing "exec -ignorestderr -- {*}$cmdline" Error: reinplace: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/work/SFCGAL-1.3.10/viewer/CMakeFiles/viewer-SFCGAL.dir/link.txt": no such file or directory Error: Failed to configure sfcgal: reinplace sed(1) failed DEBUG: Error code: NONE DEBUG: Backtrace: reinplace sed(1) failed while executing "$post $targetname" Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_sfcgal/sfcgal/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port sfcgal failed
comment:4 Changed 3 years ago by Veence (Vincent)
The viewer option has gone, apparently. I’m about to commit a new revision with the relevant variant taken out. I’m not sure why you get the message about CMAKE_BUILD_TYPE being set to debug. That’s something I don’t get, so I assume it’s caused by your config. Please update.
comment:5 Changed 3 years ago by cooljeanius (Eric Gallager)
ok, the latest update appears to have fixed things; thanks!
comment:6 Changed 3 years ago by Veence (Vincent)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Wonderful! Have fun with it!
What version of BOOST do you have installed?