[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling Octave for OSX 10.6.x - feedback
From: |
Julien Salort |
Subject: |
Re: Compiling Octave for OSX 10.6.x - feedback |
Date: |
Mon, 14 Mar 2011 10:20:55 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) |
Rudolf Widmer-Schnidrig <address@hidden> writes:
> I just compiled Octave 3.4.0 on OSX 10.6.6 following the instructions on
> http://hg.savannah.gnu.org/hgweb/octave/file/952e52dda82e/README.MacOS
>
> I used fink to build a 32bit executable.
Hello,
I've tried to compile Octave-3.4.0 on a configuration that is quite
close to yours but I still have some problems. I've used AT&T Research
gfortran on Mac OS X 10.6 (Intel). I have also compiled all the
dependencies using AT&T gfortran to make sure that there is no compiler
mismatch. The configure script runs fine. All libraries are found,
including fltk, gltk, opengl and BLAS (I'm using the BLAS library
provided by Apple). (I have disabled hdf5 however because it failed at
compile time)
The compilation runs fine too and ./run-octave opens a functional octave.
However, I have the following problems:
-> the fltk backend cannot be found, ie. gnuplot is still used...
(I had no warning at the end of the configure script about built-in graphics)
-> I have a segmentation fault when I exit octave
-> make check fails:
% make check
make check-recursive
Making check in libgnu
make check-recursive
make[4]: Nothing to be done for `check-am'.
Making check in libcruft
make[2]: Nothing to be done for `check'.
Making check in liboctave
make check-am
make[3]: Nothing to be done for `check-am'.
Making check in src
make check-am
make[3]: Nothing to be done for `check-am'.
Making check in scripts
making plot/gnuplot_binary.m from plot/gnuplot_binary.in
plot/gnuplot_binary.m is unchanged
Making check in examples
make[2]: Nothing to be done for `check'.
Making check in test
./build_sparse_tests.sh
./build_bc_overload_tests.sh ./bc_overloads_expected
../run-octave --norc --silent --no-history ./fntests.m .
Integrated test scripts:
src/DLD-FUNCTIONS/besselj.cc ........................... PASS 180/180
src/DLD-FUNCTIONS/betainc.cc ........................... PASS 6/6
src/DLD-FUNCTIONS/bsxfun.cc ............................panic:
Segmentation fault -- stopping myself...
make[2]: *** [check] Segmentation fault
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
-> Although, the configure script claims fltk is going to be used,
there is no actual link to it in the generated octave binary:
(I would have guessed it should have a dependency on libfltk.dylib)
% otool -L src/.libs/octave
src/.libs/octave:
/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
(compatibility version 1.0.0, current version 268.0.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/octave-3.4.0/liboctinterp-3.4.0.dylib
(compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/octave-3.4.0/liboctave-3.4.0.dylib
(compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/octave-3.4.0/libcruft-3.4.0.dylib
(compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL
(compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib
(compatibility version 1.0.0, current version 125.2.1)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 15.0.0)
/usr/X11/lib/libfreetype.6.dylib
(compatibility version 13.0.0, current version 13.0.0)
/usr/lib/libz.1.dylib
(compatibility version 1.0.0, current version 1.2.3)
/usr/X11/lib/libfontconfig.1.dylib
(compatibility version 6.0.0, current version 6.3.0)
/usr/X11/lib/libX11.6.dylib
(compatibility version 9.0.0, current version 9.0.0)
/usr/local/lib/libreadline.6.2.dylib
(compatibility version 6.0.0, current version 6.2.0)
/sw/lib/ncurses/libncurses.5.dylib
(compatibility version 5.0.0, current version 5.0.0)
/usr/local/lib/libpcre.0.dylib
(compatibility version 1.0.0, current version 1.1.0)
/usr/local/lib/libgfortran.2.dylib
(compatibility version 3.0.0, current version 3.0.0)
/usr/local/lib/libgcc_s.1.dylib
(compatibility version 1.0.0, current version 1.0.0)
-> For information, here are the options I used:
export OPTFLAGS="-O2 -g"
export PREFIX="/usr/local/bin"
export
PATH=/usr/local/bin:/usr/texbin:/usr/X11R6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/sw/bin
export F77="/usr/local/bin/gfortran"
export CFLAGS="-arch i686 -m32 -I/usr/include -I/usr/local/include
-I/usr/X11/include/fontconfig -I/sw/include"
export FFLAGS="$CFLAGS -ff2c
-I/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/finclude"
export LDFLAGS="-L/usr/X11/lib -L/usr/local/lib
-L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3 -L/sw/lib $CFLAGS"
export CXXFLAGS=$CFLAGS
export CPPFLAGS="$CXXFLAGS -D_THREAD_SAFE -D_REENTRANT -I/sw/include/qhull"
export CC="gcc-4.2"
export CPP="cpp-4.2"
export CXX="g++-4.2"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/sw/lib/pkgconfig"
export MACOSX_DEPLOYMENT_TARGET=10.5
export FLIBS="-lgfortran -lgfortranbegin"
export FFLAGS="-ff2c $OPTFLAGS -m32"
./configure --prefix=/usr/local \
--with-blas="-Wl,-framework -Wl,vecLib" \
--without-hdf5 \
--disable-docs
make
Thanks in advance for any clue you might provide me with,
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on a mailing list?