octave-maintainers
[Top][All Lists]
Advanced

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

Re: MXE-Octave build of fftw


From: Anirudha Bose
Subject: Re: MXE-Octave build of fftw
Date: Fri, 28 Jun 2013 16:32:37 -0400


On Fri, Jun 28, 2013 at 12:01 PM, PhilipNienhuis <address@hidden> wrote:
John Donoghue-2 wrote
>>     --enable-sse2  --with-our-malloc compiles ok
>>
>>
>> Still, I think it's worth a report to the FFTW dev team. Ironically,
>> looking at the comments in kalloc.c, it mentions that our-malloc is
>> specifically targeted at the VC++ compiler (though it refers to
>> ancient versions, like VC++6) and the gcc/MinGW should be fine :).
>>
>> Michael.
>>
>
> Just for info, my fedora cross build also fails at the same spot with
> the --enable-sse2 option. I havent tried it yet with the
> --with-our-malloc combination.

Cross-compiling (on Mageia-2) gives me this:

:
kalloc.c: In function 'fftwf_kernel_malloc':
kalloc.c:131:6: error: #error "Don't know how to malloc() aligned memory ...
try configuring --with-our-malloc"
make[4]: *** [kalloc.lo] Error 1


In fftw.mk I have this stanza:


define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        F77=$(MXE_F77) \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --enable-threads \
        --enable-sse2 \
        --with-our-malloc \
        --enable-double && $(CONFIGURE_POST_HOOK)
    $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS=
noinst_PROGRAMS=
    $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS=
noinst_PROGRAMS=


What am I doing wrong here?

Hi Philip. You need to add the configure option --with-our-malloc in all occurrences of ./configure.
So your src/fftw.mk should look like this: http://fpaste.org/21822/24511491/
It worked for me. I am not sure if --with-our-malloc is necessary in the
    if $($(PKG)_HAVE_LONG_DOUBLE); then
section, because I could build fftw without adding it in this segment. It is better to add the option in all the three cases.



Thx,  Philip



--
View this message in context: http://octave.1599824.n4.nabble.com/MXE-Octave-build-of-fftw-tp4654971p4654994.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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