octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: README.MacOS & 64bit buids [was: Clang!]


From: Ben Abbott
Subject: Re: README.MacOS & 64bit buids [was: Clang!]
Date: Thu, 3 Feb 2011 09:03:34 -0500

On Feb 1, 2011, at 12:36 PM, Richard Campbell wrote:

> octave:2> octave_config_info.CC
> ans = clang
> octave:3> octave_config_info.CXX
> ans = llvm-g++
> octave:4> octave_config_info.FC
> ans = gfortran
> octave:5> octave_config_info.config_opts
> ans = '--disable-docs' '--with-blas=-lBLASWRAP' 'CC=clang' 'CFLAGS=-arch 
> x86_64' 'LDFLAGS=-arch x86_64' 'CPPFLAGS=-arch x86_64 -D_REENTRANT' 
> 'CXX=llvm-g++' 'FFLAGS=-arch x86_64'
> 
> It works! I also tried it with CXX="clang" but it gave a bunch of warnings 
> and then hung during the build. From what I gather, c++ support from Clang is 
> still highly experimental, although six months ago it was completely 
> nonexistent. LLVM is working beautifully though. I might try with 
> llvm-gfortran as well.
> 
> Campbell

Richard,

I noticed the manual build instructions include a description for 64bit 
dependencies and instructions for building 32 bit Octave.

I'd like to split the instructions into sections for both 32bit and 64bit.

I assume that for a 32bit fftw I just need to change ...

        export CFLAGS="-arch i686 -arch x86_64" 

... to ...

        export CFLAGS="-m32"

For a 64bit build of Octave is it sufficient to ...

        export CC="clang"
        export CXX="llvm-g++"
        export FC="/usr/bin/gfortran"
        export CFLAGS="-arch x86_64"
        export FFLAGS="$CFLAGS"
        export CPPFLAGS="-arch x86_64 -D_REENTRANT -D__LISTS__"
        export LDFLAGS="-arch x86_64"
        ./configure --disable-readline --disable-docs

The "-D__LISTS__" option is needed to avoid the FLTK problem mention on the 
list below.

        
https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-February/022708.html

I'f this looks ok to you, I'll modify README.MacOS.

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]