Opened 12 years ago

Closed 11 years ago

#37761 closed defect (fixed)

octave-audio @1.1.4_0 build failure

Reported by: mkb-prime@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: dlanznar@…
Port: octave-audio

Description

I get a build failure when installing octave-audio.

:info:build /opt/local/bin/gcc-mp-4.5 -ObjC -o ../bin/ofsndplay OFSndPlay.cc -framework Cocoa
:info:build error: called from `pkg>configure_make' in file /opt/local/share/octave/3.2.4/m/pkg/pkg.m near line 1253, column 2
:info:build error: called from:
:info:build error:   /opt/local/share/octave/3.2.4/m/pkg/pkg.m at line 714, column 5
:info:build error:   /opt/local/share/octave/3.2.4/m/pkg/pkg.m at line 521, column 3
:info:build error:   /opt/local/share/octave/3.2.4/m/pkg/pkg.m at line 393, column 7
:info:build Command failed: /opt/local/bin/octave -q -f --eval 'pkg build -verbose -nodeps /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave-audio/octave-audio/work/audio-1.1.4 /opt/local/var/macports/distfiles/octave-audio/audio-1.1.4.tar.gz'
:info:build Exit code: 1

(full log attached)

Attachments (1)

main.log (123.3 KB) - added by mkb-prime@… 12 years ago.
build log

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by mkb-prime@…

Attachment: main.log added

build log

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Port: octave-audio added

In the future, please fill in the Port field.

comment:2 Changed 12 years ago by dlanznar@…

Cc: dlanznar@… added
Last edited 12 years ago by dlanznar@… (previous) (diff)

comment:3 Changed 12 years ago by johan.b.gustafsson@…

gcc-mp does not support ObjC. The compilers distributed with Xcode however do (clang, llvm-gcc).

Trying to enforce clang by overriding configure.compiler doesn't help as main.log shows that configure still selected gcc-mp.

$ sudo port install -v octave-audio configure.compiler=clang
...
Error: Processing of port octave-audio failed
$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave-audio/octave-audio/main.log | grep "checking for gcc"
:info:build checking for gcc... /opt/local/bin/gcc-mp-4.7

I installed the octave-audio package manually instead, like this:

mkdir /var/tmp/oct-5kFozQ
cd /var/tmp/oct-5kFozQ/
tar -zxvf /opt/local/var/macports/distfiles/octave-audio/audio-1.1.4.tar.gz
cd audio-1.1.4
./configure
make
make install

Related: when installing octave-devel I managed to make configure use the overriden configure.compiler=clang (according to its main.log), but the build fails. Without overriding configure.compiler configure selects gcc-mp-4.7 which works to build octave-devel. I haven't seen any problems arise yet from compiling octave-devel with gcc-mp-4.7 and octave-audio with clang.

comment:4 Changed 11 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Please do:

sudo port clean octave-audio
sudo port selfupdate

and then try installing it again. Should be fixed with r114034.

Note: See TracTickets for help on using tickets.