Skip to content

Build/install on Ubuntu 20.04 #17

Open
@paugier

Description

@paugier

I try to build p3dfft on Ubuntu 20.04.

On Debian based systems, the fftw libs are in /usr/lib/x86_64-linux-gnu so it does not to just use --with-fftw=/usr.

I copied the headers and the libraries in a special directory to please p3dfft:

mkdir -p $HOME/opt/fftw/include/
mkdir -p $HOME/opt/fftw/lib/
cp /usr/include/fftw* $HOME/opt/fftw/include
cp /usr/lib/x86_64-linux-gnu/libfftw3* $HOME/opt/fftw/lib

Then, this configure command seems to work fine:

./configure --prefix=$HOME --enable-fftw --enable-openmpi --enable-gnu --with-fftw=$HOME/opt/fftw  CC=mpicc CCLD=mpif90

However, the make command fails:

$ make                                                                                                                    
 cd . && automake-1.13 --gnu --ignore-deps
/bin/bash: line 4: automake-1.13: command not found
make: *** [Makefile:341: Makefile.in] Error 1

So I tried to run:

libtoolize
aclocal -I . && autoheader && autoconf && automake --add-missing -c

Finally, make starts to compile something but finally, I get

/usr/bin/ld: /home/pierre/opt/fftw/lib/libfftw3.a(mapflags.o): undefined reference to symbol 'log@@GLIBC_2.29'
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line

From this point, I don't know what to do... Help would be greatly appreciated to compile p3dfft on Ubuntu 20.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions