Opened 15 years ago

Closed 15 years ago

#24119 closed defect (fixed)

py26-pyqwt 5.2.0 not building

Reported by: andre.david@… Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: py26-pyqwt

Description

With more or less pain all the dependencies went fine, but then I get:

--->  Computing dependencies for py26-pyqwt
DEBUG: Searching for dependency: py26-pyqt4
DEBUG: Found Dependency: receipt exists for py26-pyqt4
DEBUG: Searching for dependency: qwt52
DEBUG: Found Dependency: receipt exists for qwt52
DEBUG: Searching for dependency: py26-numpy
DEBUG: Found Dependency: receipt exists for py26-numpy
DEBUG: Executing org.macports.main (py26-pyqwt)
DEBUG: Skipping completed org.macports.fetch (py26-pyqwt)
DEBUG: Skipping completed org.macports.checksum (py26-pyqwt)
DEBUG: Skipping completed org.macports.extract (py26-pyqwt)
DEBUG: Skipping completed org.macports.patch (py26-pyqwt)
DEBUG: Skipping completed org.macports.configure (py26-pyqwt)
--->  Building py26-pyqwt
DEBUG: Executing org.macports.build (py26-pyqwt)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2'
make: *** No targets specified and no makefile found.  Stop.
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_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2 " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2 " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for py26-pyqwt): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

In fact, in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure there is no Makefile:

$ ls -la /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure
total 52
drwxr-xr-x  5 root admin   170 Aug  2  2009 .
drwxr-xr-x 25 root admin   850 Aug  2  2009 ..
-rw-r--r--  1 root admin  8657 Aug  1  2009 PyQwt.nsi.in
-rw-r--r--  1 root admin   653 Jul 14  2009 configqt.bat
-rwxr-xr-x  1 root admin 36438 Aug  1  2009 configure.py

If I go there and run what's in the Portfile, all goes smoothly:

$ sudo python2.6 ./configure.py -I /opt/local/include -I /opt/local/include/qwt -I /opt/local/include/python2.6 -L /opt/local/lib --disable-numarray --disable-numeric

[...]

Setup the PyQwt build.

Great, run make or nmake to build and install PyQwt.

and there is now a Makefile:

$ ls -la
total 264
drwxr-xr-x  20 root admin    680 Mar 18 23:51 .
drwxr-xr-x  25 root admin    850 Aug  2  2009 ..
-rw-r--r--   1 root admin    196 Mar 18 23:51 Makefile
-rw-r--r--   1 root admin   8608 Mar 18 23:51 PyQwt.nsi
-rw-r--r--   1 root admin   8657 Aug  1  2009 PyQwt.nsi.in
-rw-r--r--   1 root admin    653 Jul 14  2009 configqt.bat
-rwxr-xr-x   1 root admin  36438 Aug  1  2009 configure.py
drwxr-xr-x   6 root admin    204 Mar 18 23:51 iqt5qt4
drwxr-xr-x 128 root admin   4352 Mar 18 23:51 qwt5qt4
-rw-r--r--   1 root admin    144 Mar 18 23:51 qwt_svg_check.cpp
drwxr-xr-x   3 root admin    102 Mar 18 23:50 qwt_version_info.app
-rw-r--r--   1 root admin    575 Mar 18 23:50 qwt_version_info.cpp
-rw-r--r--   1 root admin  10637 Mar 18 23:50 qwt_version_info.mak
-rw-r--r--   1 root admin 160528 Mar 18 23:51 qwt_version_info.o
-rw-r--r--   1 root admin    465 Mar 18 23:50 qwt_version_info.pro
-rw-r--r--   1 root admin     49 Mar 18 23:51 qwt_version_info.py
-rw-r--r--   1 root admin    311 Mar 18 23:51 qwt_version_info.pyc
-rw-r--r--   1 root admin    116 Mar 18 23:50 size_t_check.cpp
drwxr-xr-x   5 root admin    170 Mar 18 23:51 tmp-iqt5qt4
drwxr-xr-x 120 root admin   4080 Mar 18 23:51 tmp-qwt5qt4

From here port build py26-pyqwt works as well as destroot and install.

Change History (9)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to macsforever2000@…

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

Status: newassigned

I am not yet able to replicate this. Can you tell me what version of Mac OS X you are running? What version of Xcode?

What is the output of the following?

port installed py26-pyqt4 qwt52 py26-numpy

comment:3 Changed 15 years ago by mf2k (Frank Schima)

