Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13406 (closed defect: duplicate)

Opened 12 months ago

Last modified 7 months ago

BUG: py25-zlib fails to build

Reported by: takanori@… Owned by: mww@…
Priority: Normal Milestone: MacPorts base bugs
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description

I tried to install py25-zlib from scratch but it failed to build. Here is my buildlog:

$ port version
Version: 1.600

$ port installed
No ports are installed.

$ sudo port install py25-zlib
--->  Fetching expat
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
--->  Building expat with target all
--->  Staging expat into destroot
--->  Installing expat 2.0.1_0
--->  Activating expat 2.0.1_0
--->  Cleaning expat
--->  Fetching libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Applying patches to libiconv
--->  Configuring libiconv
--->  Building libiconv with target all
--->  Staging libiconv into destroot
--->  Installing libiconv 1.12_0
--->  Activating libiconv 1.12_0
--->  Cleaning libiconv
--->  Fetching gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext with target all
--->  Staging gettext into destroot
--->  Installing gettext 0.17_1
--->  Activating gettext 0.17_1
--->  Cleaning gettext
--->  Fetching python25
--->  Verifying checksum(s) for python25
--->  Extracting python25
--->  Applying patches to python25
--->  Configuring python25
--->  Building python25 with target all
--->  Staging python25 into destroot
--->  Installing python25 2.5.1_3+darwin_9
--->  Activating python25 2.5.1_3+darwin_9
--->  Cleaning python25
--->  Fetching zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib with target all
--->  Staging zlib into destroot
--->  Installing zlib 1.2.3_1
--->  Activating zlib 1.2.3_1
--->  Cleaning zlib
--->  Fetching py25-zlib
--->  Verifying checksum(s) for py25-zlib
--->  Extracting py25-zlib
--->  Configuring py25-zlib
--->  Building py25-zlib with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-zlib/work/Python-2.5.1/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building 'zlib' extension
creating build
creating build/temp.macosx-10.3-ppc-2.5
-DNDEBUG -D__DARWIN_UNIX03 -I/opt/local/include -I/opt/local/include/python2.5 -c zlibmodule.c -o build/temp.macosx-10.3-ppc-2.5/zlibmodule.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: Status 1 encountered during processing.

This problem only occurs at the first time, so that's odd.

$ port installed
The following ports are currently installed:
  expat @2.0.1_0 (active)
  gettext @0.17_1 (active)
  libiconv @1.12_0 (active)
  python25 @2.5.1_3+darwin_9 (active)
  zlib @1.2.3_1 (active)

$ sudo port install py25-zlib
--->  Building py25-zlib with target build
--->  Staging py25-zlib into destroot
--->  Installing py25-zlib 2.5.1_0
--->  Activating py25-zlib 2.5.1_0
--->  Cleaning py25-zlib

I'm guessing this may be a bug in MacPorts 1.6(-rc2) since this problem does not occur on MacPorts 1.5.2.

Change History

  Changed 12 months ago by mww@…

  • status changed from new to assigned

what version of OS X is this? 10.5? I guess a powerpc?

  Changed 12 months ago by takanori@…

Right. I'm now using Mac OS X 10.5.1/ppc.

  Changed 12 months ago by jmpp@…

  • component changed from ports to base
  • milestone changed from MacPorts 1.6 to MacPorts base bugs

follow-up: ↓ 6   Changed 9 months ago by bcbarnes@…

Any news? I just observed a similar failure on fresh 10.5.2/intel with macports 1.6.0:

--->  Fetching py25-zlib
--->  Verifying checksum(s) for py25-zlib
--->  Extracting py25-zlib
--->  Configuring py25-zlib
--->  Building py25-zlib with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-zlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building 'zlib' extension
creating build
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c zlibmodule.c -o build/temp.macosx-10.3-i386-2.5/zlibmodule.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: The following dependencies failed to build: py25-zlib texlive texlive_base ghostscript perl5.8 texi2html texinfo texlive_texmf-minimal texlive_texmf-full
Error: Status 1 encountered during processing.

  Changed 9 months ago by bcbarnes@…

another comment/solution?: I went into the directory where the command was failing ( /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-zlib/work/Python-2.5.2/Modules ), and re-executed it with a sudo prefix. The command succeeded and the build completed after I tried another port install. I don't know why it failed the first time -- it's as if the first port install lost sudo privileges.

in reply to: ↑ 4   Changed 9 months ago by stdoonline@…

Replying to bcbarnes@gmail.com:

Any news? I just observed a similar failure on fresh 10.5.2/intel with macports 1.6.0:

Same problem here.

  Changed 8 months ago by jmr@…

  • cc mww@… removed

Could be related to #14687?

  Changed 7 months ago by jmr@…

  • status changed from assigned to closed
  • resolution set to duplicate

Duplicate of #13930.

Note: See TracTickets for help on using tickets.