[MacPorts] #40641: metis build fails
#40641: metis build fails --------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: --------------------+-------------------------------- {{{ rosody /Users/lord/tmp# port install octave ---> Computing dependencies for octave ---> Dependencies to be installed: metis qhull qrupdate texinfo ---> Fetching archive for metis ---> Attempting to fetch metis-5.1.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/metis ---> Attempting to fetch metis-5.1.0_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/metis ---> Attempting to fetch metis-5.1.0_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/metis ---> Fetching distfiles for metis ---> Verifying checksums for metis ---> Extracting metis ---> Applying patches to metis ---> Configuring metis Error: org.macports.configure for port metis returned: configure failure: command execution failed Error: Failed to install metis Please see the log file for port metis for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_metis/metis/main.log Error: The following dependencies were not installed: metis qhull qrupdate texinfo To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port octave failed }}} Log file attacged -- Ticket URL: <https://trac.macports.org/ticket/40641> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by lord@…): Could be related to [110134] -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by lord@…): This also seems to be relevant: #40250. Please advise on workaround for this problem. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by ryandesign@…): Hmm, the log says: {{{ :info:configure CMake Error at /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake:190 (message): :info:configure CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT: :info:configure :info:configure "" :info:configure :info:configure is not set to a MacOSX SDK with a recognized version. Either set :info:configure CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to :info:configure empty. }}} I don't get this error on my system, OS X 10.8.5, with Xcode 5. What version of Xcode do you have? Are your ports up to date -- have you run "sudo port selfupdate" lately? -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by lord@…): I am running XCode Version 5.0 (5A1413). And yes, I did selfupdate several times today. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Changes (by ryandesign@…): * priority: High => Normal Comment: I'm not sure where cmake records information about what went wrong. Could you attach the file CMakeCache.txt that's in the directory that will be opened in the Finder by running this command in the Terminal: {{{ open $(port work metis)/*/build/* }}} Maybe it will shed some light. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by lord@…): Please find attached. FYI - this is a fresh install of macports. I removed my old macports install and installed from scrarch yesterday. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by lord@…): If there is any other information I could provide to help? -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * port: => metis Comment: There are quite a lot of settings in my CMakeCache.txt that aren't in yours and I'm not sure why. Are you running the same version of cmake as me? I have cmake 2.8.11.2. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by lord@…): I have cmake version 2.8.11.2. {{{ prosody /Users/lord/src/spiral> port info cmake Error: Error: No valid Xcode installation is properly selected. Error: Please use xcode-select to select an Xcode installation: Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 5.0 Error: Warning: xcodebuild exists but failed to execute cmake @2.8.11.2 (devel) Variants: gui, universal Description: An extensible, open-source system that manages the build process in an operating system and compiler independent manner. Unlike many cross- platform systems, CMake is designed to be used in conjunction with the native build environment. Homepage: http://www.cmake.org/ Library Dependencies: libidn, openssl Platforms: darwin, freebsd License: BSD Maintainers: css@macports.org }}} Interestingly running xcode-select as suggested does not make the warning to go away. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by lord@…): I attempted to re-install cmake building it from source code and surprisingly it does not compile! port install -v -s cmake fails. See attached log. Looks like something is broken but I could not figure out why. I have fresh XCode 5 and ports install. Compiler seem to be working... -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by ryandesign@…): What does "`xcodebuild -version`" say? Are your [http://guide.macports.org/chunked/installing.xcode.html#installing.xcode.lio... command line tools up to date] for your version of Xcode? -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by lord@…): I have command line tools installed. {{{ prosody /Users/lord# xcodebuild -version Xcode 5.0 Build version 5A1413 }}} I noticed that xcode-select works only from root: As root: {{{ prosody /Users/lord# xcode-select -print-path /Applications/Xcode.app/Contents/Developer }}} As myself: {{{ prosody /Users/lord> xcode-select -print-path xcode-select: Error: Incorrect permissions for data file at '/usr/share /xcode-select/xcode_dir_link'. Run xcode-select -switch <xcode_folder_path> to reset the path to the Xcode folder. }}} So if part of a build is executed as non-root it might cause problems? However I run port command as root. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by lord@…): Non-root xcode-select problem is solved. Apparently it is not enough to do xcode-selct from command line. One needs to go to XCode preferences, "Locations" tab and select command line tools there. This solves the permission issue: {{{ prosody /Users/lord> xcode-select -print-path /Applications/Xcode.app/Contents/Developer }}} Checking if this solves the compilation problem.... -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by lord@…): I confirm that this solved the issue and now metis compiles OK. Apparently this is a major gotcha with upgrade to XCode 5 and I suggest updating installation [http://guide.macports.org/chunked/installing.xcode.html#installing.xcode.lio... instructions ]web site to reflect this by adding the following text: After installing command line tools, go to XCode preferences, "Locations" tab and select latest command line tools version there. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:14 lord@…]:
Apparently this is a major gotcha with upgrade to XCode 5
Is it? I did not have to make this change when updating from Xcode 4.x to 5. -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ---------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: metis | ---------------------+-------------------------------- Comment (by lord@…): Well, all I can say it happened to me and I found the solution mentioned somewhere on the stackoveflow. Even if it affects small percent of users perhaps it worth mentioning to save them hours of headache... -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#40641: metis build fails ----------------------+-------------------------------- Reporter: lord@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: invalid | Keywords: Port: metis | ----------------------+-------------------------------- Changes (by sean@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/40641#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts