Octave on Intel Mac

Anthony Michael Agelastos iqgrande at gmail.com
Sun Feb 25 18:50:05 PST 2007

On Feb 25, 2007, at 8:48 PM, Mark Duling wrote:

> Octave was updated on Saturday at 6:42 AM.  I think if you do a 'port
> selfupdate' that it will work for you.  I just installed it on my  
> MacBook
> and it installed gcc42 automatically and worked fine.
On my MacBook Pro...

macko:~ iqgrande$ sudo port install octave +darwin_8_i386
Portfile changed since last build; discarding previous state.
--->  Fetching octave
--->  Attempting to fetch octave-2.9.9.tar.bz2 from ftp:// 
--->  Verifying checksum(s) for octave
--->  Extracting octave
--->  Applying patches to octave
--->  Configuring octave
--->  Building octave with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/ 
orts_math_octave/work/octave-2.9.9" && make all" returned error 2
Command output: 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 oct-getopt.c -o oct-getopt.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  
randgamma.c -o randgamma.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  
randmtzig.c -o randmtzig.o
randmtzig.c:361: warning: 'randi64' defined but not used
randmtzig.c:378: warning: 'randu32' defined but not used
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  
randpoisson.c -o randpoisson.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  
rename.c -o rename.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  
rmdir.c -o rmdir.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  
strftime.c -o strftime.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  
strptime.c -o strptime.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  
tempname.c -o tempname.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  
tempnam.c -o tempnam.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 -Wold- 
style-cast -O2 cmd-edit.cc -o cmd-edit.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 -Wold- 
style-cast -O2 cmd-hist.cc -o cmd-hist.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  
oct-rl-edit.c -o oct-rl-edit.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  
oct-rl-hist.c -o oct-rl-hist.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 -Wold- 
style-cast -O2 pathsearch.cc -o pathsearch.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  
kpse-xfns.c -o kpse-xfns.o
kpse-xfns.c: In function 'octave_basename':
kpse-xfns.c:62: warning: implicit declaration of function 'basename'
rm -f liboctave.dylib
g++-dp-4.2 -dynamiclib -single_module -L/opt/local/lib -install_name / 
opt/local/lib/octave-2.9.9/liboctave.dylib -o liboctave.dylib \
Bounds.o CollocWt.o DASPK.o DASRT.o DASSL.o FEGrid.o LinConst.o  
LPsolve.o LSODE.o NLEqn.o ODES.o Quad.o Range.o data-conv.o dir-ops.o  
file-ops.o file-stat.o glob-match.o idx-vector.o lo-ieee.o lo- 
mappers.o lo-specfun.o lo-sysdep.o lo-utils.o mach-info.o oct-alloc.o  
oct-env.o oct-fftw.o oct-group.o oct-passwd.o oct-rand.o oct-shlib.o  
oct-spparms.o oct-syscalls.o oct-time.o oct-uname.o prog-args.o so- 
array.o sparse-sort.o sparse-util.o str-vec.o Array.o ArrayN.o  
DiagArray2.o MArray.o MArray2.o MArrayN.o MDiagArray2.o base-lu.o oct- 
sort.o sparse-base-lu.o sparse-base-chol.o sparse-dmsolve.o Array-C.o  
Array-b.o Array-ch.o Array-i.o Array-d.o Array-s.o Array-so.o Array- 
str.o Array-idx-vec.o MArray-C.o MArray-ch.o MArray-i.o MArray-d.o  
MArray-s.o MSparse-C.o MSparse-d.o Sparse-C.o Sparse-b.o Sparse-d.o  
oct-inttypes.o Array-util.o CColVector.o CDiagMatrix.o CMatrix.o  
CNDArray.o CRowVector.o CmplxAEPBAL.o CmplxCHOL.o CmplxDET.o  
CmplxHESS.o CmplxLU.o CmplxQR.o CmplxQRP.o CmplxSCHUR.o CmplxSVD.o  
EIG.o boolMatrix.o boolNDArray.o chMatrix.o chNDArray.o dColVector.o  
dDiagMatrix.o dMatrix.o dNDArray.o dRowVector.o dbleAEPBAL.o  
dbleCHOL.o dbleDET.o dbleHESS.o dbleLU.o dbleQR.o dbleQRP.o  
dbleSCHUR.o dbleSVD.o boolSparse.o CSparse.o dSparse.o MSparse.o  
Sparse.o SparseCmplxLU.o SparsedbleLU.o SparseCmplxCHOL.o  
SparsedbleCHOL.o SparseCmplxQR.o SparseQR.o MatrixType.o  
int8NDArray.o uint8NDArray.o int16NDArray.o uint16NDArray.o  
int32NDArray.o uint32NDArray.o int64NDArray.o uint64NDArray.o  mx-cdm- 
dm.o mx-dm-cdm.o mx-cs-cdm.o mx-cs-dm.o mx-cs-m.o mx-cs-nda.o mx-cdm- 
cs.o mx-cdm-cm.o mx-cdm-m.o mx-cdm-s.o mx-cm-cdm.o mx-cm-dm.o mx-cm- 
m.o mx-cnda-nda.o mx-cm-s.o mx-cnda-s.o mx-dm-cs.o mx-dm-cm.o mx-m- 
cs.o mx-nda-cs.o mx-m-cdm.o mx-m-cm.o mx-nda-cnda.o mx-s-cdm.o mx-s- 
cm.o mx-s-cnda.o mx-dm-m.o mx-dm-s.o mx-m-dm.o mx-s-dm.o mx-s-i8nda.o  
mx-i8nda-s.o mx-s-ui8nda.o mx-ui8nda-s.o mx-s-i16nda.o mx-i16nda-s.o  
mx-s-ui16nda.o mx-ui16nda-s.o mx-s-i32nda.o mx-i32nda-s.o mx-s- 
ui32nda.o mx-ui32nda-s.o mx-s-i64nda.o mx-i64nda-s.o mx-s-ui64nda.o  
mx-ui64nda-s.o mx-nda-i8.o mx-i8-nda.o mx-nda-ui8.o mx-ui8-nda.o mx- 
nda-i16.o mx-i16-nda.o mx-nda-ui16.o mx-ui16-nda.o mx-nda-i32.o mx- 
i32-nda.o mx-nda-ui32.o mx-ui32-nda.o mx-nda-i64.o mx-i64-nda.o mx- 
nda-ui64.o mx-ui64-nda.o mx-nda-i8nda.o mx-i8nda-nda.o mx-nda- 
ui8nda.o mx-ui8nda-nda.o mx-nda-i16nda.o mx-i16nda-nda.o mx-nda- 
ui16nda.o mx-ui16nda-nda.o mx-nda-i32nda.o mx-i32nda-nda.o mx-nda- 
ui32nda.o mx-ui32nda-nda.o mx-nda-i64nda.o mx-i64nda-nda.o mx-nda- 
ui64nda.o mx-ui64nda-nda.o mx-i8nda-ui8.o mx-i8nda-i16.o mx-i8nda- 
ui16.o mx-i8nda-i32.o mx-i8nda-ui32.o mx-i8nda-i64.o mx-i8nda-ui64.o  
mx-i16nda-i8.o mx-i16nda-ui8.o mx-i16nda-ui16.o mx-i16nda-i32.o mx- 
i16nda-ui32.o mx-i16nda-i64.o mx-i16nda-ui64.o mx-i32nda-i8.o mx- 
i32nda-ui8.o mx-i32nda-i16.o mx-i32nda-ui16.o mx-i32nda-ui32.o mx- 
i32nda-i64.o mx-i32nda-ui64.o mx-i64nda-i8.o mx-i64nda-ui8.o mx- 
i64nda-i16.o mx-i64nda-ui16.o mx-i64nda-i32.o mx-i64nda-ui32.o mx- 
i64nda-ui64.o mx-ui8nda-i8.o mx-ui8nda-i16.o mx-ui8nda-ui16.o mx- 
ui8nda-i32.o mx-ui8nda-ui32.o mx-ui8nda-i64.o mx-ui8nda-ui64.o mx- 
ui16nda-i8.o mx-ui16nda-ui8.o mx-ui16nda-i16.o mx-ui16nda-i32.o mx- 
ui16nda-ui32.o mx-ui16nda-i64.o mx-ui16nda-ui64.o mx-ui32nda-i8.o mx- 
ui32nda-ui8.o mx-ui32nda-i16.o mx-ui32nda-ui16.o mx-ui32nda-i32.o mx- 
ui32nda-i64.o mx-ui32nda-ui64.o mx-ui64nda-i8.o mx-ui64nda-ui8.o mx- 
ui64nda-i16.o mx-ui64nda-ui16.o mx-ui64nda-i32.o mx-ui64nda-ui32.o mx- 
ui64nda-i64.o mx-i8-ui8nda.o mx-i8-i16nda.o mx-i8-ui16nda.o mx-i8- 
i32nda.o mx-i8-ui32nda.o mx-i8-i64nda.o mx-i8-ui64nda.o mx-i16- 
i8nda.o mx-i16-ui8nda.o mx-i16-ui16nda.o mx-i16-i32nda.o mx-i16- 
ui32nda.o mx-i16-i64nda.o mx-i16-ui64nda.o mx-i32-i8nda.o mx-i32- 
ui8nda.o mx-i32-i16nda.o mx-i32-ui16nda.o mx-i32-ui32nda.o mx-i32- 
i64nda.o mx-i32-ui64nda.o mx-i64-i8nda.o mx-i64-ui8nda.o mx-i64- 
i16nda.o mx-i64-ui16nda.o mx-i64-i32nda.o mx-i64-ui32nda.o mx-i64- 
ui64nda.o mx-ui8-i8nda.o mx-ui8-i16nda.o mx-ui8-ui16nda.o mx-ui8- 
i32nda.o mx-ui8-ui32nda.o mx-ui8-i64nda.o mx-ui8-ui64nda.o mx-ui16- 
i8nda.o mx-ui16-ui8nda.o mx-ui16-i16nda.o mx-ui16-i32nda.o mx-ui16- 
ui32nda.o mx-ui16-i64nda.o mx-ui16-ui64nda.o mx-ui32-i8nda.o mx-ui32- 
ui8nda.o mx-ui32-i16nda.o mx-ui32-ui16nda.o mx-ui32-i32nda.o mx-ui32- 
i64nda.o mx-ui32-ui64nda.o mx-ui64-i8nda.o mx-ui64-ui8nda.o mx-ui64- 
i16nda.o mx-ui64-ui16nda.o mx-ui64-i32nda.o mx-ui64-ui32nda.o mx-ui64- 
i64nda.o mx-i8nda-ui8nda.o mx-i8nda-i16nda.o mx-i8nda-ui16nda.o mx- 
i8nda-i32nda.o mx-i8nda-ui32nda.o mx-i8nda-i64nda.o mx-i8nda- 
ui64nda.o mx-i16nda-i8nda.o mx-i16nda-ui8nda.o mx-i16nda-ui16nda.o mx- 
i16nda-i32nda.o mx-i16nda-ui32nda.o mx-i16nda-i64nda.o mx-i16nda- 
ui64nda.o mx-i32nda-i8nda.o mx-i32nda-ui8nda.o mx-i32nda-i16nda.o mx- 
i32nda-ui16nda.o mx-i32nda-ui32nda.o mx-i32nda-i64nda.o mx-i32nda- 
ui64nda.o mx-i64nda-i8nda.o mx-i64nda-ui8nda.o mx-i64nda-i16nda.o mx- 
i64nda-ui16nda.o mx-i64nda-i32nda.o mx-i64nda-ui32nda.o mx-i64nda- 
ui64nda.o mx-ui8nda-i8nda.o mx-ui8nda-i16nda.o mx-ui8nda-ui16nda.o mx- 
ui8nda-i32nda.o mx-ui8nda-ui32nda.o mx-ui8nda-i64nda.o mx-ui8nda- 
ui64nda.o mx-ui16nda-i8nda.o mx-ui16nda-ui8nda.o mx-ui16nda-i16nda.o  
mx-ui16nda-i32nda.o mx-ui16nda-ui32nda.o mx-ui16nda-i64nda.o mx- 
ui16nda-ui64nda.o mx-ui32nda-i8nda.o mx-ui32nda-ui8nda.o mx-ui32nda- 
i16nda.o mx-ui32nda-ui16nda.o mx-ui32nda-i32nda.o mx-ui32nda-i64nda.o  
mx-ui32nda-ui64nda.o mx-ui64nda-i8nda.o mx-ui64nda-ui8nda.o mx- 
ui64nda-i16nda.o mx-ui64nda-ui16nda.o mx-ui64nda-i32nda.o mx-ui64nda- 
ui32nda.o mx-ui64nda-i64nda.o vx-ccv-cv.o vx-ccv-s.o vx-crv-rv.o vx- 
crv-s.o vx-cs-cv.o vx-cs-rv.o vx-cv-ccv.o vx-cv-cs.o vx-rv-crv.o vx- 
rv-cs.o vx-s-ccv.o vx-s-crv.o smx-sm-cs.o smx-cs-sm.o smx-scm-s.o smx- 
s-scm.o smx-scm-sm.o smx-sm-scm.o smx-m-sm.o smx-m-scm.o smx-cm-sm.o  
smx-cm-scm.o smx-sm-m.o smx-scm-m.o smx-sm-cm.o smx-scm-cm.o smx-bm- 
sbm.o smx-sbm-bm.o f2c-main.o filemode.o getopt.o getopt1.o lo- 
cieee.o lo-cutils.o mkdir.o oct-getopt.o randgamma.o randmtzig.o  
randpoisson.o rename.o rmdir.o strftime.o strptime.o tempname.o  
tempnam.o cmd-edit.o cmd-hist.o oct-rl-edit.o oct-rl-hist.o  
pathsearch.o kpse-xfns.o -L../libcruft -L.  -lcruft  -lumfpack  -lamd  
-lcolamd -lccolamd -lcxsparse -framework Accelerate -lfftw3 - 
lreadline  -lreadline  -lncurses -lhdf5 -lz -lm  -L/opt/local/lib -L/ 
opt/local/lib/gcc42/gcc/i386-apple-darwin8.8.1/4.2.0 -L/opt/local/lib/ 
gcc42/gcc/i386-apple-darwin8.8.1/4.2.0/../../.. -lhdf5 -lz -lm - 
lgfortranbegin -lgfortran
ld: warning prebinding disabled because dependent library: /opt/local/ 
lib/octave-2.9.9/libcruft.dylib is not prebound
ld: Undefined symbols:
/usr/bin/libtool: internal link edit command failed
make[2]: *** [liboctave.dylib] Error 1
make[1]: *** [liboctave] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

> Mark
> "Jason Merrill" <jason.merrill at yale.edu> on Sunday, February 25,  
> 2007 at
> 5:06 PM -0800 wrote:
>> I'm new to this list and fairly new to macports.  I'm trying to
>> install octave on an intel mac, but I'm having some trouble.  On my
>> first try, the install choked on gcc40.  I did a little poking around
>> and found that gcc40 doesn't play well with intel macs, so I tried
>> installing gcc42 and was eventually successful.  Every time I try to
>> install octave, however, it continues to try and install gcc40, even
>> if I add the +darwin_8_i386 variant explictly:
>> jason-merrills-computer:~ jm843$ sudo port install octave  
>> +darwin_8_i386
>> Password:
>> --->  Building gcc40 with target profiledbootstrap
>> 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_lang_gcc40/work/build"
>> && make profiledbootstrap -j 2" returned error 2
>> Command output: /var/tmp//cc5HeHlk.s:11976:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:11995:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12010:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12025:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12040:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12055:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12070:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12085:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12104:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12119:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12134:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12149:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12164:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12179:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12194:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12209:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12224:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12239:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12254:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12269:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12284:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12299:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12314:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12329:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12351:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12366:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12381:indirect jmp without `*'
>> /var/tmp//cc5HeHlk.s:12396:indirect jmp without `*'
>> make[1]: *** [stageprofile_build] Error 2
>> make: *** [profiledbootstrap] Error 2
>> Error: The following dependencies failed to build: gcc40
>> Error: Status 1 encountered during processing.
>> Any advice would be greatly appreciated.
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users

More information about the macports-users mailing list