New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32720 (closed defect: fixed)

Opened 17 months ago

Last modified 14 months ago

portaudio fails to build on 10.7.2

Reported by: bmcgarvey@… Owned by: hum@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc:
Port: portaudio

Description (last modified by macsforever2000@…) (diff)

Brand new machine, Macbook Air. Lion 10.7.2 patched 12/30/2011 macports installed and selfupdated.

Error

--->  Computing dependencies for gnuradio
--->  Dependencies to be installed: gnuradio-audio-portaudio portaudio gnuradio-gpio gnuradio-gsm-fr-vocoder gnuradio-msdd6000 gnuradio-noaa gnuradio-pager gnuradio-qtgui py26-pyqt4 py26-sip qt4-mac dbus libmng qt4-mac qwtplot3d qwt52 gnuradio-radar-mono gnuradio-radio-astronomy gnuradio-sounder gnuradio-trellis gnuradio-utils gnuradio-video-sdl libsdl
--->  Building portaudio
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install portaudio
Log for portaudio is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/main.log
Error: The following dependencies were not installed: gnuradio-audio-portaudio portaudio gnuradio-gpio gnuradio-gsm-fr-vocoder gnuradio-msdd6000 gnuradio-noaa gnuradio-pager gnuradio-qtgui py26-pyqt4 py26-sip qt4-mac dbus libmng qt4-mac qwtplot3d qwt52 gnuradio-radar-mono gnuradio-radio-astronomy gnuradio-sounder gnuradio-trellis gnuradio-utils gnuradio-video-sdl libsdl
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

from main.log

:notice:build --->  Building portaudio
:debug:build Executing org.macports.build (portaudio)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/work/portaudio" && /usr/bin/make -j4 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/work/portaudio" && /usr/bin/make -j4 -w all
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/work/portaudio'
:info:build /bin/sh ./libtool --mode=compile /Developer/usr/bin/clang -c -std=c99 -O2 -Wall -pedantic -pipe -fPIC -DNDEBUG -DPA_LITTLE_ENDIAN -I./include -I./src/common -I./src/os/unix -Werror -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.4  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/hostapi/coreaudio/pa_mac_core.c -o src/hostapi/coreaudio/pa_mac_core.lo
:info:build if test -n "" ; then for dir in ""; do /usr/bin/make -C $dir all; done ; fi
:info:build libtool: compile:  /Developer/usr/bin/clang -c -std=c99 -O2 -Wall -pedantic -pipe -fPIC -DNDEBUG -DPA_LITTLE_ENDIAN -I./include -I./src/common -I./src/os/unix -Werror -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.4 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/hostapi/coreaudio/pa_mac_core.c  -fno-common -DPIC -o src/hostapi/coreaudio/.libs/pa_mac_core.o
:info:build src/hostapi/coreaudio/pa_mac_core.c:632:34: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror,-Wsizeof-pointer-memaccess]
:info:build     memset(deviceInfo, 0, sizeof(deviceInfo));
:info:build            ~~~~~~~~~~            ^~~~~~~~~~
:info:build 1 error generated.
:info:build make: *** [src/hostapi/coreaudio/pa_mac_core.lo] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/work/portaudio'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/work/portaudio" && /usr/bin/make -j4 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    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 portaudio): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install portaudio
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Log for portaudio is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portaudio/portaudio/main.log

Change History

comment:1 Changed 17 months ago by macsforever2000@…

  • Owner changed from macports-tickets@… to hum@…
  • Summary changed from GnuRadio -- portaudio fails to build on 10.7.2 causing GNUradio to bail to portaudio fails to build on 10.7.2
  • Description modified (diff)
  • Port set to portaudio

comment:2 Changed 17 months ago by ryandesign@…

  • Keywords clang added

Looks like a clang issue; try using a different compiler. Let us know which one works.

comment:3 in reply to: ↑ description Changed 17 months ago by jpriceelvis@…

I just compiled with:

sudo port upgrade portaudio configure.compiler=llvm-gcc-4.2

and the compilation and installation succeeded.

comment:4 Changed 17 months ago by hum@…

  • Status changed from new to closed
  • Resolution set to fixed

I have confirmed the same error with Xcode 4.2.1, although there was no error with Xcode 4.1. I added a patch for the latest clang compiler, and committed in r88638. See also: http://musescore.org/en/node/14304 http://www.mail-archive.com/fink-users@lists.sourceforge.net/msg35193.html

comment:5 follow-up: ↓ 6 Changed 14 months ago by jeremyhu@…

clang was telling you that your code was wrong (in general). It's great that you fixed it for the clang case, but the fix should've been applied in general.

Have you sent this to the portaudio developers upstream?

comment:6 in reply to: ↑ 5 Changed 14 months ago by hum@…

Have you sent this to the portaudio developers upstream?

Thanks for your suggestion! I have sent the patch to the portaudio mailing list.

Note: See TracTickets for help on using tickets.