2011-02-24 233 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解決了這個問題對我來說