New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20636 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Octave 3.2.2 build error

Reported by: macsforever2000@… Owned by: alakazam@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: stechert@…, nicos_pavlov@…, LenoreHorner@…, bitmail@…, thorsten.raasch@…, francois@…, faisal.moledina@…
Port: octave

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

Mac OS X 10.5.8 Intel. Xcode 3.1.3.

$ sudo port upgrade octave
--->  Computing dependencies for octave
--->  Fetching octave
--->  Attempting to fetch octave-3.2.2.tar.gz from http://distfiles.macports.org/octave
--->  Attempting to fetch octave-3.2.2.tar.gz from http://arn.se.distfiles.macports.org/octave
--->  Attempting to fetch octave-3.2.2.tar.gz from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/octave
--->  Attempting to fetch octave-3.2.2.tar.gz from ftp://ftp.gnu.org/pub/gnu/octave/
--->  Verifying checksum(s) for octave
--->  Extracting octave
--->  Configuring octave
--->  Building octave
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_math_octave/work/octave-3.2.2" && /usr/bin/make -j8 all " returned error 2
Command output: /usr/bin/make -C misc all
making quit.d from quit.cc
making f77-extern.d from f77-extern.cc
making cquit.d from cquit.c
making lo-error.d from lo-error.c
making f77-fcn.d from f77-fcn.c
mkdir pic
/opt/local/bin/gfortran-mp-4.3 -c -O2 -m32 -mieee-fp -o d1mach.o d1mach.f
making d1mach.def from d1mach.f
making r1mach.def from r1mach.f
/opt/local/bin/gfortran-mp-4.3 -c -O2 -m32 -mieee-fp -o r1mach.o r1mach.f
making i1mach.def from i1mach.f
/opt/local/bin/gfortran-mp-4.3 -c -O2 -m32 -mieee-fp -o i1mach.o i1mach.f
/opt/local/bin/gcc-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I../.. -I../../liboctave -I../../src -I../../libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -O2 -m32 f77-fcn.c -o f77-fcn.o
/opt/local/bin/gcc-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I../.. -I../../liboctave -I../../src -I../../libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -O2 -m32 lo-error.c -o lo-error.o
/opt/local/bin/gcc-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I../.. -I../../liboctave -I../../src -I../../libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -O2 -m32 cquit.c -o cquit.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I../.. -I../../liboctave -I../../src -I../../libcruft/misc  -DHAVE_CONFIG_H   -O2 -arch i386 -I/opt/local/include/freetype2 -I/opt/local/include f77-extern.cc -o f77-extern.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I../.. -I../../liboctave -I../../src -I../../libcruft/misc  -DHAVE_CONFIG_H   -O2 -arch i386 -I/opt/local/include/freetype2 -I/opt/local/include quit.cc -o quit.o
cc1plus: error: unrecognized command line option "-arch"
cc1plus: error: unrecognized command line option "-arch"
make[3]: *** [quit.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [f77-extern.o] Error 1
lo-error.c: In function 'liboctave_warning_with_id':
lo-error.c:107: warning: unused parameter 'id'
f77-fcn.c: In function 'xstopx_':
f77-fcn.c:64: warning: function declared 'noreturn' has a 'return' statement
make[2]: *** [misc] Error 2
make[1]: *** [libcruft] Error 2
make: *** [all] Error 2

Error: Unable to upgrade port: 1

Attachments

LenoreHorner_octavefailure.txt Download (238.5 KB) - added by blb@… 2 years ago.
Log
pjk25-cornell-edu_octavefaillog.txt Download (336.9 KB) - added by pjk25@… 2 years ago.

Change History

  Changed 3 years ago by macsforever2000@…

  • description modified (diff)

  Changed 3 years ago by alakazam@…

  • status changed from new to assigned

  Changed 2 years ago by alakazam@…

Are you using the trunk version of macports ?

  Changed 2 years ago by macsforever2000@…

Yes.

  Changed 2 years ago by nicos_pavlov@…

  • cc nicos_pavlov@… added

Cc Me!

  Changed 2 years ago by LenoreHorner@…

  • cc LenoreHorner@… added

Cc Me!

  Changed 2 years ago by LenoreHorner@…

OS X 10.5.8 Xcode 3.1.2 PPC

I have similar, but not identical error.

--->  Building octave
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_octave/work/octave-3.2.2" && make all " returned error 2
Command output: making DASSL.d from DASSL.cc
making DASRT.d from DASRT.cc
making DASPK.d from DASPK.cc
making CollocWt.d from CollocWt.cc
making oct-locbuf.d from oct-locbuf.cc
mkdir pic
touch stmp-pic
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include oct-locbuf.cc -o oct-locbuf.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include CollocWt.cc -o CollocWt.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include DASPK.cc -o DASPK.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include DASRT.cc -o DASRT.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include DASSL.cc -o DASSL.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include LSODE.cc -o LSODE.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include ODES.cc -o ODES.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include Quad.cc -o Quad.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include Range.cc -o Range.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include data-conv.cc -o data-conv.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include dir-ops.cc -o dir-ops.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include file-ops.cc -o file-ops.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include file-stat.cc -o file-stat.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include glob-match.cc -o glob-match.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include idx-vector.cc -o idx-vector.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include lo-ieee.cc -o lo-ieee.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include lo-mappers.cc -o lo-mappers.o
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include lo-specfun.cc -o lo-specfun.o
lo-specfun.cc: In function 'Complex xlgamma(const Complex&)':
lo-specfun.cc:327: error: 'lgamma_r' was not declared in this scope
make[2]: *** [lo-specfun.o] Error 1
make[1]: *** [liboctave] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

  Changed 2 years ago by bitmail@…

I got the same error(s) when trying to upgrade as LenoreHorner, system is 10.5.8 PPC with XCode 3.1.2 as well.

  Changed 2 years ago by bitmail@…

  • cc bitmail@… added

Cc Me!

  Changed 2 years ago by alakazam@…

Please provide the full debug output of port -d build octave as an attachment to this ticket. Thanks !

  Changed 2 years ago by LenoreHorner@…

for osx 10.5.8, xcode 3.1.3, PowerBook G4

see attachment LenoreHorner_octavefailure.txt.

follow-up: ↓ 13   Changed 2 years ago by alakazam@…

This post is unfortunately unreadable :( Please use the attachment functionality to attach the log file as I suggested in my previous comment. Thanks !

Changed 2 years ago by blb@…

Log

in reply to: ↑ 12   Changed 2 years ago by blb@…

Replying to alakazam@…:

This post is unfortunately unreadable :( Please use the attachment functionality to attach the log file as I suggested in my previous comment. Thanks !

Converted to an attachment, should be easier that way.

  Changed 2 years ago by thorsten.raasch@…

  • cc thorsten.raasch@… added

Cc Me!

follow-up: ↓ 23   Changed 2 years ago by alakazam@…

I have checking for lgamma_r... no when running port -d configure octave while you have yes.

 http://lists.apple.com/archives/Xcode-users/2008/Feb/msg00557.html and  http://lists.apple.com/archives/xcode-users/2008/Mar/msg00078.html are probably related.

-D_REENTRANT should probably be specified when compiling lo-specfun.cc :

/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include lo-specfun.cc -o lo-specfun.o
lo-specfun.cc: In function 'Complex xlgamma(const Complex&)':
lo-specfun.cc:327: error: 'lgamma_r' was not declared in this scope

I suspect this would however be an upstream issue. Lenore, you said you asked about this on the octave mailing lists ? Do you have a link to the conversation or could you provide the relevant bits, in particular specific answers regarding successful compilation of the latest octave on a PPC machine (the best would be to have the same output as you provided, but for a successful build) ? Thanks !

follow-up: ↓ 17   Changed 2 years ago by alakazam@…

BTW, I believe the initial issue reported here, error: unrecognized command line option "-arch", is now fixed.

in reply to: ↑ 16   Changed 2 years ago by stephen@…

Replying to alakazam@…:

BTW, I believe the initial issue reported here, error: unrecognized command line option "-arch", is now fixed.

No, it's not. Freshly updated, I get

$ sudo port -u upgrade --enforce-variants octave
--->  Computing dependencies for octave
--->  Building octave
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_steve_src_MacPorts_dports_math_octave/work/octave-3.2.2" && /usr/bin/make -j1 all " returned error 2
Command output: *  Now would be a good time to read INSTALL.OCTAVE if
*  you have not done so already.
*
***********************************************************

/usr/bin/make -f octMakefile all
/usr/bin/make -C libcruft all
/usr/bin/make -C amos all
warning: run make in parent directory to update libraries
/usr/bin/make -C blas all
warning: run make in parent directory to update libraries
/usr/bin/make -C blas-xtra all
warning: run make in parent directory to update libraries
/usr/bin/make -C daspk all
warning: run make in parent directory to update libraries
/usr/bin/make -C dasrt all
warning: run make in parent directory to update libraries
/usr/bin/make -C dassl all
warning: run make in parent directory to update libraries
/usr/bin/make -C lapack all
warning: run make in parent directory to update libraries
/usr/bin/make -C lapack-xtra all
warning: run make in parent directory to update libraries
/usr/bin/make -C misc all
/opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/MacPorts/include -I. -I../.. -I../../liboctave -I../../src -I../../libcruft/misc  -DHAVE_CONFIG_H   -O2 -arch i386 f77-extern.cc -o f77-extern.o
cc1plus: error: unrecognized command line option "-arch"
make[3]: *** [f77-extern.o] Error 1
make[2]: *** [misc] Error 2
make[1]: *** [libcruft] Error 2
make: *** [all] Error 2

Error: Unable to upgrade port: 1
$

All my ports are up to date with the Subversion trunk, as of an hour or two ago, except for octave and gcc44 (since gcc43, not gcc44, is used for octave, I don't think that should matter).

Mac OS X 10.5.8, MacBook Pro Intel Core Duo, MacPorts from subversion, base rebuilt and reinstalled today.

  Changed 2 years ago by alakazam@…

Could you attach the full output of port -d build octave, as well as post the output of xcodebuild -version ? Thanks !

  Changed 2 years ago by stephen@…

Aaargh. I did a port clean octave, and now it builds OK. Why doesn't port do a clean by default?

FWIW, here is the information for the successful build.

xcodebuild -version

Xcode 3.1.2
Component versions: DevToolsCore-1148.0; DevToolsSupport-1102.0
BuildVersion: 9M2621

octave.log attached (file uploaded, it's pretty long).

  Changed 2 years ago by alakazam@…

Ok, well, nice to know that it works (at least) on Leopard :) Thanks for the upload, that way we can refer to that to try and understand failing compiles.

follow-up: ↓ 22   Changed 2 years ago by stephen@…

Aaargh again. Log was too big (>1MB), and your response blocked my previous response saying so.

OK, no log, unless you ask for it and tell me what I can cut, or that it's worth cutting in half and posting both pieces.

in reply to: ↑ 21   Changed 2 years ago by ram@…

Replying to stephen@…:

Aaargh again. Log was too big (>1MB), and your response blocked my previous response saying so. OK, no log, unless you ask for it and tell me what I can cut, or that it's worth cutting in half and posting both pieces.

You can always compress it.

Changed 2 years ago by pjk25@…

in reply to: ↑ 15 ; follow-up: ↓ 24   Changed 2 years ago by pjk25@…

Replying to alakazam@…:

I have checking for lgamma_r... no when running port -d configure octave while you have yes.  http://lists.apple.com/archives/Xcode-users/2008/Feb/msg00557.html and  http://lists.apple.com/archives/xcode-users/2008/Mar/msg00078.html are probably related. -D_REENTRANT should probably be specified when compiling lo-specfun.cc : {{{ /opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include lo-specfun.cc -o lo-specfun.o lo-specfun.cc: In function 'Complex xlgamma(const Complex&)': lo-specfun.cc:327: error: 'lgamma_r' was not declared in this scope }}} I suspect this would however be an upstream issue. Lenore, you said you asked about this on the octave mailing lists ? Do you have a link to the conversation or could you provide the relevant bits, in particular specific answers regarding successful compilation of the latest octave on a PPC machine (the best would be to have the same output as you provided, but for a successful build) ? Thanks !

I have the same lgamma issue on my G5 running 10.5.8. I have attached my build log.

in reply to: ↑ 23 ; follow-up: ↓ 26   Changed 2 years ago by pjk25@…

Replying to pjk25@…:

Replying to alakazam@…:

I have checking for lgamma_r... no when running port -d configure octave while you have yes.  http://lists.apple.com/archives/Xcode-users/2008/Feb/msg00557.html and  http://lists.apple.com/archives/xcode-users/2008/Mar/msg00078.html are probably related. -D_REENTRANT should probably be specified when compiling lo-specfun.cc : {{{ /opt/local/bin/g++-mp-4.3 -c -I/opt/local/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -Wformat -O2 -I/opt/local/include/freetype2 -I/opt/local/include lo-specfun.cc -o lo-specfun.o lo-specfun.cc: In function 'Complex xlgamma(const Complex&)': lo-specfun.cc:327: error: 'lgamma_r' was not declared in this scope }}} I suspect this would however be an upstream issue. Lenore, you said you asked about this on the octave mailing lists ? Do you have a link to the conversation or could you provide the relevant bits, in particular specific answers regarding successful compilation of the latest octave on a PPC machine (the best would be to have the same output as you provided, but for a successful build) ? Thanks !

I have the same lgamma issue on my G5 running 10.5.8. I have attached my build log.

Manually invoked compilation of the offending lo-specfun.cc with "-D_REENTRANT" as suggested by alakazam, then re-ran port install command with success.

  Changed 2 years ago by francois@…

  • cc francois@… added

Cc Me!

in reply to: ↑ 24   Changed 2 years ago by sebastian@…

Replying to pjk25@…:

Manually invoked compilation of the offending lo-specfun.cc with "-D_REENTRANT" as suggested by alakazam, then re-ran port install command with success.

Same situation here. The original Portfile did not compile on 10.6.1 (Xcode 3.2 and Macport's gcc43). Manually changing lo-specfun.cc as described above helped.

  Changed 2 years ago by faisal.moledina@…

  • cc faisal.moledina@… added

Cc Me!

  Changed 2 years ago by alakazam@…

  • status changed from assigned to closed
  • resolution set to fixed

I've implemented a fix for platform darwin 8 according to the patch jwe (octave's main developer) suggested  on the octave-dev mailing list.

  Changed 2 years ago by alakazam@…

The fix was initially committed in r57897. I then realised it had nothing to do with Tiger. r57898 generalises this patch so that all platforms in which the configure script finds lgamma_r to be present will correctly import it.

Note: See TracTickets for help on using tickets.