[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran add
From: |
Ben Abbott |
Subject: |
Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard |
Date: |
Sat, 05 Feb 2011 19:08:59 -0500 |
On Feb 5, 2011, at 6:50 PM, Richard Campbell wrote:
> On Feb 5, 2011, at 5:32 PM, Ben Abbott wrote:
>
>> On Jan 28, 2011, at 2:00 PM, Richard Campbell wrote:
>>
>>> The README.MacOS file needs to be updated to reflect this MUCH smaller list
>>> of critical dependencies (I don't think fftw is even needed, but Octave
>>> wouldn't be very useful to me without it.)
>>>
>>> - gfortran from r.research.att.com/tools
>>> - gnu sed compiled and installed with --prefix=/usr
>>> - fftw3 and fftw3f built as universal binaries (CFLAGS, FFLAGS, LDFLAGS all
>>> set to "-arch i686 -arch x86_64", configure with
>>> --disable-dependency-tracking)
>>>
>>> - octave 3.3.54:
>>> export CFLAGS="-m32"
>>> export FFLAGS="-m32 -ff2c"
>>> export CPPFLAGS="-m32 -D_REENTRANT"
>>> export LDFLAGS="-m32"
>>>
>>> ./configure --disable-readline --disable-docs
>>> make
>>> ./run-octave
>>
>> Richard,
>>
>> I decided to try this on a spare MacBook. With fftw3, I get ...
>>
>> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -m32 -D_REENTRANT
>> -I../libgnu -I../libgnu -I../libcruft/misc -m32 -D_REENTRANT -g -O2
>> -DHAVE_CONFIG_H -mieee-fp -I/usr/X11/include/freetype2 -I/usr/X11/include
>> -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
>> -Wcast-align -Wcast-qual -g -O2 -D_THREAD_SAFE -pthread -g -O2 -MT
>> liboctave_la-cmd-hist.lo -MD -MP -MF .deps/liboctave_la-cmd-hist.Tpo -c
>> cmd-hist.cc -fno-common -DPIC -o .libs/liboctave_la-cmd-hist.o
>> cmd-hist.cc: In member function ‘virtual void
>> command_history::do_process_histcontrol(const std::string&)’:
>> cmd-hist.cc:705: error: ‘HC_ERASEDUPS’ was not declared in this scope
>> cmd-hist.cc:707: error: ‘HC_IGNDUPS’ was not declared in this scope
>> cmd-hist.cc:707: error: ‘HC_IGNSPACE’ was not declared in this scope
>> cmd-hist.cc:709: error: ‘HC_IGNDUPS’ was not declared in this scope
>> cmd-hist.cc:711: error: ‘HC_IGNSPACE’ was not declared in this scope
>> cmd-hist.cc: In member function ‘virtual std::string
>> command_history::do_histcontrol() const’:
>> cmd-hist.cc:731: error: ‘HC_IGNSPACE’ was not declared in this scope
>> cmd-hist.cc:734: error: ‘HC_IGNDUPS’ was not declared in this scope
>> cmd-hist.cc:742: error: ‘HC_ERASEDUPS’ was not declared in this scope
>> make[3]: *** [liboctave_la-cmd-hist.lo] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> Do you have any thoughts on what the problem might be?
>>
>> Ben
>
> That looks like a problem with readline, not fftw. Did you either a) compile
> GNU readline the same as FFTW above, or b) use --disable-readline with
> ./configure for Octave?
>
> Campbell
I'm testing the changes to the README.MacOS file. So I wrote a simple shell
script for the commands below ...
export FC="/usr/bin/gfortran"
export CFLAGS="-m32"
export FFLAGS="$CFLAGS -ff2c"
export CPPFLAGS="$CFLAGS -D_REENTRANT -D__LISTS__"
export LDFLAGS="$CFLAGS"
./configure --disable-readline --disable-docs
make
Ben