我正在尝试使用中的文件进行交叉编译
我在我编译的Intel Mac (10.6.6,x86_64)上: gmp,mpfr,mpc,交叉编译为32位(因为我在64位Mac上),但我得到了
ld: warning: option -s is obsolete and being ignored
ld: warning: ignoring file /gmp1/lib/libmpc.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warnin
我开始尝试在Linux计算集群上工作,其中一些程序和库可以通过系统获得。
我想使用stack安装Haskell程序(我应该说我还不太熟悉stack)。
stack作为一个模块可用,所以在执行module load stack之后,我尝试了stack setup,它失败了,我抱怨gmp丢失了:
$ stack setup
Preparing to install GHC (gmp4) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-gmp4-8.
我试图在我拥有的一台特定的linux机器上更新GCC,使之成为一个没有包可用的版本。
我运行配置脚本,它抱怨GMP的版本:
# ../gcc/configure
checking build system type... i686-pc-linux-gnu
[snip]
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or
我试图用交叉编译为powerpc构建gcc 4.3-74。我使用以下配置命令来配置make文件。
配置-构建=i 686-pc-linux-gnu-target=powerpc-linux-host=powerpc-linux-with-gmp=/xxx/include-with-gmp-include-with-gmp-lib=/xxx/lib
成功地完成了配置,但是当我执行make时,它失败了,并收到了以下消息
In file included from ../.././libiberty/floatformat.c:31:0:
/usr/include/string.h:548:
您好,我正在尝试为这样的实验设计安装软件包 install.packages("daewr", dependencies = T) 但它返回以下内容 configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org
ERROR: configuration failed for package ‘gmp’
* removing ‘/home/yeferson/R/x86_64-pc-linux-gnu-library/4.0/gmp’
Warning in install.package
希望这只是一个非常简单的问题。好的,这是我所做的:我想在我的Linux Ubuntu11.10下安装gmp。我的系统里既有g++也有gcc。因此,我从gmp官方网站(gmp 5.0.2)下载了最新版本,将其解压缩,然后,由于我需要c++ gmp接口,我只需运行:
./configure --enable-cxx
但它会持续工作一段时间,然后打印出来:
checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).
我做错什么了吗?非常感谢
我正在尝试安装一个使用gmp的库,并在其上运行./configure。到目前为止,我已经克服了几个障碍,比如通过使用以下命令,需要使用gcc、g++和m4:
yum install gcc
yum install gcc-g++
yum install m4
现在我得到了这个错误:
checking for the GMP library version 4.1.3 or above... no
configure: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
s
我正在尝试安装Math::GMP,但它总是失败,我不确定从这里到哪里去。这就是我输入的内容,下面是指向日志文件的输出:
[root@confeng Math-GMP-2.06-VEVNp7]# cpanm Math::GMP
--> Working on Math::GMP
Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/Math-GMP-2.06.tar.gz ... OK
Configuring Math-GMP-2.06 ... OK
Building and testing Math-GMP-2.06 ... FAIL
我在linux中使用c编写了一些代码。当我尝试编译时,我得到了这样的响应:
/tmp/ccW8mQDx.o: In function `main':
server.c:(.text+0x3e): undefined reference to `__gmpz_set_str'
server.c:(.text+0x5a): undefined reference to `__gmpz_set_str'
事实上,我使用的gmp的所有功能都找不到了。
似乎gmp出了点问题。
有谁能告诉我怎么解决这个问题吗?提前感谢!
我正在为我的mac/linux交叉编译器编译gnu gmp,但是我得到了这个错误:
In file included from ../gmp-impl.h:102,
from fib_table.c:4:
../fib_table.h:4: warning: data definition has no type or storage class
../fib_table.h:4: warning: type defaults to ‘int’ in declaration of ‘Error’
../fib_table.h:4: warning: type
我注意到我使用的代码中有一个bug,下面的测试代码演示了这一点: PROGRAM test
implicit none
integer(kind=8):: i
i=17159401
print*,i,float(i)
end program test 虽然代码应该输出17159401 17159401.0,但它输出的是17159401 17159400.0 我正在使用gfortran: Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/apps/gcc/4.8.2/bin/../libexec/
我正在尝试从源代码构建gdb,哪个版本是11.1。我已经配置了包含路径的GMP,但是配置脚本仍然报告了一个错误。
configure: error: GMP is missing or unusable
我复制了配置日志。
configure:10433: checking for libgmp
configure:10453: gcc -o conftest -g -O2 conftest.c -lncurses -lm -ldl -lgmp >&5
conftest.c:53:17: fatal error: gmp.h: No such file or dire