fft support on octave

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

fft support on octave

niraj pandey
Hi ,

Could you pls help me how to build octave with fft support. I used the following command to build octave but still getting issue.


octave:1> fft(0:255)

error: fft: support for FFTW was unavailable or disabled when liboctave was built  


./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-shared --with-gui --with-qt --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float --enable-sse --with-fftw3-includedir=/tmp/fftw/include/ --with-fftw3-libdir=/tmp/fftw/lib

Config.log says:   configure:69014: WARNING: FFTW3 library not found.  The slower FFTPACK library will be used instead. 

Thanks
Niraj
Success occurs when opportunity and preparation meet


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056
Dear Niraj,

Still I do not understand why you deploy libraries in the "/tmp"
directory, which is on usual Linux system a volatile TeMPorary
directory.  Can't you use your user's /home/niraj directory for all
libraries instead?  This might be one root of trouble.

Can you describe, how you installed the FFTW3 library on your system?

HTH,
Kai


On 12/13/19 3:14 PM, niraj pandey wrote:

> Hi ,
>
> Could you pls help me how to build octave with fft support. I used the
> following command to build octave but still getting issue.
>
>
> octave:1> fft(0:255)
> error: fft: support for FFTW was unavailable or disabled when liboctave
> was built  
>
>
> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
> --enable-shared --with-gui --with-qt
> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float
> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
> --with-fftw3-libdir=/tmp/fftw/lib
>
> Config.log says:   configure:69014: WARNING: FFTW3 library not found. 
> The slower FFTPACK library will be used instead. 
>
> Thanks
> Niraj
> Success occurs when opportunity and preparation meet
>
>


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
Hello Kai,

I used the following command to install FFTW3.

./configure --prefix=/home/niraj/fftw --enable-float --enable-sse

To install the tool on /tmp area first is just check all the dependencies required by that tool . Once I identify all the dependencies I install the tool on production area through some automated process :)

Thanks
Niraj

On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus <[hidden email]> wrote:
Dear Niraj,

Still I do not understand why you deploy libraries in the "/tmp"
directory, which is on usual Linux system a volatile TeMPorary
directory.  Can't you use your user's /home/niraj directory for all
libraries instead?  This might be one root of trouble.

Can you describe, how you installed the FFTW3 library on your system?

HTH,
Kai


On 12/13/19 3:14 PM, niraj pandey wrote:
> Hi ,
>
> Could you pls help me how to build octave with fft support. I used the
> following command to build octave but still getting issue.
>
>
> octave:1> fft(0:255)
> error: fft: support for FFTW was unavailable or disabled when liboctave
> was built  
>
>
> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
> --enable-shared --with-gui --with-qt
> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float
> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
> --with-fftw3-libdir=/tmp/fftw/lib
>
> Config.log says:   configure:69014: WARNING: FFTW3 library not found. 
> The slower FFTPACK library will be used instead. 
>
> Thanks
> Niraj
> Success occurs when opportunity and preparation meet
>
>


--
Success occurs when opportunity and preparation meet


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056


On 12/13/19 3:48 PM, niraj pandey wrote:

> On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus <[hidden email]>
>> On 12/13/19 3:14 PM, niraj pandey wrote:
>>> Hi ,
>>>
>>> Could you pls help me how to build octave with fft support. I used the
>>> following command to build octave but still getting issue.
>>>
>>>
>>> octave:1> fft(0:255)
>>> error: fft: support for FFTW was unavailable or disabled when liboctave
>>> was built
>>>
>>>
>>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>>> --enable-shared --with-gui --with-qt
>>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float
>>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>>> --with-fftw3-libdir=/tmp/fftw/lib
>>>
>>> Config.log says:   configure:69014: WARNING: FFTW3 library not found.
>>> The slower FFTPACK library will be used instead.
>>>
>>> Thanks
>>> Niraj
>>
>> Dear Niraj,
>>
>> Still I do not understand why you deploy libraries in the "/tmp"
>> directory, which is on usual Linux system a volatile TeMPorary
>> directory.  Can't you use your user's /home/niraj directory for all
>> libraries instead?  This might be one root of trouble.
>>
>> Can you describe, how you installed the FFTW3 library on your system?
>>
>> HTH,
>> Kai
>>
>
> Hello Kai,
>
> I used the following command to install FFTW3.
>
> ./configure --prefix=/home/niraj/fftw --enable-float --enable-sse
>
> To install the tool on /tmp area first is just check all the
> dependencies required by that tool . Once I identify all the
> dependencies I install the tool on production area through some
> automated process :)
>
> Thanks
> Niraj

Can you submit a small portion of config.log around the error

>>> configure:69014: WARNING: FFTW3 library not found.

Usually there is a program which is compiled during ./configure and this
normally contains the compiler output which might be helpful to get to
the root of the trouble.

Best,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056
On 12/13/19 5:39 PM, niraj pandey wrote:> On Fri, Dec 13, 2019 at 1:19
PM Kai Torben Ohlhus <[hidden email]

> <mailto:[hidden email]>> wrote:
>
>
>
>     On 12/13/19 3:48 PM, niraj pandey wrote:
>     > On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus
>     <[hidden email] <mailto:[hidden email]>>
>     >> On 12/13/19 3:14 PM, niraj pandey wrote:
>     >>> Hi ,
>     >>>
>     >>> Could you pls help me how to build octave with fft support. I
>     used the
>     >>> following command to build octave but still getting issue.
>     >>>
>     >>>
>     >>> octave:1> fft(0:255)
>     >>> error: fft: support for FFTW was unavailable or disabled when
>     liboctave
>     >>> was built
>     >>>
>     >>>
>     >>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>     >>> --enable-shared --with-gui --with-qt
>     >>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>     >>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float
>     >>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>     >>> --with-fftw3-libdir=/tmp/fftw/lib
>     >>>
>     >>> Config.log says:   configure:69014: WARNING: FFTW3 library not
>     found.
>     >>> The slower FFTPACK library will be used instead.
>     >>>
>     >>> Thanks
>     >>> Niraj
>     >>
>     >> Dear Niraj,
>     >>
>     >> Still I do not understand why you deploy libraries in the "/tmp"
>     >> directory, which is on usual Linux system a volatile TeMPorary
>     >> directory.  Can't you use your user's /home/niraj directory for all
>     >> libraries instead?  This might be one root of trouble.
>     >>
>     >> Can you describe, how you installed the FFTW3 library on your system?
>     >>
>     >> HTH,
>     >> Kai
>     >>
>     >
>     > Hello Kai,
>     >
>     > I used the following command to install FFTW3.
>     >
>     > ./configure --prefix=/home/niraj/fftw --enable-float --enable-sse
>     >
>     > To install the tool on /tmp area first is just check all the
>     > dependencies required by that tool . Once I identify all the
>     > dependencies I install the tool on production area through some
>     > automated process :)
>     >
>     > Thanks
>     > Niraj
>
>     Can you submit a small portion of config.log around the error
>
>     >>> configure:69014: WARNING: FFTW3 library not found.
>
>     Usually there is a program which is compiled during ./configure and this
>     normally contains the compiler output which might be helpful to get to
>     the root of the trouble.
>
>     Best,
>     Kai
>
>
> Hi Kai,
>
> PFA config.log files for fftw and octave .
>
> Thanks
> Niraj
>


Please always answer below the text.  The interesting portion is this:

$ ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
--enable-shared --with-gui --with-qt
--with-blas=common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
--with-lapack=common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a
--enable-float --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
--with-fftw3-libdir=/tmp/fftw/lib

configure:68911: $? = 1
configure:68936: checking fftw3.h usability
configure:68936: gcc -std=gnu11 -c -fPIC -pthread -fopenmp
-I/tmp/fftw/include/  conftest.c >&5
configure:68936: $? = 0
configure:68936: result: yes
configure:68936: checking fftw3.h presence
configure:68936: gcc -std=gnu11 -E -I/tmp/fftw/include/  conftest.c
configure:68936: $? = 0
configure:68936: result: yes
configure:68936: checking for fftw3.h
configure:68936: result: yes
configure:68947: checking for fftw_plan_dft_1d in -lfftw3
configure:68978: gcc -std=gnu11 -o conftest -fPIC -pthread -fopenmp
-I/tmp/fftw/include/  -L/tmp/fftw/lib -L/tmp/fftw/lib
-Wl,-rpath=/tmp/fftw/lib conftest.c -lfftw3  -lm  >&5
/usr/bin/ld: cannot find -lfftw3
collect2: error: ld returned 1 exit status
configure:68978: $? = 1

Is there in `/tmp/fftw/lib` some `libfftw3.so` or is it in
`/tmp/fftw/lib64`?

HTH,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey


On Fri, Dec 13, 2019 at 2:22 PM Kai Torben Ohlhus <[hidden email]> wrote:
On 12/13/19 5:39 PM, niraj pandey wrote:> On Fri, Dec 13, 2019 at 1:19
PM Kai Torben Ohlhus <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>
>     On 12/13/19 3:48 PM, niraj pandey wrote:
>     > On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus
>     <[hidden email] <mailto:[hidden email]>>
>     >> On 12/13/19 3:14 PM, niraj pandey wrote:
>     >>> Hi ,
>     >>>
>     >>> Could you pls help me how to build octave with fft support. I
>     used the
>     >>> following command to build octave but still getting issue.
>     >>>
>     >>>
>     >>> octave:1> fft(0:255)
>     >>> error: fft: support for FFTW was unavailable or disabled when
>     liboctave
>     >>> was built
>     >>>
>     >>>
>     >>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>     >>> --enable-shared --with-gui --with-qt
>     >>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>     >>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float
>     >>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>     >>> --with-fftw3-libdir=/tmp/fftw/lib
>     >>>
>     >>> Config.log says:   configure:69014: WARNING: FFTW3 library not
>     found.
>     >>> The slower FFTPACK library will be used instead.
>     >>>
>     >>> Thanks
>     >>> Niraj
>     >>
>     >> Dear Niraj,
>     >>
>     >> Still I do not understand why you deploy libraries in the "/tmp"
>     >> directory, which is on usual Linux system a volatile TeMPorary
>     >> directory.  Can't you use your user's /home/niraj directory for all
>     >> libraries instead?  This might be one root of trouble.
>     >>
>     >> Can you describe, how you installed the FFTW3 library on your system?
>     >>
>     >> HTH,
>     >> Kai
>     >>
>     >
>     > Hello Kai,
>     >
>     > I used the following command to install FFTW3.
>     >
>     > ./configure --prefix=/home/niraj/fftw --enable-float --enable-sse
>     >
>     > To install the tool on /tmp area first is just check all the
>     > dependencies required by that tool . Once I identify all the
>     > dependencies I install the tool on production area through some
>     > automated process :)
>     >
>     > Thanks
>     > Niraj
>
>     Can you submit a small portion of config.log around the error
>
>     >>> configure:69014: WARNING: FFTW3 library not found.
>
>     Usually there is a program which is compiled during ./configure and this
>     normally contains the compiler output which might be helpful to get to
>     the root of the trouble.
>
>     Best,
>     Kai
>
>
> Hi Kai,
>
> PFA config.log files for fftw and octave .
>
> Thanks
> Niraj
>


Please always answer below the text.  The interesting portion is this:

$ ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
--enable-shared --with-gui --with-qt
--with-blas=common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
--with-lapack=common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a
--enable-float --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
--with-fftw3-libdir=/tmp/fftw/lib

configure:68911: $? = 1
configure:68936: checking fftw3.h usability
configure:68936: gcc -std=gnu11 -c -fPIC -pthread -fopenmp
-I/tmp/fftw/include/  conftest.c >&5
configure:68936: $? = 0
configure:68936: result: yes
configure:68936: checking fftw3.h presence
configure:68936: gcc -std=gnu11 -E -I/tmp/fftw/include/  conftest.c
configure:68936: $? = 0
configure:68936: result: yes
configure:68936: checking for fftw3.h
configure:68936: result: yes
configure:68947: checking for fftw_plan_dft_1d in -lfftw3
configure:68978: gcc -std=gnu11 -o conftest -fPIC -pthread -fopenmp
-I/tmp/fftw/include/  -L/tmp/fftw/lib -L/tmp/fftw/lib
-Wl,-rpath=/tmp/fftw/lib conftest.c -lfftw3  -lm  >&5
/usr/bin/ld: cannot find -lfftw3
collect2: error: ld returned 1 exit status
configure:68978: $? = 1

Is there in `/tmp/fftw/lib` some `libfftw3.so` or is it in
`/tmp/fftw/lib64`?

HTH,
Kai


I do not see any libfftw3.so library there. Instead of that I found "libfftw3f.so" under lib.

Thanks
Niraj
--
Success occurs when opportunity and preparation meet


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
Sharing logs zip file here.

Thanks
Niraj

On Fri, Dec 13, 2019 at 4:45 PM niraj pandey <[hidden email]> wrote:


On Fri, Dec 13, 2019 at 2:22 PM Kai Torben Ohlhus <[hidden email]> wrote:
On 12/13/19 5:39 PM, niraj pandey wrote:> On Fri, Dec 13, 2019 at 1:19
PM Kai Torben Ohlhus <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>
>     On 12/13/19 3:48 PM, niraj pandey wrote:
>     > On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus
>     <[hidden email] <mailto:[hidden email]>>
>     >> On 12/13/19 3:14 PM, niraj pandey wrote:
>     >>> Hi ,
>     >>>
>     >>> Could you pls help me how to build octave with fft support. I
>     used the
>     >>> following command to build octave but still getting issue.
>     >>>
>     >>>
>     >>> octave:1> fft(0:255)
>     >>> error: fft: support for FFTW was unavailable or disabled when
>     liboctave
>     >>> was built
>     >>>
>     >>>
>     >>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>     >>> --enable-shared --with-gui --with-qt
>     >>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>     >>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a --enable-float
>     >>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>     >>> --with-fftw3-libdir=/tmp/fftw/lib
>     >>>
>     >>> Config.log says:   configure:69014: WARNING: FFTW3 library not
>     found.
>     >>> The slower FFTPACK library will be used instead.
>     >>>
>     >>> Thanks
>     >>> Niraj
>     >>
>     >> Dear Niraj,
>     >>
>     >> Still I do not understand why you deploy libraries in the "/tmp"
>     >> directory, which is on usual Linux system a volatile TeMPorary
>     >> directory.  Can't you use your user's /home/niraj directory for all
>     >> libraries instead?  This might be one root of trouble.
>     >>
>     >> Can you describe, how you installed the FFTW3 library on your system?
>     >>
>     >> HTH,
>     >> Kai
>     >>
>     >
>     > Hello Kai,
>     >
>     > I used the following command to install FFTW3.
>     >
>     > ./configure --prefix=/home/niraj/fftw --enable-float --enable-sse
>     >
>     > To install the tool on /tmp area first is just check all the
>     > dependencies required by that tool . Once I identify all the
>     > dependencies I install the tool on production area through some
>     > automated process :)
>     >
>     > Thanks
>     > Niraj
>
>     Can you submit a small portion of config.log around the error
>
>     >>> configure:69014: WARNING: FFTW3 library not found.
>
>     Usually there is a program which is compiled during ./configure and this
>     normally contains the compiler output which might be helpful to get to
>     the root of the trouble.
>
>     Best,
>     Kai
>
>
> Hi Kai,
>
> PFA config.log files for fftw and octave .
>
> Thanks
> Niraj
>


Please always answer below the text.  The interesting portion is this:

$ ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
--enable-shared --with-gui --with-qt
--with-blas=common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
--with-lapack=common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a
--enable-float --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
--with-fftw3-libdir=/tmp/fftw/lib

configure:68911: $? = 1
configure:68936: checking fftw3.h usability
configure:68936: gcc -std=gnu11 -c -fPIC -pthread -fopenmp
-I/tmp/fftw/include/  conftest.c >&5
configure:68936: $? = 0
configure:68936: result: yes
configure:68936: checking fftw3.h presence
configure:68936: gcc -std=gnu11 -E -I/tmp/fftw/include/  conftest.c
configure:68936: $? = 0
configure:68936: result: yes
configure:68936: checking for fftw3.h
configure:68936: result: yes
configure:68947: checking for fftw_plan_dft_1d in -lfftw3
configure:68978: gcc -std=gnu11 -o conftest -fPIC -pthread -fopenmp
-I/tmp/fftw/include/  -L/tmp/fftw/lib -L/tmp/fftw/lib
-Wl,-rpath=/tmp/fftw/lib conftest.c -lfftw3  -lm  >&5
/usr/bin/ld: cannot find -lfftw3
collect2: error: ld returned 1 exit status
configure:68978: $? = 1

Is there in `/tmp/fftw/lib` some `libfftw3.so` or is it in
`/tmp/fftw/lib64`?

HTH,
Kai


I do not see any libfftw3.so library there. Instead of that I found "libfftw3f.so" under lib.

Thanks
Niraj
--
Success occurs when opportunity and preparation meet


--
Success occurs when opportunity and preparation meet



