New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #37761 (closed defect: fixed)

Opened 15 months ago

Last modified 5 months ago

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

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

Change History

Changed 15 months ago by mkb-prime@…

build log

comment:1 Changed 15 months ago by macsforever2000@…

  • Port set to octave-audio

In the future, please fill in the Port field.

comment:2 Changed 15 months ago by dlanznar@…

  • Cc dlanznar@… added
Last edited 15 months ago by dlanznar@… (previous) (diff)

comment:3 Changed 13 months 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 5 months ago by michaelld@…

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

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.