[MacPorts] #32327: glib2 @2.30.2 cannot run C compiled programs
#32327: glib2 @2.30.2 cannot run C compiled programs -----------------------------------------+---------------------------------- Reporter: giordano.marcello@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: -----------------------------------------+---------------------------------- I'm trying to compile glib2 on my Macbook pro, Os 10.7.2, Xcode 4.2 The configure stage fails with this error output {{{ checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.30.2': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.30.2" && ./configure --prefix=/opt/local --enable-static --disable-dtrace " returned error 1 Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details) DEBUG: Backtrace: configure failure: shell command failed (see log for details) while executing "$procedure $targetname" Warning: the following items did not execute (for glib2): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Log for glib2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} The config.log is attached -- Ticket URL: <https://trac.macports.org/ticket/32327> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32327: glib2 @2.30.2 cannot run C compiled programs ------------------------------------------+--------------------------------- Reporter: giordano.marcello@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: | ------------------------------------------+--------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: The log shows: {{{ error: /usr/local/include/stdio.h: Permission denied }}} Remove this file and anything else in /usr/local; software installed there often interferes with MacPorts, as it has done in this case, which is why we don't support having software installed there. Once you've removed it, "sudo port clean glib2" and try again. -- Ticket URL: <https://trac.macports.org/ticket/32327#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32327: glib2 @2.30.2 cannot run C compiled programs ------------------------------------------+--------------------------------- Reporter: giordano.marcello@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: | ------------------------------------------+--------------------------------- Comment(by giordano.marcello@…): thank you for pointing this out. turns out that the permission in /usr/local were messed up (700 instead of 755). Once I fixed that everything compiled smoothly, Thanks again! -- Ticket URL: <https://trac.macports.org/ticket/32327#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts