Opened 18 years ago

Closed 17 years ago

#9366 closed defect (fixed)

BUG: octave build fails on Macintel

Reported by: michael.g.ross.98@… Owned by: persquare@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

It looks like this is a C++ bug, possibly already solved in Debian (see thread at http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2006-March/001236.html)?

g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CMatrix.cc -o CMatrix.o CMatrix.cc: In function 'ComplexMatrix operator*(const ColumnVector&, const ComplexRowVector&)': CMatrix.cc:2263: error: conversion from 'Complex' to non-scalar type 'ComplexMatrix' requested CMatrix.cc: In function 'ComplexMatrix operator*(const ComplexColumnVector&, const RowVector&)': CMatrix.cc:2270: error: conversion from 'Complex' to non-scalar type 'ComplexMatrix' requested make[2]: * [CMatrix.o] Error 1 make[1]: * [liboctave] Error 2 make: * [all] Error 2

Error: /opt/local/bin/port: Status 1 encountered during processing.

Attachments (2)

portfile.diff (1.0 KB) - added by waterson@… 17 years ago.
changes to the portfile
patch-configure-uglydefs (383 bytes) - added by waterson@… 17 years ago.
patch-configure-uglydefs (used by modified portfile)

Download all attachments as: .zip

Change History (8)

comment:1 Changed 18 years ago by mww@…

Owner: changed from darwinports-bugs@… to persquare@…
Summary: octave build fails on MacintelBUG: octave build fails on Macintel

comment:2 Changed 18 years ago by redstarchs@…

uname: Darwin xxx.xxx.xxx.xxx 8.6.1 Darwin Kernel Version 8.6.1: Tue Mar 7 16:55:45 PST 2006; root:xnu-792.9.22.obj~1/RELEASE_I386 i386 i386

port version: Version: 1.211

octave 2.1.72, Revision 5, math/octave

From the end of configure: Octave is now configured for i386-apple-darwin8.6.1

Source directory: . Installation prefix: /opt/local C compiler: gcc-dp-4.2 -mieee-fp -Wall -W -Wshadow -O2 C++ compiler: g++-dp-4.2 -mieee-fp -Wall -W -Wshadow -O2 Fortran compiler: gfortran-dp-4.2 -O -mieee-fp Fortran libraries: -lgfortran BLAS libraries: -framework Accelerate FFTW libraries: -lfftw3 HDF5 libraries: -lhdf5 -lz MPI libraries: LIBS: -lreadline -lncurses -lhdf5 -lz -lm Default pager: less gnuplot: gnuplot

Do internal array bounds checking: false Build static libraries: false Build shared libraries: true Dynamic Linking: true (dyld) Include support for GNU readline: true

---> Building octave with target all DEBUG: Executing com.apple.build (octave) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_octave/work/octave-2.1.72" && make all'

* *

  • To compile Octave, you will need a recent versions of
  • the following software:

*

  • g++ (3.2.x or a more recent version)

*

  • flex (2.5.4 or a more recent version) -- required if
  • you need to recreate lex.cc from lex.l

*

  • bison (1.31 or a more recent version) -- required if
  • you need to recreate parse.cc from parse.y

*

  • gperf (3.0.1 or a more recent version) -- required if
  • you need to recreate oct-gperf.h from octave.gperf

*

  • Now would be a good time to read INSTALL.OCTAVE if
  • you have not done so already.

* *

I have flex version 2.5.4, GNU Bison version 1.28, GNU gperf 3.0.1 Bison doesn't meet the version requirements stated. I installed Bison 2.2 from DP, but octave still bails out.