log.zip (271K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056


On 12/14/19 1:24 AM, niraj pandey wrote:

> On Fri, Dec 13, 2019 at 4:45 PM niraj pandey <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>
>     On Fri, Dec 13, 2019 at 2:22 PM Kai Torben Ohlhus
>     <[hidden email] <mailto:[hidden email]>> wrote:
>
>         On 12/13/19 5:39 PM, niraj pandey wrote:> On Fri, Dec 13, 2019
>         at 1:19
>         PM Kai Torben Ohlhus <[hidden email] <mailto:[hidden email]>
>         > <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>         >
>         >
>         >
>         >     On 12/13/19 3:48 PM, niraj pandey wrote:
>         >     > On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus
>         >     <[hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>>
>         >     >> On 12/13/19 3:14 PM, niraj pandey wrote:
>         >     >>> Hi ,
>         >     >>>
>         >     >>> Could you pls help me how to build octave with fft
>         support. I
>         >     used the
>         >     >>> following command to build octave but still getting issue.
>         >     >>>
>         >     >>>
>         >     >>> octave:1> fft(0:255)
>         >     >>> error: fft: support for FFTW was unavailable or
>         disabled when
>         >     liboctave
>         >     >>> was built
>         >     >>>
>         >     >>>
>         >     >>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC
>         CXXFLAGS=-fPIC
>         >     >>> --enable-shared --with-gui --with-qt
>         >     >>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>         >     >>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a
>         --enable-float
>         >     >>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>         >     >>> --with-fftw3-libdir=/tmp/fftw/lib
>         >     >>>
>         >     >>> Config.log says:   configure:69014: WARNING: FFTW3
>         library not
>         >     found.
>         >     >>> The slower FFTPACK library will be used instead.
>         >     >>>
>         >     >>> Thanks
>         >     >>> Niraj
>         >     >>
>         >     >> Dear Niraj,
>         >     >>
>         >     >> Still I do not understand why you deploy libraries in
>         the "/tmp"
>         >     >> directory, which is on usual Linux system a volatile
>         TeMPorary
>         >     >> directory.  Can't you use your user's /home/niraj
>         directory for all
>         >     >> libraries instead?  This might be one root of trouble.
>         >     >>
>         >     >> Can you describe, how you installed the FFTW3 library
>         on your system?
>         >     >>
>         >     >> HTH,
>         >     >> Kai
>         >     >>
>         >     >
>         >     > Hello Kai,
>         >     >
>         >     > I used the following command to install FFTW3.
>         >     >
>         >     > ./configure --prefix=/home/niraj/fftw --enable-float
>         --enable-sse
>         >     >
>         >     > To install the tool on /tmp area first is just check all the
>         >     > dependencies required by that tool . Once I identify all the
>         >     > dependencies I install the tool on production area
>         through some
>         >     > automated process :)
>         >     >
>         >     > Thanks
>         >     > Niraj
>         >
>         >     Can you submit a small portion of config.log around the error
>         >
>         >     >>> configure:69014: WARNING: FFTW3 library not found.
>         >
>         >     Usually there is a program which is compiled during
>         ./configure and this
>         >     normally contains the compiler output which might be
>         helpful to get to
>         >     the root of the trouble.
>         >
>         >     Best,
>         >     Kai
>         >
>         >
>         > Hi Kai,
>         >
>         > PFA config.log files for fftw and octave .
>         >
>         > Thanks
>         > Niraj
>         >
>
>
>         Please always answer below the text.  The interesting portion is
>         this:
>
>         $ ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>         --enable-shared --with-gui --with-qt
>         --with-blas=common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>         --with-lapack=common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a
>         --enable-float --enable-sse
>         --with-fftw3-includedir=/tmp/fftw/include/
>         --with-fftw3-libdir=/tmp/fftw/lib
>
>         configure:68911: $? = 1
>         configure:68936: checking fftw3.h usability
>         configure:68936: gcc -std=gnu11 -c -fPIC -pthread -fopenmp
>         -I/tmp/fftw/include/  conftest.c >&5
>         configure:68936: $? = 0
>         configure:68936: result: yes
>         configure:68936: checking fftw3.h presence
>         configure:68936: gcc -std=gnu11 -E -I/tmp/fftw/include/  conftest.c
>         configure:68936: $? = 0
>         configure:68936: result: yes
>         configure:68936: checking for fftw3.h
>         configure:68936: result: yes
>         configure:68947: checking for fftw_plan_dft_1d in -lfftw3
>         configure:68978: gcc -std=gnu11 -o conftest -fPIC -pthread -fopenmp
>         -I/tmp/fftw/include/  -L/tmp/fftw/lib -L/tmp/fftw/lib
>         -Wl,-rpath=/tmp/fftw/lib conftest.c -lfftw3  -lm  >&5
>         /usr/bin/ld: cannot find -lfftw3
>         collect2: error: ld returned 1 exit status
>         configure:68978: $? = 1
>
>         Is there in `/tmp/fftw/lib` some `libfftw3.so` or is it in
>         `/tmp/fftw/lib64`?
>
>         HTH,
>         Kai
>
>
>
>     I do not see any libfftw3.so library there. Instead of that I found
>     "libfftw3f.so" under lib.
>
>     Thanks
>     Niraj
>
>
> Sharing logs zip file here.
>
> Thanks
> Niraj
>


When reading the configure script of fftw

   ./configure --help
       [...]
       --enable-shared[=PKGS]  build shared libraries [default=no]
       [...]
       --enable-single         compile fftw in single precision
       --enable-float          synonym for --enable-single
       --enable-long-double    compile fftw in long-double precision
       [...]

you should change your configure flags to:

   ./configure --prefix=/tmp/fftw --enable-shared \
      --enable-float --enable-long-double --enable-sse

HTH,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
This give me the following error.

./configure --prefix=/home/niraj/fftw --enable-shared --enable-float --enable-long-double --enable-sse
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
configure: error: --enable-single/--enable-long-double conflict

After that I tried with the following option and build fftw.

  /configure --prefix=/home/niraj/fftw --enable-shared --enable-long-double   

But now when I configure octave it says:

configure:68908: $PKG_CONFIG --exists --print-errors "fftw3"
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fftw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fftw3' found

I found inly fftw3l.pc only in lib dir.

[niraj@vlsj-ctrh7dev octave-5.1.0]$ ls -lrt /home/niraj/fftw/lib/pkgconfig/
total 4
-rw-r--r-- 1 niraj cadence1 242 Dec 17 03:46 fftw3l.pc
[niraj@vlsj-ctrh7dev octave-5.1.0]$

Attaching log file here

Thanks
Niraj

On Sun, Dec 15, 2019 at 6:58 AM Kai Torben Ohlhus <[hidden email]> wrote:


On 12/14/19 1:24 AM, niraj pandey wrote:
> On Fri, Dec 13, 2019 at 4:45 PM niraj pandey <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>
>     On Fri, Dec 13, 2019 at 2:22 PM Kai Torben Ohlhus
>     <[hidden email] <mailto:[hidden email]>> wrote:
>
>         On 12/13/19 5:39 PM, niraj pandey wrote:> On Fri, Dec 13, 2019
>         at 1:19
>         PM Kai Torben Ohlhus <[hidden email] <mailto:[hidden email]>
>         > <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>         >
>         >
>         >
>         >     On 12/13/19 3:48 PM, niraj pandey wrote:
>         >     > On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus
>         >     <[hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>>
>         >     >> On 12/13/19 3:14 PM, niraj pandey wrote:
>         >     >>> Hi ,
>         >     >>>
>         >     >>> Could you pls help me how to build octave with fft
>         support. I
>         >     used the
>         >     >>> following command to build octave but still getting issue.
>         >     >>>
>         >     >>>
>         >     >>> octave:1> fft(0:255)
>         >     >>> error: fft: support for FFTW was unavailable or
>         disabled when
>         >     liboctave
>         >     >>> was built
>         >     >>>
>         >     >>>
>         >     >>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC
>         CXXFLAGS=-fPIC
>         >     >>> --enable-shared --with-gui --with-qt
>         >     >>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>         >     >>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a
>         --enable-float
>         >     >>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>         >     >>> --with-fftw3-libdir=/tmp/fftw/lib
>         >     >>>
>         >     >>> Config.log says:   configure:69014: WARNING: FFTW3
>         library not
>         >     found.
>         >     >>> The slower FFTPACK library will be used instead.
>         >     >>>
>         >     >>> Thanks
>         >     >>> Niraj
>         >     >>
>         >     >> Dear Niraj,
>         >     >>
>         >     >> Still I do not understand why you deploy libraries in
>         the "/tmp"
>         >     >> directory, which is on usual Linux system a volatile
>         TeMPorary
>         >     >> directory.  Can't you use your user's /home/niraj
>         directory for all
>         >     >> libraries instead?  This might be one root of trouble.
>         >     >>
>         >     >> Can you describe, how you installed the FFTW3 library
>         on your system?
>         >     >>
>         >     >> HTH,
>         >     >> Kai
>         >     >>
>         >     >
>         >     > Hello Kai,
>         >     >
>         >     > I used the following command to install FFTW3.
>         >     >
>         >     > ./configure --prefix=/home/niraj/fftw --enable-float
>         --enable-sse
>         >     >
>         >     > To install the tool on /tmp area first is just check all the
>         >     > dependencies required by that tool . Once I identify all the
>         >     > dependencies I install the tool on production area
>         through some
>         >     > automated process :)
>         >     >
>         >     > Thanks
>         >     > Niraj
>         >
>         >     Can you submit a small portion of config.log around the error
>         >
>         >     >>> configure:69014: WARNING: FFTW3 library not found.
>         >
>         >     Usually there is a program which is compiled during
>         ./configure and this
>         >     normally contains the compiler output which might be
>         helpful to get to
>         >     the root of the trouble.
>         >
>         >     Best,
>         >     Kai
>         >
>         >
>         > Hi Kai,
>         >
>         > PFA config.log files for fftw and octave .
>         >
>         > Thanks
>         > Niraj
>         >
>
>
>         Please always answer below the text.  The interesting portion is
>         this:
>
>         $ ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>         --enable-shared --with-gui --with-qt
>         --with-blas=common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>         --with-lapack=common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a
>         --enable-float --enable-sse
>         --with-fftw3-includedir=/tmp/fftw/include/
>         --with-fftw3-libdir=/tmp/fftw/lib
>
>         configure:68911: $? = 1
>         configure:68936: checking fftw3.h usability
>         configure:68936: gcc -std=gnu11 -c -fPIC -pthread -fopenmp
>         -I/tmp/fftw/include/  conftest.c >&5
>         configure:68936: $? = 0
>         configure:68936: result: yes
>         configure:68936: checking fftw3.h presence
>         configure:68936: gcc -std=gnu11 -E -I/tmp/fftw/include/  conftest.c
>         configure:68936: $? = 0
>         configure:68936: result: yes
>         configure:68936: checking for fftw3.h
>         configure:68936: result: yes
>         configure:68947: checking for fftw_plan_dft_1d in -lfftw3
>         configure:68978: gcc -std=gnu11 -o conftest -fPIC -pthread -fopenmp
>         -I/tmp/fftw/include/  -L/tmp/fftw/lib -L/tmp/fftw/lib
>         -Wl,-rpath=/tmp/fftw/lib conftest.c -lfftw3  -lm  >&5
>         /usr/bin/ld: cannot find -lfftw3
>         collect2: error: ld returned 1 exit status
>         configure:68978: $? = 1
>
>         Is there in `/tmp/fftw/lib` some `libfftw3.so` or is it in
>         `/tmp/fftw/lib64`?
>
>         HTH,
>         Kai
>
>
>
>     I do not see any libfftw3.so library there. Instead of that I found
>     "libfftw3f.so" under lib.
>
>     Thanks
>     Niraj
>
>
> Sharing logs zip file here.
>
> Thanks
> Niraj
>


When reading the configure script of fftw

   ./configure --help
       [...]
       --enable-shared[=PKGS]  build shared libraries [default=no]
       [...]
       --enable-single         compile fftw in single precision
       --enable-float          synonym for --enable-single
       --enable-long-double    compile fftw in long-double precision
       [...]

you should change your configure flags to:

   ./configure --prefix=/tmp/fftw --enable-shared \
      --enable-float --enable-long-double --enable-sse

HTH,
Kai


--
Success occurs when opportunity and preparation meet



new_log.zip (270K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

Mike Miller-4
On Tue, Dec 17, 2019 at 17:40:50 +0530, niraj pandey wrote:

> This give me the following error.
>
> ./configure --prefix=/home/niraj/fftw --enable-shared --enable-float
> --enable-long-double --enable-sse
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> configure: error: --enable-single/--enable-long-double conflict
>
> After that I tried with the following option and build fftw.
>
>   /configure --prefix=/home/niraj/fftw --enable-shared
> --enable-long-double
You have to build and install FFTW twice with separate sets of configure
options for single and double precision floating point. For example,

    ./configure --prefix=/home/user/fftw --enable-shared
    make all
    make install
    make distclean
    ./configure --prefix=/home/user/fftw --enable-shared --enable-single
    make all
    make install

Both builds can be safely installed in the same --prefix option.

--
mike



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
Now during make (on octave code) I am getting the following error.

 make
preserving existing HG-ID file
Makefile:30458: *** multiple target patterns.  Stop.

Thanks
Niraj

On Thu, Dec 19, 2019 at 8:20 AM Mike Miller <[hidden email]> wrote:
On Tue, Dec 17, 2019 at 17:40:50 +0530, niraj pandey wrote:
> This give me the following error.
>
> ./configure --prefix=/home/niraj/fftw --enable-shared --enable-float
> --enable-long-double --enable-sse
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> configure: error: --enable-single/--enable-long-double conflict
>
> After that I tried with the following option and build fftw.
>
>   /configure --prefix=/home/niraj/fftw --enable-shared
> --enable-long-double

You have to build and install FFTW twice with separate sets of configure
options for single and double precision floating point. For example,

    ./configure --prefix=/home/user/fftw --enable-shared
    make all
    make install
    make distclean
    ./configure --prefix=/home/user/fftw --enable-shared --enable-single
    make all
    make install

Both builds can be safely installed in the same --prefix option.

--
mike


--
Success occurs when opportunity and preparation meet



config.zip (237K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056
On 12/23/19 2:56 PM, niraj pandey wrote:
> Now during make (on octave code) I am getting the following error.
>
>  make
> preserving existing HG-ID file
> Makefile:30458: *** multiple target patterns.  Stop.
>
> Thanks
> Niraj
>

In your attachment, there is your config.log, which I assume was
successful?  Can you attach your Makefile instead?

In general I suggest you simply start over with a fresh Octave build
directory.  Maybe after many configuration attempts things just got
cluttered.  Regarding your configure options:

   ./configure --prefix=/home/niraj/octa \
     CFLAGS=-fPIC \
     CXXFLAGS=-fPIC \
     --enable-shared \
     --with-gui \
     --with-qt \
     --with-blas=/common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a \
     --with-lapack=/common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a \
     --enable-float \
     --enable-sse \
     --disable-dependency-tracking \
     --with-fftw3-includedir=/home/niraj/fftw/include/ \
     --with-fftw3-libdir=/home/niraj/fftw/lib \
     --with-fftw3f-includedir=/home/niraj/fftw/include \
     --with-fftw3f-libdir=/home/niraj/fftw/lib

Please notice, that some of them are useless:

   configure:83068: WARNING: unrecognized options:
      --with-gui, --enable-float, --enable-sse

HTH,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
Yes I tried with a fresh source code.
PFA Makefile.

Thanks
Niraj


On Tue, Dec 24, 2019 at 8:04 AM Kai Torben Ohlhus <[hidden email]> wrote:
On 12/23/19 2:56 PM, niraj pandey wrote:
> Now during make (on octave code) I am getting the following error.
>
>  make
> preserving existing HG-ID file
> Makefile:30458: *** multiple target patterns.  Stop.
>
> Thanks
> Niraj
>

In your attachment, there is your config.log, which I assume was
successful?  Can you attach your Makefile instead?

In general I suggest you simply start over with a fresh Octave build
directory.  Maybe after many configuration attempts things just got
cluttered.  Regarding your configure options:

   ./configure --prefix=/home/niraj/octa \
     CFLAGS=-fPIC \
     CXXFLAGS=-fPIC \
     --enable-shared \
     --with-gui \
     --with-qt \
     --with-blas=/common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a \
     --with-lapack=/common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a \
     --enable-float \
     --enable-sse \
     --disable-dependency-tracking \
     --with-fftw3-includedir=/home/niraj/fftw/include/ \
     --with-fftw3-libdir=/home/niraj/fftw/lib \
     --with-fftw3f-includedir=/home/niraj/fftw/include \
     --with-fftw3f-libdir=/home/niraj/fftw/lib

Please notice, that some of them are useless:

   configure:83068: WARNING: unrecognized options:
      --with-gui, --enable-float, --enable-sse

HTH,
Kai


--
Success occurs when opportunity and preparation meet



Makefile.zip (261K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056
On 12/23/19 2:56 PM, niraj pandey wrote:
> Now during make (on octave code) I am getting the following error.
>
> make
> preserving existing HG-ID file
> Makefile:30458: *** multiple target patterns.  Stop.
>

On 12/24/19 2:24 PM, niraj pandey wrote:
> Yes I tried with a fresh source code.
> PFA Makefile.
>
> Thanks
> Niraj
>

Can you build the default version of GNU Octave without any changes in
your configuration?

In your attached Makefile, is it still line 30458 that is failing?

What is the output of

   make --dry-run

or does it error as well?

Best,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
yes I am facing the same issue without any changes.
Meanwhile can you pls let me know what do you mean about default version og GNU Octave.

Thanks
Niraj

On Wed, Dec 25, 2019 at 8:43 AM Kai Torben Ohlhus <[hidden email]> wrote:
On 12/23/19 2:56 PM, niraj pandey wrote:
> Now during make (on octave code) I am getting the following error.
>
> make
> preserving existing HG-ID file
> Makefile:30458: *** multiple target patterns.  Stop.
>

On 12/24/19 2:24 PM, niraj pandey wrote:
> Yes I tried with a fresh source code.
> PFA Makefile.
>
> Thanks
> Niraj
>

Can you build the default version of GNU Octave without any changes in
your configuration?

In your attached Makefile, is it still line 30458 that is failing?

What is the output of

   make --dry-run

or does it error as well?

Best,
Kai


--
Success occurs when opportunity and preparation meet


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

niraj pandey
Seems some issue with my environment. After fix this env issue I was able to build octave with fft support using following configuration settings.

./configure --prefix=/tmp/octa12 CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-shared --with-qt --with-blas=/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a --with-lapack=/octave/v5.1.0/lapack-3.8.0/liblapack.a --with-fftw3-includedir=/home/niraj/fftw/include/ --with-fftw3-libdir=/home/niraj/fftw/lib --with-fftw3f-includedir=/home/niraj/fftw/include --with-fftw3f-libdir=/home/niraj/fftw/lib

Thanks for your support.

Thanks
Niraj

On Wed, Dec 25, 2019 at 12:51 PM niraj pandey <[hidden email]> wrote:
yes I am facing the same issue without any changes.
Meanwhile can you pls let me know what do you mean about default version og GNU Octave.

Thanks
Niraj

On Wed, Dec 25, 2019 at 8:43 AM Kai Torben Ohlhus <[hidden email]> wrote:
On 12/23/19 2:56 PM, niraj pandey wrote:
> Now during make (on octave code) I am getting the following error.
>
> make
> preserving existing HG-ID file
> Makefile:30458: *** multiple target patterns.  Stop.
>

On 12/24/19 2:24 PM, niraj pandey wrote:
> Yes I tried with a fresh source code.
> PFA Makefile.
>
> Thanks
> Niraj
>

Can you build the default version of GNU Octave without any changes in
your configuration?

In your attached Makefile, is it still line 30458 that is failing?

What is the output of

   make --dry-run

or does it error as well?

Best,
Kai


--
Success occurs when opportunity and preparation meet


--
Success occurs when opportunity and preparation meet


Reply | Threaded
Open this post in threaded view
|

Re: fft support on octave

siko1056
> On Wed, Dec 25, 2019 at 12:51 PM niraj pandey
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     yes I am facing the same issue without any changes.
>     Meanwhile can you pls let me know what do you mean about default
>     version og GNU Octave.
>
>     Thanks
>     Niraj
>


By default version I meant, just using the packages for fftw and alike
that your distribution offers and run "./configure" without
modifications.  But this seems no longer to be necessary.



On 12/25/19 8:20 PM, niraj pandey wrote:

> Seems some issue with my environment. After fix this env issue I was
> able to build octave with fft support using following configuration
> settings.
>
> ./configure --prefix=/tmp/octa12 CFLAGS=-fPIC CXXFLAGS=-fPIC
> --enable-shared --with-qt
> --with-blas=/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
> --with-lapack=/octave/v5.1.0/lapack-3.8.0/liblapack.a
> --with-fftw3-includedir=/home/niraj/fftw/include/
> --with-fftw3-libdir=/home/niraj/fftw/lib
> --with-fftw3f-includedir=/home/niraj/fftw/include
> --with-fftw3f-libdir=/home/niraj/fftw/lib
>
> Thanks for your support.
>
> Thanks
> Niraj
>


You're welcome.

Best,
Kai