#18346 closed defect (fixed)
Aubio build error
Reported by: | thedoobs@… | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: | aubio |
Description (last modified by mf2k (Frank Schima))
The following is the output from running "sudo port upgrade aubio":
---> Fetching aubio ---> Verifying checksum(s) for aubio ---> Extracting aubio ---> Configuring aubio ---> Building aubio Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_aubio/work/aubio-0.3.2" && make all " returned error 2 Command output: aubio_wrap.c:9582: error: syntax error before '*' token aubio_wrap.c:9583: warning: return type defaults to 'int' aubio_wrap.c: In function 'SWIG_globals': aubio_wrap.c:9584: error: nested functions are disabled, use -fnested-functions to re-enable aubio_wrap.c:9584: error: syntax error before '*' token aubio_wrap.c:9585: error: '_SWIG_globals' undeclared (first use in this function) aubio_wrap.c: At top level: aubio_wrap.c:9595: error: syntax error before '*' token aubio_wrap.c: In function 'SWIG_Python_InstallConstants': aubio_wrap.c:9596: error: 'PyObject' undeclared (first use in this function) aubio_wrap.c:9596: error: 'obj' undeclared (first use in this function) aubio_wrap.c:9598: error: 'constants' undeclared (first use in this function) aubio_wrap.c:9611: error: 'd' undeclared (first use in this function) aubio_wrap.c: At top level: aubio_wrap.c:9622: error: syntax error before '*' token aubio_wrap.c: In function 'SWIG_Python_FixMethods': aubio_wrap.c:9627: error: 'methods' undeclared (first use in this function) aubio_wrap.c:9633: error: 'const_table' undeclared (first use in this function) aubio_wrap.c:9641: error: 'types' undeclared (first use in this function) aubio_wrap.c:9642: error: 'types_initial' undeclared (first use in this function) aubio_wrap.c:9645: warning: incompatible implicit declaration of built-in function 'malloc' aubio_wrap.c: In function 'init_aubiowrapper': aubio_wrap.c:9675: error: 'PyObject' undeclared (first use in this function) aubio_wrap.c:9675: error: 'm' undeclared (first use in this function) aubio_wrap.c:9675: error: 'd' undeclared (first use in this function) aubio_wrap.c:9675: warning: left-hand operand of comma expression has no effect aubio_wrap.c:9675: warning: statement with no effect make[2]: *** [aubio_wrap.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 Error: Unable to upgrade port: 1
Change History (8)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | aubio removed |
Owner: | changed from macports-tickets@… to devans@… |
comment:2 Changed 16 years ago by dbevans (David B. Evans)
Status: | new → assigned |
---|
comment:3 Changed 16 years ago by dbevans (David B. Evans)
After updating all dependencies, I was able to make fresh installs of both aubio @0.3.2_1 and aubio @0.3.2_1+python without any problems. Suggest you do the same
sudo port -d selfupdate sudo port clean --all aubio sudo port upgrade aubio
My builds were on tiger ppc with XCode 2.5.
If this doesn't work, please rebuild with the -d option and post the resulting debug output here as an attachment so that I can compare yours with mine. What os version and arch are you using?
comment:4 Changed 16 years ago by thedoobs@…
I tried your suggestion, but still have the problem. I am using OS X 10.5.6, Intel CPU, Macports 1.7.0. I have Gnome and KDE4 installed (except kdegames4 and kdepim4). I had to remove a lot of warnings so it would fit, but here is the debug output from "sudo port -d upgrade aubio":
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/aubio DEBUG: aubio is *not* installed by MacPorts DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/aubio DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port aubio. DEBUG: Requested variant i386 is not provided by port aubio. DEBUG: Requested variant macosx is not provided by port aubio. DEBUG: Searching for dependency: aubio DEBUG: Didn't find receipt, going to depspec regex for: aubio DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/math/fftw-3 DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/fftw-3 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port fftw-3. DEBUG: Requested variant i386 is not provided by port fftw-3. DEBUG: Requested variant macosx is not provided by port fftw-3. DEBUG: Searching for dependency: fftw-3 DEBUG: Found Dependency: receipt exists for fftw-3 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libsamplerate DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libsamplerate DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port libsamplerate. DEBUG: Requested variant i386 is not provided by port libsamplerate. DEBUG: Requested variant macosx is not provided by port libsamplerate. DEBUG: Searching for dependency: libsamplerate DEBUG: Found Dependency: receipt exists for libsamplerate DEBUG: Executing org.macports.main (aubio) ---> Fetching aubio DEBUG: Executing org.macports.fetch (aubio) ---> aubio-0.3.2.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/aubio DEBUG: Pinging aubio.piem.org... DEBUG: Pinging distfiles.macports.org... DEBUG: Pinging trd.no.distfiles.macports.org... DEBUG: Pinging arn.se.distfiles.macports.org... DEBUG: aubio.piem.org ping time is 122.970 DEBUG: distfiles.macports.org ping time is 99.788 DEBUG: trd.no.distfiles.macports.org ping time is 146.159 DEBUG: arn.se.distfiles.macports.org ping time is 128.290 ---> Attempting to fetch aubio-0.3.2.tar.gz from http://distfiles.macports.org/aubio % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 594k 100 594k 0 0 219k 0 0:00:02 0:00:02 --:--:-- 360k ---> Verifying checksum(s) for aubio DEBUG: Executing org.macports.checksum (aubio) ---> Checksumming aubio-0.3.2.tar.gz DEBUG: Correct (md5) checksum for aubio-0.3.2.tar.gz ---> Extracting aubio DEBUG: Executing org.macports.extract (aubio) ---> Extracting aubio-0.3.2.tar.gz DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/aubio/aubio-0.3.2.tar.gz DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_aubio/work" && gzip -dc /opt/local/var/macports/distfiles/aubio/aubio-0.3.2.tar.gz | /usr/bin/gnutar --no-same-owner -xf -' DEBUG: Executing org.macports.patch (aubio) ---> Configuring aubio DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (aubio) DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.5' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2' FFLAGS='-O2' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_aubio/work/aubio-0.3.2" && ./configure --prefix=/opt/local --disable-alsa --disable-jack --disable-lash' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... i386-apple-darwin9.6.0 checking host system type... i386-apple-darwin9.6.0 checking for gcc... /usr/bin/gcc-4.0 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.0 accepts -g... yes checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of /usr/bin/gcc-4.0... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking for -Wextra option to /usr/bin/gcc-4.0... yes checking for a sed that does not truncate output... /opt/local/bin/gsed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by /usr/bin/gcc-4.0... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... /usr/bin/cpp-4.0 checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... yes checking whether /usr/bin/g++-4.0 accepts -g... yes checking dependency style of /usr/bin/g++-4.0... gcc3 checking how to run the C++ preprocessor... /usr/bin/g++-4.0 -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.0 object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if /usr/bin/gcc-4.0 supports -fno-rtti -fno-exceptions... no checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common checking if /usr/bin/gcc-4.0 PIC flag -fno-common works... yes checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by /usr/bin/g++-4.0... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes checking if /usr/bin/g++-4.0 static flag -static works... no checking if /usr/bin/g++-4.0 supports -c -o file.o... yes checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking for library containing strerror... none required checking for pthread_create in -lpthread... yes checking for ANSI C header files... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for unistd.h... (cached) yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking fftw3.h usability... yes checking fftw3.h presence... yes checking for fftw3.h... yes checking complex.h usability... yes checking complex.h presence... yes checking for complex.h... yes checking for C99 __VA_ARGS__ macro... yes checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for SNDLIB... yes checking for SAMPLERATE... yes checking for FFTWLIB... no checking for FFTWLIB... yes checking for swig... /opt/local/bin/swig checking for python... /opt/local/bin/python checking for python version... 2.6 checking for python platform... darwin checking for python script directory... ${prefix}/lib/python2.6/site-packages checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages checking for docbook-to-man... no checking m_pd.h usability... no checking m_pd.h presence... no checking for m_pd.h... no configure: WARNING: Puredata header not found. configure: creating ./config.status config.status: creating aubio.pc config.status: creating Makefile config.status: creating src/Makefile config.status: creating ext/Makefile config.status: creating examples/Makefile config.status: creating examples/tests/Makefile config.status: creating sounds/Makefile config.status: creating swig/Makefile config.status: creating python/Makefile config.status: creating python/aubio/Makefile config.status: creating plugins/Makefile config.status: creating plugins/audacity/Makefile config.status: creating plugins/audacity/plug-ins/Makefile config.status: creating plugins/wavesurfer/Makefile config.status: creating plugins/puredata/Makefile config.status: creating doc/Makefile config.status: creating src/config.h config.status: executing depfiles commands ************************************************************** Summary: Fftw3: yes (not using fftw3f) Libsndfile: yes Libsamplerate: yes JACK: no ALSA midi: no Lash: no PureData: no ************************************************************** Configuration completed successfully. Type 'make' to build aubio ---> Building aubio DEBUG: Executing org.macports.build (aubio) DEBUG: port allows a parallel build DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_aubio/work/aubio-0.3.2" && make all' Making all in src % I removed the compile output for space reasons creating aubioquiet Making all in sounds make[1]: Nothing to be done for `all'. Making all in plugins Making all in wavesurfer make[2]: Nothing to be done for `all'. Making all in audacity Making all in plug-ins make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all-am'. make[2]: Nothing to be done for `all-am'. Making all in python Making all in aubio if /bin/sh ../../libtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../../src -I/opt/local/include -I/opt/local/include -Wall -Wextra -Wno-long-double -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -I../../src -I../../src -I../../ext -I/usr/include/python2.6 -I/opt/local/include/python2.6 -I/usr/include -I/opt/local/include -O2 -MT aubio_wrap.lo -MD -MP -MF ".deps/aubio_wrap.Tpo" -c -o aubio_wrap.lo aubio_wrap.c; \ then mv -f ".deps/aubio_wrap.Tpo" ".deps/aubio_wrap.Plo"; else rm -f ".deps/aubio_wrap.Tpo"; exit 1; fi mkdir .libs /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../../src -I/opt/local/include -I/opt/local/include -Wall -Wextra -Wno-long-double -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -I../../src -I../../src -I../../ext -I/usr/include/python2.6 -I/opt/local/include/python2.6 -I/usr/include -I/opt/local/include -O2 -MT aubio_wrap.lo -MD -MP -MF .deps/aubio_wrap.Tpo -c aubio_wrap.c -fno-common -DPIC -o .libs/aubio_wrap.o aubio_wrap.c:112:20: error: Python.h: No such file or directory aubio_wrap.c:719: error: syntax error before '*' token aubio_wrap.c:720: warning: return type defaults to 'int' aubio_wrap.c: In function 'PyString_FromFormat': aubio_wrap.c:721: error: 'va_list' undeclared (first use in this function) aubio_wrap.c:721: error: (Each undeclared identifier is reported only once aubio_wrap.c:721: error: for each function it appears in.) aubio_wrap.c:721: error: syntax error before 'ap' aubio_wrap.c:724: warning: implicit declaration of function 'va_start' aubio_wrap.c:724: error: 'ap' undeclared (first use in this function) aubio_wrap.c:725: warning: implicit declaration of function 'vsnprintf' aubio_wrap.c:726: warning: implicit declaration of function 'va_end' aubio_wrap.c:727: warning: implicit declaration of function 'PyString_FromString' aubio_wrap.c:727: warning: return makes pointer from integer without a cast aubio_wrap.c: At top level: % I removed a lot of aubio_wrap.c warnings for space reasons. aubio_wrap.c:9675: warning: left-hand operand of comma expression has no effect aubio_wrap.c:9675: warning: statement with no effect make[2]: *** [aubio_wrap.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 Warning: the following items did not execute (for aubio): org.macports.activate org.macports.build org.macports.destroot org.macports.install DEBUG: epoch: in tree: 0 installed: 0 DEBUG: aubio 0.3.2_1 exists in the ports tree DEBUG: aubio 0.3.2_1 is installed DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/math/fftw-3 DEBUG: epoch: in tree: 0 installed: 0 DEBUG: fftw-3 3.2_1 exists in the ports tree DEBUG: fftw-3 3.2_1 is installed DEBUG: No need to upgrade! fftw-3 3.2_1 >= fftw-3 3.2_1 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libsamplerate DEBUG: epoch: in tree: 0 installed: 0 DEBUG: libsamplerate 0.1.6_0 exists in the ports tree DEBUG: libsamplerate 0.1.6_0 is installed DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig DEBUG: epoch: in tree: 0 installed: 0 DEBUG: pkgconfig 0.23_1 exists in the ports tree DEBUG: pkgconfig 0.23_1 is installed DEBUG: No need to upgrade! pkgconfig 0.23_1 >= pkgconfig 0.23_1 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libsndfile DEBUG: epoch: in tree: 0 installed: 0 DEBUG: libsndfile 1.0.17_1 exists in the ports tree DEBUG: libsndfile 1.0.17_1 is installed DEBUG: No need to upgrade! libsndfile 1.0.17_1 >= libsndfile 1.0.17_1 DEBUG: No need to upgrade! libsamplerate 0.1.6_0 >= libsamplerate 0.1.6_0 DEBUG: No need to upgrade! aubio 0.3.2_1 >= aubio 0.3.2_1
comment:5 Changed 16 years ago by blb@…
It looks like it's picking up python 2.6, though the dependencies specify 2.5 for modules; the patch in #18378 may be the right fix.
comment:7 Changed 16 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Am I correct in assuming that you are using the +python variant?