正在安装fftw-无法猜测构建类型

问题描述 投票:0回答:1

我正在尝试安装FFTW,当我找到./configure --enable-mpi --enable-type-prefix --enable-float命令并运行它时,这是我得到的错误。我该如何克服呢?如果有帮助,我正在Windows 10上的Cygwin中。

$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking type prefix for installed files... (none) checking for vendor's cc to be used instead of gcc... checking for cc... cc checking for C compiler default output... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking whether we are using gcc 2.90 or later... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for ranlib... ranlib checking whether ln -s works... yes checking build system type... ./config.guess: unable to guess system type

This script, last modified 2003-02-22, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (./config.guess) is already up to date, please send the following data and any information you think might be pertinent to <[email protected]> in order to provide the needed information to handle your system.

config.guess timestamp = 2003-02-22

uname -m = x86_64 uname -r = 3.1.2(0.340/5/3) uname -s = CYGWIN_NT-10.0 uname -v = 2019-12-21 15:25

/usr/bin/uname -p = unknown /bin/uname -X     =

hostinfo               = /bin/universe          = /usr/bin/arch -k    
= /bin/arch              = x86_64 /usr/bin/oslevel       = /usr/convex/getsysinfo =

UNAME_MACHINE = x86_64 UNAME_RELEASE = 3.1.2(0.340/5/3) UNAME_SYSTEM 
= CYGWIN_NT-10.0 UNAME_VERSION = 2019-12-21 15:25 configure: error: cannot guess build type; you must specify one

configure: error: cannot guess build type; you must specify one

我现在收到错误:

我现在收到错误:

> mpicc    main.o  run.o  predict.o begrun.o endrun.o global.o
> timestep.o  init.o restart.o  io.o accel.o   read_ic.o  ngb.o system.o
> allocate.o  density.o gravtree.o hydra.o  driftfac.o domain.o 
> allvars.o potential.o forcetree.o   peano.o gravtree_forcetest.o
> pm_periodic.o pm_nonperiodic.o longrange.o   -g  -L/usr/lib 
> -L/usr/local/lib -lgsl -lgslcblas -lm -L/usr/local/lib -lsrfftw_mpi -lsfftw_mpi -lsrfftw -lsfftw    -o  Gadget2 /usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lsrfftw_mpi
> /usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lsfftw_mpi collect2: error: ld returned 1 exit status
> make: *** [Makefile:243: Gadget2] Error 1
linux cygwin fftw
1个回答
0
投票

fftw-2.1.5太旧了,以至于需要建议在最新的Cygwin下正确配置。

$ ./configure --enable-mpi --enable-type-prefix --enable-float  --build=x86_64-pc-cygwin

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
....
config.status: creating mpi/Makefile
config.status: creating fftw.spec
config.status: creating fftw/config.h
config.status: creating fftw/fftw.h
config.status: executing depfiles commands

我不敢打赌,您将使用MPI和HDF5进行全新测试,因为它们比在Gadget2上测试的还要更新。>

© www.soinside.com 2019 - 2024. All rights reserved.