[MacPorts] #44237: CMake 3.0.0_2 fails to configure
#44237: CMake 3.0.0_2 fails to configure -----------------------------+-------------------------------- Reporter: luc_j_bourhis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: cmake -----------------------------+-------------------------------- The error is {{{ :info:configure CMake Error at Modules/FindGTK2.cmake:181 (file): :info:configure file STRINGS file :info:configure "/Library/Frameworks/Gtk.framework/Headers/gtk/gtk/gtkversion.h" cannot be :info:configure read. :info:configure Call Stack (most recent call first): :info:configure Modules/FindGTK2.cmake:796 (_GTK2_GET_VERSION) :info:configure Tests/CMakeLists.txt:1197 (find_package) }}} There is a file /Library/Frameworks/Gtk.framework/Headers/gtk/gtkversion.h on my system. This is the first time Macports fails to update CMake which I have installed with macports for the first time years ago. -- Ticket URL: <https://trac.macports.org/ticket/44237> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Changes (by mojca@…): * cc: css (removed) * cc: philip@… (added) * owner: macports-tickets@… => css@… * version: 2.3.1 => Comment: This has to be reported upstream. Can you please open a ticket at http://www.cmake.org/Bug? (I wonder why CMake even searches for GTK during installation.) This most probably failed because of a bug in `FindGTK.cmake`. You could try two things. After "`port patch cmake`", edit `FindGTK.cmake`. The first thing you could try is to replace `gtk/gtkversion.h` with `gtkversion.h` in the following chunks of code: {{{ _GTK2_GET_VERSION(GTK2_MAJOR_VERSION GTK2_MINOR_VERSION GTK2_PATCH_VERSION ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h) ... if(NOT GTK2_FIND_VERSION AND GTK2_GTK_INCLUDE_DIR) _GTK2_GET_VERSION(GTK2_MAJOR_VERSION GTK2_MINOR_VERSION GTK2_PATCH_VERSION ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h) set(GTK2_VERSION ${GTK2_MAJOR_VERSION}.${GTK2_MINOR_VERSION}.${GTK2_PATCH_VERSION}) endif() }}} The second option would be to modify `GTK2_GTK_INCLUDE_DIR`, but I'm not yet sure how. (Oh, and the third thing to try would be to uninstall `Gtk.framework`. ;) -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Comment (by ryandesign@…): Installing frameworks into /Library/Frameworks is just as bad for MacPorts as installing libraries into /usr/local, so you should remove them. -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Comment (by luc_j_bourhis@…): Ok, thanks guys, the GTK in /Library/Frameworks was a remnant from long ago, before I used MacPorts, and that I had forgotten about. Simply, until now, it had not caused any issue. Anyway, I remove it and we can close this ticket I reckon. -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Comment (by mojca@…): My request still stands: can you please file an upstream ticket? -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Comment (by luc_j_bourhis@…): I have filed a ticket upstream: 0015027 -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Comment (by air_drummer@…): Replying to [comment:3 ryandesign@…]:
Installing frameworks into /Library/Frameworks is just as bad for MacPorts as installing libraries into /usr/local, so you should remove them.
tried that, still fails: {{{ :info:configure sh: /bin/ps: Operation not permitted :info:configure CMake Error at Modules/FindGTK2.cmake:181 (file): :info:configure file STRINGS file :info:configure "/Library/Frameworks/Gtk.framework/Headers/gtk/gtk/gtkversion.h" cannot be :info:configure read. :info:configure Call Stack (most recent call first): :info:configure Modules/FindGTK2.cmake:796 (_GTK2_GET_VERSION) :info:configure Tests/CMakeLists.txt:1197 (find_package) :info:configure :info:configure :info:configure CMake Error at Modules/FindGTK2.cmake:181 (file): :info:configure file STRINGS file :info:configure "/Library/Frameworks/Gtk.framework/Headers/gtk/gtk/gtkversion.h" cannot be :info:configure read. :info:configure Call Stack (most recent call first): :info:configure Modules/FindGTK2.cmake:796 (_GTK2_GET_VERSION) :info:configure Tests/FindGTK2/CMakeLists.txt:1 (find_package) :info:configure :info:configure :info:configure -- Configuring incomplete, errors occurred! :info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0/CMakeFiles/CMakeOutput.log". :info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0/CMakeFiles/CMakeError.log". :info:configure --------------------------------------------- :info:configure Error when bootstrapping CMake: :info:configure Problem while running initial CMake :info:configure --------------------------------------------- :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0" && ./configure --prefix=/opt/local --mandir=/share/man --docdir=/share/doc/cmake --parallel=8 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0/macports.cmake --system-libs :info:configure Exit code: 11 :error:configure org.macports.configure for port cmake returned: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed while executing "portconfigure::configure_main org.macports.configure" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:configure Warning: targets not executed for cmake: org.macports.install org.macports.configure org.macports.build org.macports.destroot }}} -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Comment (by cal@…): Replying to [comment:7 air_drummer@…]:
tried that, still fails:
If you removed `Gtk.framework` from `/Library/Frameworks`, how come cmake thinks it is still there? Did you clean and re-try? -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts