انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => انجمن عمومی => نویسنده: ɴɪᴍᴀ در 05 تیر 1401، 06:31 ب‌ظ

عنوان: مشکل در کامپایل gcc (دوباره!) (حل شد)
ارسال شده توسط: ɴɪᴍᴀ در 05 تیر 1401، 06:31 ب‌ظ
مشکل چیه؟

make[4]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[3]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[2]: Entering directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[3]: Entering directory '/mnt/lfs/sources/gcc-11.2.0/build'
rm -f stage_current
make[3]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[2]: Entering directory '/mnt/lfs/sources/gcc-11.2.0/build'
Configuring stage 2 in ./intl
configure: loading cache ./config.cache
checking for x86_64-pc-linux-gnu-gcc...  /mnt/lfs/sources/gcc-11.2.0/build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-11.2.0/build/./prev-gcc/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/lib/ -isystem /mnt/lfs/tools/x86_64-pc-linux-gnu/include -isystem /mnt/lfs/tools/x86_64-pc-linux-gnu/sys-include   -fno-checking
checking whether the C compiler works... no
configure: error: in `/mnt/lfs/sources/gcc-11.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [Makefile:9127: configure-stage2-intl] Error 77
make[2]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[1]: *** [Makefile:23471: stage2-bubble] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make: *** [Makefile:954: all] Error 2

لاگ: https://paste.ubuntu.ir/gdlbj
عنوان: پاسخ : مشکل در کامپایل gcc (دوباره!)
ارسال شده توسط: Dragon- در 05 تیر 1401، 07:02 ب‌ظ
جایی که روش کار می‌کنید با آپشن noexec سوار نشده؟
findmnt /mnt
عنوان: پاسخ : مشکل در کامپایل gcc (دوباره!)
ارسال شده توسط: alend در 06 تیر 1401، 06:35 ق‌ظ
مشکل چیه؟

make[4]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[3]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[2]: Entering directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[3]: Entering directory '/mnt/lfs/sources/gcc-11.2.0/build'
rm -f stage_current
make[3]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[2]: Entering directory '/mnt/lfs/sources/gcc-11.2.0/build'
Configuring stage 2 in ./intl
configure: loading cache ./config.cache
checking for x86_64-pc-linux-gnu-gcc...  /mnt/lfs/sources/gcc-11.2.0/build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-11.2.0/build/./prev-gcc/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/lib/ -isystem /mnt/lfs/tools/x86_64-pc-linux-gnu/include -isystem /mnt/lfs/tools/x86_64-pc-linux-gnu/sys-include   -fno-checking
checking whether the C compiler works... no
configure: error: in `/mnt/lfs/sources/gcc-11.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [Makefile:9127: configure-stage2-intl] Error 77
make[2]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make[1]: *** [Makefile:23471: stage2-bubble] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-11.2.0/build'
make: *** [Makefile:954: all] Error 2

لاگ: https://paste.ubuntu.ir/gdlbj
نقل‌قول
checking whether the C compiler works... no

ظاهراً کامپایلر سی کار نمی کند.
عنوان: پاسخ : مشکل در کامپایل gcc (دوباره!)
ارسال شده توسط: ɴɪᴍᴀ در 06 تیر 1401، 12:11 ب‌ظ
مشکل از پرمیشن های اشتباه بود، حل شد!
عنوان: پاسخ : مشکل در کامپایل gcc (دوباره!)
ارسال شده توسط: esmaeelE در 06 تیر 1401، 04:27 ب‌ظ
مشکل از پرمیشن های اشتباه بود، حل شد!

وقتی با lfs کار می‌کنید لازمه یک دقت مضاعف به خرج بدید.
دستورات را یک به یک بخونید سعی کنید هر یک را به درستی بفهمید و برای خودتون یادداشت بردارید.

در پی زود به نتیجه رسیدن نباشید خودتونو از لذت یادگیری گام به گام محروم نکنید. این پروژه بسته به دانش و قدرت سیستم شما ممکنه هفته‌ها زمان ببره.

خوندن نوشتهٔ پیوست بسیار کمک کننده است.

عنوان: پاسخ : مشکل در کامپایل gcc (دوباره!)
ارسال شده توسط: ɴɪᴍᴀ در 06 تیر 1401، 04:43 ب‌ظ
وقتی با lfs کار می‌کنید لازمه یک دقت مضاعف به خرج بدید.
دستورات را یک به یک بخونید سعی کنید هر یک را به درستی بفهمید و برای خودتون یادداشت بردارید.

در پی زود به نتیجه رسیدن نباشید خودتونو از لذت یادگیری گام به گام محروم نکنید. این پروژه بسته به دانش و قدرت سیستم شما ممکنه هفته‌ها زمان ببره.

خوندن نوشتهٔ پیوست بسیار کمک کننده است.

ممنونم، درسته، هیچ عجله ای ندارم و گام به گام پیش میرم.