[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: builing on OSX 10.8
From: |
Ben Abbott |
Subject: |
Re: builing on OSX 10.8 |
Date: |
Sat, 01 Jun 2013 18:18:16 +0800 |
On Jun 1, 2013, at 5:49 PM, c. wrote:
> Hi,
>
> I'm trying to rebuild the development sources on OSX 10.8 after updating
> dependencies via macports with port upgrade outdated.
>
> I cnfigured with the following options:
>
> ../octave/configure \
> CC=/opt/local/bin/gcc-mp-4.7 \
> CFLAGS="-pipe -O2 -m64" \
> CPPFLAGS="-D_THREAD_SAFE -I/opt/local/include" \
> LDFLAGS="-L/opt/local/lib -m64" \
> CXX=/opt/local/bin/g++-mp-4.7 \
> CXXFLAGS="-pipe -O2 -m64" \
> F77=/opt/local/bin/gfortran-mp-4.7 \
> FFLAGS="-pipe -O2 -m64" \
> LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.1 \
> --with-lapack="-ldotwrp -Wl,-framework -Wl,Accelerate" \
> --with-blas="-ldotwrp -Wl,-framework -Wl,Accelerate" \
> --prefix=/opt/octave/3.7 \
> --enable-gui \
> --enable-jit \
> --disable-java \
> --with-framework-carbon
>
> but the build fails with
>
> libtool: link: /opt/local/bin/g++-mp-4.7 -dynamiclib -o
> .libs/liboctave.1.dylib -Wl,-force_load,array/.libs/libarray.a
> -Wl,-force_load,cruft/.libs/libcruft.a
> -Wl,-force_load,cruft/ranlib/.libs/libranlib.a
> -Wl,-force_load,numeric/.libs/libnumeric.a
> -Wl,-force_load,operators/.libs/liboperators.a
> -Wl,-force_load,system/.libs/libsystem.a -Wl,-force_load,util/.libs/libutil.a
> -Wl,-force_load,../libgnu/.libs/libgnu.a -L/opt/local/lib -lcholmod
> -lumfpack -lsuitesparseconfig -lamd -lcamd -lcolamd -lccolamd -lcxsparse
> /opt/local/lib/libarpack.dylib
> -L/opt/local/lib/gcc47/gcc/x86_64-apple-darwin12/4.7.3
> -L/opt/local/lib/gcc47/gcc/x86_64-apple-darwin12/4.7.3/../../..
> -L/opt/local/lib/gcc47 -lcblas -lf77blas -latlas -lqrupdate
> /opt/local/lib/libfftw3_threads.dylib /opt/local/lib/libfftw3.dylib
> /opt/local/lib/libfftw3f_threads.dylib /opt/local/lib/libfftw3f.dylib
> -ldotwrp -lreadline -lncurses /opt/local/lib/libpcre.dylib -ldl
> /opt/local/lib/gcc47/libgfortran.dylib /opt/local/lib/gcc47/libquadmath.dylib
> -lm -O2 -m64 -pthread -m64 -Wl,-framework -Wl,Accelerate -Wl,-framework
> -Wl,Accelerate -pthread -install_name
> /opt/octave/3.7/lib/octave/3.7.5/liboctave.1.dylib -compatibility_version 2
> -current_version 2.1 -Wl,-single_module
> ld: library not found for -lf77blas
>
> if I remove "-lcblas -lf77blas -latlas" from the latter command the build
> completes correctly.
> Does anyone have an idea why liboctave is being linked to atlas even though
> even though I chose
> to link to accelerate when configuring?
>
> c.
I'm not yet running MacOS 10.8, but, I recently had an exchange of emails with
Michael Dickens who is responsible for maintaining Octave's portfile. Michael
is running MacOS 10.8. He used the attached portile to build Octave 3.6.4.
Since he did some testing of accelerate and atlas, I expect you can find what
you need to build Octave there.
I notice you're using Accelerate
> --with-lapack="-ldotwrp -Wl,-framework -Wl,Accelerate" \
> --with-blas="-ldotwrp -Wl,-framework -Wl,Accelerate" \
However, I recommend you avoid accelerate as a make check will seg-fault. On
MacOS 10.7, I don't get a seg-fault, but do encounter several test failures
(except for tight tolerances, all pass using atlas).
src/DLD-FUNCTIONS/eigs.cc ..............................panic: Segmentation
fault: 11 -- stopping myself...
make[1]: *** [check] Segmentation fault: 11
make: *** [check] Error 2
Ben
octave-devel_new_Portfile
Description: Binary data