Also, try cleaning and rebuilding from scratch:

sudo port clean py26-pyqwt
sudo port install py26-pyqwt

comment:4 in reply to:  2 Changed 15 years ago by andre.david@…

Replying to macsforever2000@…:

I am not yet able to replicate this. Can you tell me what version of Mac OS X you are running? What version of Xcode?

What is the output of the following?

port installed py26-pyqt4 qwt52 py26-numpy
The following ports are currently installed:
  py26-numpy @1.4.0_0+universal (active)
  py26-pyqt4 @4.7_0+universal
  py26-pyqt4 @4.7.2_0+universal (active)
  qwt52 @5.2.0_2+qt4+universal (active)

I'm on SL 10.6.2 and XCode 3.2.1.

Also, try cleaning and rebuilding from scratch:

 sudo port clean py26-pyqwt
 sudo port install py26-pyqwt

Same banana:

silverbullet:~ adavid$ sudo port clean py26-pyqwt
--->  Cleaning py26-pyqwt
silverbullet:~ adavid$ sudo port install py26-pyqwt
--->  Computing dependencies for py26-pyqwt
--->  Cleaning py26-pyqwt
silverbullet:~ adavid$ sudo port uninstall py26-pyqwt
--->  Deactivating py26-pyqwt @5.2.0_0+universal
--->  Uninstalling py26-pyqwt @5.2.0_0+universal
silverbullet:~ adavid$ sudo port install py26-pyqwt
--->  Computing dependencies for py26-pyqwt
--->  Fetching py26-pyqwt
--->  Verifying checksum(s) for py26-pyqwt
--->  Extracting py26-pyqwt
--->  Configuring py26-pyqwt
--->  Building py26-pyqwt
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_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2 " returned error 2
Command output: make: *** No targets specified and no makefile found.  Stop.

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

You had py26-pyqwt installed and active, why did you uninstall it? Also how did you get it built before?

I have never tried installing it with +universal. I'm not sure how to fix this.

comment:6 in reply to:  5 Changed 15 years ago by andre.david@…

Sorry if my answers are weird, but I am confused by your questions:

Replying to macsforever2000@…:

You had py26-pyqwt installed and active, why did you uninstall it?

I uninstalled it in order to run the install that you asked for...

Also how did you get it built before?

It is all explained at the top of #24119 (this ticket): I configured by hand and then build, destroot and install were happy to oblige.

To me it looks like python2.6 ./configure.py -I /opt/local/include -I /opt/local/include/qwt -I /opt/local/include/python2.6 -L /opt/local/lib --disable-numarray --disable-numeric does not get called properly.

What happens when you run port -d build py26-pyqwt?

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

Sorry, I forgot that you manually fixed it and got it built.

The Makefile gets created and the command runs fine for me.

comment:8 Changed 15 years ago by andre.david@…

I just retried it one more time (cleaning up, etc) and got:

--->  Configuring py26-pyqwt
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing org.macports.configure (py26-pyqwt)
DEBUG: Environment: CFLAGS='-pipe -O2 -arch x86_64 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64 -arch i386' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-pipe -O2' LDFLAGS='-L/opt/local/lib -arch x86_64 -arch i386' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-pipe -O2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64 -arch i386' FFLAGS='-pipe -O2' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure" && /opt/local/bin/python2.6 configure.py -I /opt/local/include -I /opt/local/include/qwt -I /opt/local/include/python2.6 -L /opt/local/lib --disable-numarray --disable-numeric --disable-dependency-tracking'
Usage: python configure.py [options]

Each option takes at most one argument, but some options
accumulate arguments when repeated. For example, invoke:

        python configure.py -I . -I ..

to search the current *and* parent directories for headers.

configure.py: error: no such option: --disable-dependency-tracking
--->  Building py26-pyqwt
DEBUG: Executing org.macports.build (py26-pyqwt)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2'
make: *** No targets specified and no makefile found.  Stop.
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_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2 " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyqwt/work/PyQwt-5.2.0/configure" && /usr/bin/nice -n 10 /usr/bin/make -j2 " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for py26-pyqwt): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Seems like the --disable-dependency-tracking is making configure.py unhappy so on to the Portfile to add

configure.universal_args-delete --disable-dependency-tracking

and now it goes all the way to the end! (I am using +universal)

comment:9 Changed 15 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed

r65401. Thanks for the fix!

Note: See TracTickets for help on using tickets.