Opened 10 years ago

Closed 6 years ago

#41440 closed defect (worksforme)

python27 +universal build fail

Reported by: Serge3leo (Serguei E. Leontiev) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: petrrr
Port: python27

Description

Fail:

$ sudo port self update
$ sudo port build python27 +universal

Attachments (2)

config.log (384.1 KB) - added by Serge3leo (Serguei E. Leontiev) 10 years ago.
main.log (55.4 KB) - added by Serge3leo (Serguei E. Leontiev) 10 years ago.

Download all attachments as: .zip

Change History (9)

Changed 10 years ago by Serge3leo (Serguei E. Leontiev)

Attachment: config.log added

Changed 10 years ago by Serge3leo (Serguei E. Leontiev)

Attachment: main.log added

comment:1 Changed 10 years ago by Serge3leo (Serguei E. Leontiev)

Workaround:

$ sudo port edit python27

Change:

--- /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/python27/Portfile	2013-11-13 01:00:49.000000000 +0400
+++ /tmp/python27-Portfile	2013-11-19 11:05:42.000000000 +0400
@@ -74,7 +76,7 @@
 }
 
 post-configure {
-    reinplace "s;/* #undef PY_FORMAT_LONG_LONG */;#define PY_FORMAT_LONG_LONG \"ll\";" pyconfig.h
+    reinplace "s;/\\* #undef PY_FORMAT_LONG_LONG \\*/;#define PY_FORMAT_LONG_LONG \"ll\";" pyconfig.h
 }
 
 build.target        all
@@ -139,7 +141,7 @@
     if {${configure.sdkroot} != ""} {
         configure.args-append   --enable-universalsdk=${configure.sdkroot}
     } else {
-        configure.args-append   --enable-universalsdk=/
+        configure.args-append   --enable-universalsdk=`xcrun --show-sdk-path`
     }
 }

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

The second hunk of that patch doesn't seem correct; the "if" portion is supposed to address the case when an sdk has been specified (which would only be the case if cross-compiling for a different OS X version, or if building universal on Mac OS X 10.4 on a PowerPC Mac); the "else" portion, for the case when not using an SDK, quite correctly sets the SDK to "/".

comment:3 Changed 10 years ago by ned-deily (Ned Deily)

It looks to me like you didn't install the Command Line Tools on Mavericks as noted in the migration guide https://trac.macports.org/wiki/Migration#OSX10.9Mavericks. If you don't do that, various header files are not installed in their conventional locations. Try running xcode-select --install first, then a clean rebuild of python27 +universal. The configure patch shouldn't be needed.

Version 0, edited 10 years ago by ned-deily (Ned Deily) (next)

comment:4 Changed 9 years ago by petrrr

Cc: jwa@… removed
Owner: changed from macports-tickets@… to jwa@…

This might be invalid due to Command Line Tools. No follow-up by the reporter.

comment:5 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:6 Changed 7 years ago by jmroot (Joshua Root)

Owner: changed from jyrkiwahlstedt to jmroot
Status: newassigned

comment:7 Changed 6 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.