g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CColVector.cc -o CColVector.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CDiagMatrix.cc -o CDiagMatrix.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CMatrix.cc -o CMatrix.o CMatrix.cc: In function 'ComplexMatrix operator*(const ColumnVector&, const ComplexRowVector&)': CMatrix.cc:2263: error: conversion from 'Complex' to non-scalar type 'ComplexMatrix' requested CMatrix.cc: In function 'ComplexMatrix operator*(const ComplexColumnVector&, const RowVector&)': CMatrix.cc:2270: error: conversion from 'Complex' to non-scalar type 'ComplexMatrix' requested make[2]: * [CMatrix.o] Error 1 make[1]: * [liboctave] Error 2 make: * [all] Error 2 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_octave/work/octave-2.1.72" && make all" returned error 2 Command output: g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 MDiagArray2.cc -o MDiagArray2.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 base-lu.cc -o base-lu.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 oct-sort.cc -o oct-sort.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-C.cc -o Array-C.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-b.cc -o Array-b.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-ch.cc -o Array-ch.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-i.cc -o Array-i.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-d.cc -o Array-d.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-s.cc -o Array-s.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-so.cc -o Array-so.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-str.cc -o Array-str.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-idx-vec.cc -o Array-idx-vec.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 MArray-C.cc -o MArray-C.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 MArray-ch.cc -o MArray-ch.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 MArray-i.cc -o MArray-i.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 MArray-d.cc -o MArray-d.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 MArray-s.cc -o MArray-s.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 oct-inttypes.cc -o oct-inttypes.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-flags.cc -o Array-flags.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 Array-util.cc -o Array-util.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CColVector.cc -o CColVector.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CDiagMatrix.cc -o CDiagMatrix.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 CMatrix.cc -o CMatrix.o CMatrix.cc: In function 'ComplexMatrix operator*(const ColumnVector&, const ComplexRowVector&)': CMatrix.cc:2263: error: conversion from 'Complex' to non-scalar type 'ComplexMatrix' requested CMatrix.cc: In function 'ComplexMatrix operator*(const ComplexColumnVector&, const RowVector&)': CMatrix.cc:2270: error: conversion from 'Complex' to non-scalar type 'ComplexMatrix' requested make[2]: * [CMatrix.o] Error 1 make[1]: * [liboctave] Error 2 make: * [all] Error 2

Warning: the following items did not execute (for octave): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

comment:3 Changed 18 years ago by m@…

I am pretty sure that has been fixed upstream with 2.1.73, so an update Portfile would resolve this problem. Please see if an update is possible.

comment:4 Changed 18 years ago by redstarchs@…

Different error. Internal compiler error while compiling octave-2.1.73.

gcc-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 strcasecmp.c -o strcasecmp.o gcc-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 strncase.c -o strncase.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 strfns.cc -o strfns.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 symtab.cc -o symtab.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 syscalls.cc -o syscalls.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 sysdep.cc -o sysdep.o sysdep.cc:226: warning: unused parameter 'wait' g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 token.cc -o token.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 toplev.cc -o toplev.o toplev.cc: In function 'octave_value_list Fsystem(const octave_value_list&, int)': toplev.cc:497: warning: missing sentinel in function call toplev.cc: In function 'octave_value_list Foctave_config_info(const octave_value_list&, int)': toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc: At global scope: toplev.cc:921: error: inlined_to pointer is set but no predecesors found virtual Matrix::~Matrix()/5799: (inline copy in void tcf_0()/2054) availability:available(882) 36 insns (74 after inlining) tree externally_visible finalized inlinable

called by: calls: MArray2<T>::~MArray2() [with T = double]/5800 (inlined) void operator delete(void*)/5249

toplev.cc:921: internal compiler error: verify_cgraph_node failed Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[2]: * [toplev.o] Error 1 make[1]: * [src] Error 2 make: * [all] Error 2 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_octave/work/octave-2.1.73" && make all" returned error 2 Command output: g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 syscalls.cc -o syscalls.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 sysdep.cc -o sysdep.o sysdep.cc:226: warning: unused parameter 'wait' g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 token.cc -o token.o g++-dp-4.2 -c -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 toplev.cc -o toplev.o toplev.cc: In function 'octave_value_list Fsystem(const octave_value_list&, int)': toplev.cc:497: warning: missing sentinel in function call toplev.cc: In function 'octave_value_list Foctave_config_info(const octave_value_list&, int)': toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:707: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc:708: error: unknown escape sequence: '\040' toplev.cc: At global scope: toplev.cc:921: error: inlined_to pointer is set but no predecesors found virtual Matrix::~Matrix()/5799: (inline copy in void tcf_0()/2054) availability:available(882) 36 insns (74 after inlining) tree externally_visible finalized inlinable

called by: calls: MArray2<T>::~MArray2() [with T = double]/5800 (inlined) void operator delete(void*)/5249

toplev.cc:921: internal compiler error: verify_cgraph_node failed Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[2]: * [toplev.o] Error 1 make[1]: * [src] Error 2 make: * [all] Error 2

Warning: the following items did not execute (for octave): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

comment:5 Changed 17 years ago by waterson@…

I was able to get octave-2.1.73 to build (with static linking only). I'll attach patches to the Portfile.

Changed 17 years ago by waterson@…

Attachment: portfile.diff added

changes to the portfile

Changed 17 years ago by waterson@…

Attachment: patch-configure-uglydefs added

patch-configure-uglydefs (used by modified portfile)

comment:6 Changed 17 years ago by markd@…

Resolution: fixed
Status: newclosed

Octave is now at 2.2.9 and the gcc problems on Mac Intel are fixed.

Note: See TracTickets for help on using tickets.