Opened 13 years ago

Closed 12 years ago

#29603 closed defect (invalid)

python27 fails to build due to bad command

Reported by: johnmusbach1@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), cherf@…
Port: python27

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

Running on Mac OS X 10.4.11 x86 with macports v1.9.1. When trying to install the python27 port it fails with the error:

--->  Building python27
Error: Target org.macports.build returned: shell command failed
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log
Error: The following dependencies failed to build: tk Xft2 xrender xorg-libX11 xorg-libxcb python27 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Tailing the log returns:

:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /usr/bin/make -j5 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.0" " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for python27): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log

Trying to run the failed command results in the following erroneous output:

/usr/bin/gcc-4.0 -c -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -arch i386 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include  -DPy_BUILD_CORE -o Python/graminit.o Python/graminit.c
/usr/bin/gcc-4.0 -c -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -arch i386 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include  -DPy_BUILD_CORE -o Python/mactoolboxglue.o Python/mactoolboxglue.c
{standard input}:unknown:FATAL:can't create output file: Python/graminit.o
make: *** [Python/graminit.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from Python/mactoolboxglue.c:27:
Include/pymactoolbox.h:13:33: error: QuickTime/QuickTime.h: No such file or directory
In file included from Python/mactoolboxglue.c:27:
Include/pymactoolbox.h:160: warning: parameter names (without types) in function declaration
Include/pymactoolbox.h:161: error: parse error before 'Track'
Include/pymactoolbox.h:161: warning: function declaration isn't a prototype
Include/pymactoolbox.h:162: warning: parameter names (without types) in function declaration
Include/pymactoolbox.h:163: error: parse error before 'Movie'
Include/pymactoolbox.h:163: warning: function declaration isn't a prototype
Include/pymactoolbox.h:164: warning: parameter names (without types) in function declaration
Include/pymactoolbox.h:165: error: parse error before 'MovieController'
Include/pymactoolbox.h:165: warning: function declaration isn't a prototype
Include/pymactoolbox.h:168: warning: parameter names (without types) in function declaration
Include/pymactoolbox.h:169: error: parse error before 'UserData'
Include/pymactoolbox.h:169: warning: function declaration isn't a prototype
Include/pymactoolbox.h:170: warning: parameter names (without types) in function declaration
Include/pymactoolbox.h:171: error: parse error before 'Media'
Include/pymactoolbox.h:171: warning: function declaration isn't a prototype
Python/mactoolboxglue.c:423: warning: parameter names (without types) in function declaration
Python/mactoolboxglue.c:423: error: parse error before 'cobj'
Python/mactoolboxglue.c:423: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'TrackObj_New':
Python/mactoolboxglue.c:423: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c:423: error: (Each undeclared identifier is reported only once
Python/mactoolboxglue.c:423: error: for each function it appears in.)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:424: error: parse error before 'Track'
Python/mactoolboxglue.c:424: warning: function declaration isn't a prototype
Python/mactoolboxglue.c:424: error: parse error before 'Track'
Python/mactoolboxglue.c:424: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'TrackObj_Convert':
Python/mactoolboxglue.c:424: error: 'pyobj' undeclared (first use in this function)
Python/mactoolboxglue.c:424: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:425: warning: parameter names (without types) in function declaration
Python/mactoolboxglue.c:425: error: parse error before 'cobj'
Python/mactoolboxglue.c:425: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'MovieObj_New':
Python/mactoolboxglue.c:425: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:426: error: parse error before 'Movie'
Python/mactoolboxglue.c:426: warning: function declaration isn't a prototype
Python/mactoolboxglue.c:426: error: parse error before 'Movie'
Python/mactoolboxglue.c:426: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'MovieObj_Convert':
Python/mactoolboxglue.c:426: error: 'pyobj' undeclared (first use in this function)
Python/mactoolboxglue.c:426: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:427: warning: parameter names (without types) in function declaration
Python/mactoolboxglue.c:427: error: parse error before 'cobj'
Python/mactoolboxglue.c:427: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'MovieCtlObj_New':
Python/mactoolboxglue.c:427: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:428: error: parse error before 'MovieController'
Python/mactoolboxglue.c:428: warning: function declaration isn't a prototype
Python/mactoolboxglue.c:428: error: parse error before 'MovieController'
Python/mactoolboxglue.c:428: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'MovieCtlObj_Convert':
Python/mactoolboxglue.c:428: error: 'pyobj' undeclared (first use in this function)
Python/mactoolboxglue.c:428: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:431: warning: parameter names (without types) in function declaration
Python/mactoolboxglue.c:431: error: parse error before 'cobj'
Python/mactoolboxglue.c:431: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'UserDataObj_New':
Python/mactoolboxglue.c:431: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:432: error: parse error before 'UserData'
Python/mactoolboxglue.c:432: warning: function declaration isn't a prototype
Python/mactoolboxglue.c:432: error: parse error before 'UserData'
Python/mactoolboxglue.c:432: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'UserDataObj_Convert':
Python/mactoolboxglue.c:432: error: 'pyobj' undeclared (first use in this function)
Python/mactoolboxglue.c:432: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:433: warning: parameter names (without types) in function declaration
Python/mactoolboxglue.c:433: error: parse error before 'cobj'
Python/mactoolboxglue.c:433: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'MediaObj_New':
Python/mactoolboxglue.c:433: error: 'cobj' undeclared (first use in this function)
Python/mactoolboxglue.c: At top level:
Python/mactoolboxglue.c:434: error: parse error before 'Media'
Python/mactoolboxglue.c:434: warning: function declaration isn't a prototype
Python/mactoolboxglue.c:434: error: parse error before 'Media'
Python/mactoolboxglue.c:434: warning: function declaration isn't a prototype
Python/mactoolboxglue.c: In function 'MediaObj_Convert':
Python/mactoolboxglue.c:434: error: 'pyobj' undeclared (first use in this function)
Python/mactoolboxglue.c:434: error: 'cobj' undeclared (first use in this function)
{standard input}:unknown:FATAL:can't create output file: Python/mactoolboxglue.o
make: *** [Python/mactoolboxglue.o] Error 1

Attachments (1)

main-python27.log (12.6 KB) - added by johnmusbach1@… 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by johnmusbach1@…

Cc: johnmusbach1@… added

Cc Me!

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

Cc: ryandesign@… added; johnmusbach1@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…

Please use WikiFormatting so your posts are legible. Preview before submitting to ensure your formatting is correct. Remember to Cc the port maintainer. As reporter, you do not need to Cc yourself. Please attach the entire main.log file; the snippet you posted doesn't contain any useful information, and the manual run of the failing command might be a different problem entirely, since when you run the command manually, you're probably not setting all the environment variables that MacPorts sets when it builds things.

Changed 13 years ago by johnmusbach1@…

Attachment: main-python27.log added

comment:3 Changed 13 years ago by jmroot (Joshua Root)

FAQ

comment:4 Changed 13 years ago by cherf@…

Cc: cherf@… added

Cc Me!

comment:5 Changed 12 years ago by jmroot (Joshua Root)

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