انجمنهای فارسی اوبونتو
کمک و پشتیبانی => انجمن عمومی => نویسنده: دانیال بهزادی در 15 خرداد 1390، 05:13 قظ
-
سلام. من میخوام gcc رو کامپایل کنم. برای کانفیگ از این دستور استفاده کردم:
../gcc-4.5.2/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs --without-ppl --without-cloog
و وقتی که make می کنم بعد از چند دقیقه که روال عادی کامپایل طی میشه این خطا رو میده و متوقف میشه:configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating mparam.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/mpfr'
cd ../../gcc-4.5.2/mpfr && /bin/sh /mnt/lfs/sources/gcc-4.5.2/mpfr/missing --run automake-1.11 --gnu
autom4te: cannot create autom4te.cache: No such file or directory
automake-1.11: autoconf failed with exit status: 1
make[2]: *** [../../gcc-4.5.2/mpfr/Makefile.in] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr'
make[1]: *** [all-mpfr] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
میخواستم ببیتم کسی از دوستان نظری در این مورد داره یا نه.
ممنون
-
معمولا mpfr رو جدا کامپایل میکنم (این چند روزه برای کامپایل لینوکس روی آرم دست کم n+1 بار کامپایل کردم GCC رو!)
بعد وقت کانفیگ آدرسشو میدم :
--with-mpfr=${ADDREESS_MPFR}
-
من یه بار برای mpfr زدم
./configure
و بعد make. ولی باز هم این خروجیشه:[lfs@myhost mpfr]$ make
cd . && /bin/sh /mnt/lfs/sources/mpfr/missing --run automake-1.11 --gnu
autom4te: cannot create autom4te.cache: No such file or directory
automake-1.11: autoconf failed with exit status: 1
make: *** [Makefile.in] Error 1
ولی وقتی با کاربر root عملیات make رو انجام دادم، به نظر میرسه که درست انجام شده باشه.
-
ولی من کلا با یه کاربر مجزا اینکار رو انجام دادم، همونطوری که توی CLFS (همون LFS منتها برای embeded linux) خواسته شده و بدون مشکل بوده همیشه. کاربر هم روت نیست .
-
شما باید اول دستور
autoreconf -if
رو اجرا کندید بعد دستور ./configure --prefix=/usr
که به جای /usr می تونید هر پری فیکسی که دلتون می خواد بدید
بعد باید برین سراغ make
-
آخه برای همون سیستم نمیخوام. کراس کامپایله