我試圖在集羣的節點上安裝gcc-4.6.2。不幸的是,這個節點沒有互聯網連接,所以我嘗試手動做所有事情。 我已經安裝了所有必需的包和我已經運行具有以下參數配置文件:GCC 4.6.2錯誤:'psignal'的衝突類型
./configure --with-newlib --prefix=/usr/lib64/gcc-4.6.2 --disable-libssp
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++,java
--with-cpu=generic --build=x86_64-redhat-linux
--host=x86_64-redhat-linux --target=x86_64-redhat-linux
--with-target-subdir=x86_64-redhat-linux --with-mpfr=/usr/local/lib
--with-gmp=/usr/local/lib --with-mpc=/usr/local/lib
然而,當我讓我得到了以下錯誤:
../.././libiberty/strsignal.c:555: error: conflicting types for ‘psignal’
/usr/include/signal.h:141: error: previous declaration of ‘psignal’ was here
莫非
別人的幫助我?
我再次與這個'運行./configure --enable-共享--enable-threads = posix --enable -__ cxa_atexit --enable-clocale = gnu --enable-languages = c,C++,java --with-cpu = generic --with-mpfr =/usr/local/lib - -with-gmp =/usr/local/lib --with-mpc =/usr/local/lib',但是在'/usr/lib64/gcc-4.6.2/x86_64- unknown-linux-gnu/libgcc':configure:error:無法計算目標文件的後綴:無法編譯。 ' – desmo
這表明你的引導編譯器有問題。是否已經安裝了編譯器?它適用於簡單的測試程序嗎?我可能會更具體,如果你在'config.log'的內容發佈(不在這裏,請,這將是巨大的,把它放在一個pastebin或類似的東西,並張貼鏈接) – zwol
我有一個2以前版本的gcc 3.4.6和gcc 4.1.2。 – desmo