[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: |
Fri, 28 Jan 2011 20:12:48 -0500 |
On Jan 28, 2011, at 8:04 PM, Richard Campbell wrote:
> On Jan 28, 2011, at 7:52 PM, Ben Abbott wrote:
>
>> On Jan 28, 2011, at 6:47 PM, Richard Campbell wrote:
>>
>>> On Jan 28, 2011, at 6:45 PM, Ben Abbott wrote:
>>>
>>>> On Jan 28, 2011, at 6:27 PM, Richard Campbell wrote:
>>>>
>>>>> On Jan 28, 2011, at 6:09 PM, Richard Campbell wrote:
>>>>>
>>>>>> It says 1.10. Would this only matter if you were running autogen.sh? I'm
>>>>>> not.
>>>>>>
>>>>>> Campbell
>>>>>>
>>>>>> On Jan 28, 2011, at 4:23 PM, bpabbott wrote:
>>>>>>
>>>>>>> On Jan 28, 2011, at 02:00 PM, Richard Campbell <address@hidden> 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
>>>>>>>>
>>>>>>>> I still get a cs-list error when I try to print:
>>>>>>>>
>>>>>>>> octave:3> print('-dpng','test.png')
>>>>>>>> warning: print.m: ghostscript not found in EXEC_PATH.
>>>>>>>> warning: print.m: Ghostscript binary is not available.
>>>>>>>> warning: print.m: epstool binary is not available.
>>>>>>>> warning: print.m: fig2dev binary is not available.
>>>>>>>> warning: print.m: pstoedit binary is not available.
>>>>>>>> error: invalid assignment to cs-list outside multiple assignment.
>>>>>>>> error: matrix cannot be indexed with {
>>>>>>>> error: evaluating argument list element number 3
>>>>>>>> error: called from:
>>>>>>>> error: /Users/xnk/Downloads/octave-3.3.54/scripts/plot/print.m at line
>>>>>>>> 377, column 9
>>>>>>>>
>>>>>>>> I will attempt the 64-bit version with the wrapper described
>>>>>>>> elsewhere, but once this cs-list problem is addressed I think this is
>>>>>>>> ready to go in README.MacOS for 32-bit at least.
>>>>>>>>
>>>>>>>> Campbell
>>>>>>>
>>>>>>> Richard,
>>>>>>>
>>>>>>> I was under the impression that automake must be >= 1.11.
>>>>>>>
>>>>>>> What version of automake are you using? The one I have bundled is
>>>>>>> version 1.10.
>>>>>>>
>>>>>>> ---------------------------------------
>>>>>>> $ /usr/bin/automake --version
>>>>>>> automake (GNU automake) 1.10
>>>>>>> Written by Tom Tromey <address@hidden>
>>>>>>> and Alexandre Duret-Lutz <address@hidden>.
>>>>>>>
>>>>>>> Copyright 2006 Free Software Foundation, Inc.
>>>>>>> This is free software; see the source for copying conditions. There is
>>>>>>> NO
>>>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>>>>>> PURPOSE.
>>>>>>> ---------------------------------------
>>>>>>>
>>>>>>> I've cc'd John incase I have my facts wrong.
>>>>>>>
>>>>>>> I've also attached a changeset which reflects your instructions. If it
>>>>>>> looks good to you, I can push it.
>>>>>>>
>>>>>>> Ben
>>>>>>> <changeset.patch>
>>>>>>
>>>>> About your changeset: Make sure you specify that fftw3 and fftw3f have to
>>>>> be built separately. This means an additional make clean && ./configure
>>>>> --enable-float --disable-dependency-tracking && make && sudo make install.
>>>>>
>>>>> Campbell
>>>>
>>>> I'm not confident I understand what you mean.
>>>>
>>>> Should the build process be ...
>>>>
>>>> export CFLAGS="-arch i686 -arch x86_64"
>>>> export FFLAGS="$CFLAGS"
>>>> export LDLAGS="$CFLAGS"
>>>> ./configure --disable-dependency-tracking
>>>> make
>>>> sudo make install
>>>> make clean
>>>> ./configure --enable-float --disable-dependency-tracking
>>>> make
>>>> sudo make install
>>>>
>>>> Ben
>>>>
>>>
>>> Yes.
>>>
>>> fftw builds, for some dumb reason, EITHER fftw3 or fftw3f, but only one at
>>> a time. I assume most prepackaged versions contain both.
>>>
>>> Campbell
>>
>> Ok. Does the result below look ok?
>>
>> http://hg.savannah.gnu.org/hgweb/octave/file/765b15fd3b3d/README.MacOS
>>
>> Ben
>
> You should not have to specify F77="/usr/bin/gfortran". Other than that it
> looks like what I did.
>
> Again, it may actually be possible to build a minimalist octave without FFTW
> at all. I haven't tried, because I need the functionality FFTW provides (both
> from within Octave and for other standline C programs). I would perhaps put
> in a note about how the instructions for building FFTW should generalize to
> building universal binary versions of any and all dependencies which Octave
> wants to incorporate.
>
> Campbell
I added the F77 after doing a test build myself. In my case, g77 was found that
configure failed.
Ben
- Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Richard Campbell, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, bpabbott, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Richard Campbell, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Ben Abbott, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Richard Campbell, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Ben Abbott, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Richard Campbell, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Ben Abbott, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard, Richard Campbell, 2011/01/28
- Re: Successful 32-bit built on OSX with only sed, fftw, and gfortran added to vanilla Snow Leopard,
Ben Abbott <=