Opened 11 years ago

Closed 11 years ago

#42126 closed defect (invalid)

Mercurial build failure and 'sudo port upgrade outdated' failure on 10.7.5

Reported by: netja000@… Owned by: deric@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: seanfarley (Sean Farley), kevin@…
Port: mercurial swig

Description

I'm using MacBook Pro 10.7.5, Xcode is 4.4, the MacPorts base is 2.2.1.

I was trying to build mercurial but failed. Here's the output of 'sudo port install mercurial' after I 'sudo port clean mercurial'.

--->  Computing dependencies for mercurial
--->  Fetching archive for mercurial
--->  Attempting to fetch mercurial-2.8.1_0.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/mercurial
--->  Attempting to fetch mercurial-2.8.1_0.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mercurial
--->  Attempting to fetch mercurial-2.8.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/mercurial
--->  Fetching distfiles for mercurial
--->  Verifying checksums for mercurial
--->  Extracting mercurial
--->  Applying patches to mercurial
--->  Configuring mercurial
--->  Building mercurial
Error: org.macports.build for port mercurial returned: command execution failed
Please see the log file for port mercurial for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mercurial/mercurial/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mercurial failed

I'll attach the main.log, it seems the urls that the port tried to fetch don't work:

http://lil.fr.packages.macports.org/mercurial

http://mse.uk.packages.macports.org/sites/packages.macports.org/mercurial

http://packages.macports.org/mercurial

Also, when I tried to 'sudo port upgrade outdated', it gave me error messages for the swig:

--->  Computing dependencies for swig
--->  Configuring swig
Error: Failed to configure swig, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_swig/swig/work/swig-2.0.11/config.log
Error: org.macports.configure for port swig returned: configure failure: command execution failed
Please see the log file for port swig for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_swig/swig/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

The main.log shows 'cannot run C compiled programs', although I have Xcode 4.4 installed and license approved.

I put these two error messages together since I'm not sure whether they are related.

Thanks.

Attachments (3)

mercurial_main.log (53.1 KB) - added by netja000@… 11 years ago.
The main.log for the mercurial build
upgrade_main.log (5.7 KB) - added by netja000@… 11 years ago.
The main.log for the 'upgrade outdated'
Screen Shot 2014-01-14 at 11.58.20 AM.png (86.6 KB) - added by netja000@… 11 years ago.
Screenshot of Xcode's preference

Download all attachments as: .zip

Change History (14)

Changed 11 years ago by netja000@…

Attachment: mercurial_main.log added

The main.log for the mercurial build

Changed 11 years ago by netja000@…

Attachment: upgrade_main.log added

The main.log for the 'upgrade outdated'

comment:1 Changed 11 years ago by dbevans (David B. Evans)

Cc: sean@… kevin@… added
Owner: changed from macports-tickets@… to deric@…
Port: mercurial swig added

Please fill in the port field and copy port maintainer(s) when submitting a ticket.

$ port info --maintainer mercurial
maintainer: deric@macports.org, sean@macports.org, openmaintainer@macports.org

$ port info --maintainer swig
maintainer: kevin@macports.org

The configure error with swig does not seem to be related to your mercurial build problem and should probably be reported as a separate ticket for clearer tracking.

comment:2 Changed 11 years ago by mf2k (Frank Schima)

A couple of notes:

  • The latest Xcode for Mac OS X 10.7.5 is version 4.6.3 which you should update to.
  • The error "cannot run C compiled programs" means that the Xcode command lines tools are not (correctly) installed.

I believe that this ticket should be closed as invalid.

comment:3 in reply to:  2 Changed 11 years ago by netja000@…

Replying to macsforever2000@…:

A couple of notes:

  • The latest Xcode for Mac OS X 10.7.5 is version 4.6.3 which you should update to.
  • The error "cannot run C compiled programs" means that the Xcode command lines tools are not (correctly) installed.

I believe that this ticket should be closed as invalid.

Hi,

Thanks for the suggestions!

I just updated my Xcode to 4.6.3 after I submitted the ticket, the command line tools are installed by default, and I restarted everything, but I still have the same issue...

comment:4 Changed 11 years ago by netja000@…

And Xcode 4.6.3 doesn't solve the build failure for mercurial either.

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Replying to netja000@…:

I just updated my Xcode to 4.6.3 after I submitted the ticket, the command line tools are installed by default, and I restarted everything, but I still have the same issue...

The command line tools are *not* installed by default. Please [wiki/ProblemHotlist#clt read the instructions] for how to install them.

Also, did you clean the port before trying again?

comment:6 Changed 11 years ago by netja000@…

Yes, I clean the port before trying again. And the command line tools are installed, since I checked the preference of Xcode. I'll attach the screenshot here.

comment:6 Changed 11 years ago by netja000@…

Yes, I clean the port before trying again. And the command line tools are installed, since I checked the preference of Xcode. I'll attach the screenshot here.

comment:6 Changed 11 years ago by netja000@…

Yes, I clean the port before trying again. And the command line tools are installed, since I checked the preference of Xcode. I'll attach the screenshot here.

Changed 11 years ago by netja000@…

Screenshot of Xcode's preference

comment:7 Changed 11 years ago by mf2k (Frank Schima)

You do not have automatic updates checked. What happens when you press the button "check and install now"?

comment:8 in reply to:  7 Changed 11 years ago by netja000@…

It says 'no updates available'.

comment:9 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.