Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#50468 closed defect (invalid)

cmake doesn't build on El Capitain

Reported by: caa@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: cmake

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I get an error from cmake building when trying to install texlive via port command. I have attached the error files appropriate to this. Tried cleaning all of /opt (rename it) then reinstall but get the same error.

Attachments (3)

error.log (24.2 KB) - added by caa@… 8 years ago.
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.4.3/CMakeFiles/CMakeError.log
main.log (94.9 KB) - added by caa@… 8 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
output.log (40 bytes) - added by caa@… 8 years ago.
opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.4.3/Tests/CMakeFiles/CheckFortran/CMakeFiles/CMakeOutput.log

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by caa@…

Attachment: error.log added

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.4.3/CMakeFiles/CMakeError.log

Changed 8 years ago by caa@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log

Changed 8 years ago by caa@…

Attachment: output.log added

opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.4.3/Tests/CMakeFiles/CheckFortran/CMakeFiles/CMakeOutput.log

comment:1 in reply to:  description Changed 8 years ago by caa@…

Replying to caa@…:

I get an error from cake building when trying to install texlive via port command. I have attached the error files appropriate to this. Tried cleaning all of /opt (rename it) then reinstall but get the same error.

cmake is the problem, autocorrect keeps changing it to make!

comment:2 Changed 8 years ago by caa@…

caa@kree ~]% sudo port clean cmake
Password:
--->  Cleaning cmake
[caa@kree ~]% sudo port install cmake
--->  Computing dependencies for cmake
--->  Fetching archive for cmake
--->  Attempting to fetch cmake-3.4.3_0.darwin_15.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/cmake
--->  Attempting to fetch cmake-3.4.3_0.darwin_15.x86_64.tbz2 from http://packages.macports.org/cmake
--->  Attempting to fetch cmake-3.4.3_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/cmake
--->  Fetching distfiles for cmake
--->  Verifying checksums for cmake
--->  Extracting cmake
--->  Applying patches to cmake
--->  Configuring cmake
Error: org.macports.configure for port cmake returned: configure failure: command execution failed
Please see the log file for port cmake for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port cmake failed
[caa@kree ~]% 
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Priority: HighNormal

The Priority field is for use by Macports team members only.

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: cmake added
Resolution: invalid
Status: newclosed
Summary: Make doesn't build on El Capitaincmake doesn't build on El Capitain

So turn off auto-correct. :)

The log says the problem 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.

Please remove /Library/Frameworks/Gtk.framework and any other frameworks you've installed in /Library/Frameworks. They interfere with MacPorts.

comment:5 Changed 8 years ago by b@…

As a note to the reporter.

You can make the port build, without uninstalling and re-installing the /Library/Frameworks GTK2 framework, by changing line 817 in Modules/FindGTK2.cmake.

Simply change the hard-coded string "/gtk/gtkversion.h" to "/gtkversion.h" - port builds fine. The string is actually a few lines down from 817. The instruction is broken over several lines.

With the caveat that you should follow the instructions in the MacPorts FAQ, uninstalling and re-installing "/Library/Frameworks" frameworks is not usually necessary if you know what you're doing. Renaming folders won't work in this scenario as the problem is due to an environment variable.

Note: See TracTickets for help on using tickets.