Fwd: attempt to build on Mac OS 10.6 (Snow Leopard)

Lenore Horner LenoreHorner at sbcglobal.net
Mon Aug 31 19:00:32 PDT 2009


(Forwarding Octave list exchange as they try to figure out why Octave  
won't build except with g95.  The previously said it must be a MP  
fault.)

Begin forwarded message:

> From: Ben Abbott <bpabbott at mac.com>
> Date: August 30, 2009 10:21:49 PM CDT
> To: Joel LeBlanc <jwleblan at gmail.com>
> Cc: octave maintainers mailing list <maintainers at octave.org>, Lenore  
> Horner <lhorner at siue.edu>
> Subject: Re: attempt to build on Mac OS 10.6 (Snow Leopard)
>
>
> On Aug 30, 2009, at 6:10 PM, Joel LeBlanc wrote:
>
>> On Sun, Aug 30, 2009 at 5:03 PM, Ben Abbott <bpabbott at mac.com> wrote:
>> When I attempt to build 3.2.x or the developers sources on Mac OS  
>> 10.6 I encounter the following configure failure.
>>
>>> checking for tputs in -lncurses... no
>>> checking for tputs in -lcurses... no
>>> checking for tputs in -ltermcap... no
>>> checking for tputs in -lterminfo... no
>>> checking for tputs in -ltermlib... no
>>> configure: WARNING: I couldn't find -ltermcap, -lterminfo, - 
>>> lncurses, -lcurses, or -ltermlib!
>>> checking for rl_set_keyboard_input_timeout in -lreadline... no
>>> configure: WARNING: I need GNU Readline 4.2 or later
>>> configure: error: this is fatal unless you specify --disable- 
>>> readline
>>>
>>> find /sw/lib -name libncurses\.\*
>>> /sw/lib/libncurses.5.dylib
>>> /sw/lib/libncurses.dylib
>>> /sw/lib/libncurses.dylib.5
>>> /sw/lib/ncurses/libncurses.5.dylib
>>> /sw/lib/ncurses/libncurses.a
>>> /sw/lib/ncurses/libncurses.dylib
>>> find /sw/lib -name libreadline\.\*
>>> /sw/lib/libreadline.4.2.dylib
>>> /sw/lib/libreadline.4.3.dylib
>>> /sw/lib/libreadline.4.dylib
>>> /sw/lib/libreadline.5.0.dylib
>>> /sw/lib/libreadline.5.dylib
>>> /sw/lib/libreadline.a
>>> /sw/lib/libreadline.dylib
>>>
>>> When I configure 3.0.5 on Mac OS 10.6, I don't see this problem
>>>
>>> checking for tputs in -lncurses... yes
>>> checking for rl_set_keyboard_input_timeout in -lreadline... yes
>>>
>>> The script I used to configure includes the part below, which is  
>>> derived from Octave package from Fink.
>>>
>>> a='--with-lapack=/sw/lib/liblapack.dylib --with-blas=/sw/lib/ 
>>> libf77blas.dylib'
>>> prefix=/sw
>>> FLIBDIR="/sw/lib/gcc4.4/lib"
>>> ./configure FLIBS="${FLIBDIR}/libgfortran.dylib" --prefix=/sw F77=/ 
>>> sw/bin/gfortran --host=i386-apple-darwin --build=i386-apple-darwin  
>>> --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' -- 
>>> libexecdir='${prefix}/lib' --enable-shared --enable-dl --disable- 
>>> static --without-mpi --with-hdf5 --with-fftw CPPFLAGS="-g -I/sw/ 
>>> include -I/sw/include/freetype2" FFLAGS="-g" LDFLAGS="-L/sw/lib/ 
>>> fltk-aqua/lib -L/sw/lib -lGraphicsMagick -lfltk_gl -lfltk - 
>>> lpthread" $a
>>>
>>>
>>> I'm at a loss to determine what I need to do. Anyone have some  
>>> insight here?
>>>
>>> Thanks
>>> Ben
>>
>>
>> I am trying to build right now, but the configure went smooth.   
>> Here is what I used:
>>
>> ./autogen.sh
>>
>> # Apple's vecLib:
>> export blas='--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/ 
>> System/Library/Frameworks/Accelerate.framework/Versions/A/ 
>> Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib:/System/ 
>> Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
>> vecLib.framework/Versions/A/libLAPACK.dylib --with-blas=-Wl,- 
>> framework,Accelerate,-dylib_file,/System/Library/Frameworks/ 
>> Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
>> Versions/A/libBLAS.dylib:/System/Library/Frameworks/ 
>> Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
>> Versions/A/libBLAS.dylib'
>>
>>
>> # Similar to Fink's configure
>> ./configure --prefix=/sw FLIBS=/sw/lib/gcc4.4/lib/libgfortran.dylib  
>> F77=/sw/bin/gfortran CC=gcc-4 CPP=cpp-4 CXX=g++-4 --infodir='$ 
>> {prefix}/share/info' --mandir='${prefix}/share/man' --libexecdir='$ 
>> {prefix}/lib' -enable-shared -enable-dl --disable-static --without- 
>> mpi --with-hdf5 --with-fftw CPPFLAGS="-I/sw/include -I/sw/include/ 
>> freetype2 -I/sw/lib/flex/include" FFLAGS="-ff2c" LDFLAGS="-L/sw/lib/ 
>> fltk-aqua/lib -L/sw/lib/flex/lib -L/sw/lib/gcc4.4/lib/ -L/sw/lib - 
>> lgfortran -lGraphicsMagick -lfltk_gl -lfltk -lpthread" $blas
>>
>> Have you updated your fink yet.  I found that FinkCommander has  
>> issues with 10.6, so you may need to do this from the command  
>> line.  I 1st installed the new XCode (an "additional install").   
>> Then I had to reindex fink (fink index).  I think fink index failed  
>> the first time so I needed to run (fink index -f).  Then I ran fink  
>> reinstall fink, to get fink built under 10.6.  Finally, I ran fink  
>> update fink, to get the latest release.
>>
>> ~Joel
>>
>> P.S. My octave build failed... Haven't looked into it yet.
>
> Thanks Joel. WIth Mac OS 10.6, I now get as far as ...
>
> g++-4 -c -I/sw/include -I/sw/include/freetype2 -I/sw/lib/flex/ 
> include -I/sw/include   -fPIC -I. -I.. -I../liboctave -I../src -I../ 
> libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -I/sw/include/freetype2 -I/ 
> sw/include -I/usr/X11/include   -Wall -W -Wshadow -Wold-style-cast - 
> Wformat -g -O2 -D_THREAD_SAFE  lo-specfun.cc -o pic/lo-specfun.o
> lo-specfun.cc: In function ‘Complex xlgamma(const Complex&)’:
> lo-specfun.cc:327: error: ‘lgamma_r’ was not declared in this scope
> lo-specfun.cc: In function ‘FloatComplex xlgamma(const  
> FloatComplex&)’:
> lo-specfun.cc:394: error: ‘lgammaf_r’ was not declared in this scope
> make[2]: *** [pic/lo-specfun.o] Error 1
> make[1]: *** [liboctave] Error 2
> make: *** [all] Error 2
>
> I see this has happened for MacPorts as well. In that case, the  
> failure occurred prior to the release of Mac OS 10.6
>
> 	http://www.nabble.com/Re%3A-cannot-compile-tt25177426.html#a25177426
>
> My configure reported ...
>
> configure: running /bin/sh ./configure --disable-option-checking '-- 
> prefix=/sw'  'FLIBS=/sw/lib/gcc4.4/lib/libgfortran.dylib' 'F77=/sw/ 
> bin/gfortran' 'CC=gcc-4' 'CPP=cpp-4' 'CXX=g++-4' '--infodir=$ 
> {prefix}/share/info' '--mandir=${prefix}/share/man' '--libexecdir=$ 
> {prefix}/lib' '-enable-shared' '-enable-dl' '--disable-static' '-- 
> without-mpi' '--with-hdf5' '--with-fftw' 'CPPFLAGS=-g -I/sw/include - 
> I/sw/include/freetype2 -I/sw/lib/flex/include' 'FFLAGS=-g -ff2c'  
> 'LDFLAGS=-L/sw/lib/fltk-aqua/lib -L/sw/lib/flex/lib -L/sw/lib/gcc4.4/ 
> lib/ -L/sw/lib -lgfortran -lGraphicsMagick -lfltk_gl -lfltk - 
> lpthread' '--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/ 
> System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
> vecLib.framework/Versions/A/libLAPACK.dylib:/System/Library/ 
> Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
> vecLib.framework/Versions/A/libLAPACK.dylib' '--with-blas=-Wl,- 
> framework,Accelerate,-dylib_file,/System/Library/Frameworks/ 
> Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/ 
> A/libBLAS.dylib:/System/Library/Frameworks/Accelerate.framework/ 
> Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib'  
> 'CFLAGS=-O3' 'CXXFLAGS=-O3' --cache-file=/dev/null --srcdir=.
>
> Ben
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090831/79b3fa26/attachment.html>


More information about the macports-users mailing list