2011-02-24 213 views
1

我编译GNU GMP对我的Mac/Linux交叉编译器,但我得到这个错误:运行“制造”编译GMP的交叉编译问题

我的configure命令时

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 defaults to ‘int’ in declaration of ‘error’ 
../fib_table.h:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘data’ 
fib_table.c:7: warning: data definition has no type or storage class 
fib_table.c:7: warning: type defaults to ‘int’ in declaration of ‘Error’ 
fib_table.c:7: warning: type defaults to ‘int’ in declaration of ‘error’ 
fib_table.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘data’ 
fib_table.c:107: warning: ISO C does not allow extra ‘;’ outside of a function 
make[2]: *** [fib_table.lo] Error 1 
make[1]: *** [all-recursive] Error 1 
make: *** [all] Error 2 

“的./configure --prefix = /用户/丹尼尔/ GMP --build = i386的Linux的”

+0

丹尼尔,你运行'使clean'?您的配置是否成功?你是什​​么意思(主机是什么 - 编译器启动的机器,目标是什么 - 运行这个gmp的机器)? – osgx 2011-02-24 13:37:54

+0

我正在编译这个gmp,所以我可以为linux编译一个交叉编译器。我正在编译这个gmp在mac – Daniel 2011-02-28 00:27:09

+0

再次 - 你必须告诉交叉编译器配置脚本 – osgx 2011-02-28 01:00:24

回答

1

make distclean解决了这个问题对我来说