C compiler cannot create executables (Gentoo)


วันนี้ก็ติดตั้ง Gentoo 2005.1 บน โน๊ตบุคเรานะ แต่ว่าเกิดปัญหาขึ้นเล็กน้อย เหอๆ ลองดูล่ะกันนะ ปกติ มันไม่จะทางสะดวก เลยนี่นา

# emerge syslog-ng

Calculating dependencies ...done!
>>> emerge (1 of 2) dev-libs/libol-0.3.16 to /
>>> md5 files ;-) libol-0.3.16.ebuild
>>> md5 files ;-) libol-0.3.17.ebuild
>>> md5 files ;-) files/digest-libol-0.3.16
>>> md5 files ;-) files/digest-libol-0.3.17
>>> md5 src_uri ;-) libol-0.3.16.tar.gz
>>> Unpacking source...
>>> Unpacking libol-0.3.16.tar.gz to /var/tmp/portage/libol-0.3.16/work
* Removing useless C++ checks ... [ ok ]>>> Source unpacked.
* econf: updating libol-0.3.16/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating libol-0.3.16/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether build environment is sane... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/libol-0.3.16/work/libol-0.3.16/config.log

!!! ERROR: dev-libs/libol-0.3.16 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

แล้วก็ลองตรวจสอบเวอร์ชันของ gcc นะ
# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/specs
Configured with: /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)

เก่าไปหน่อยแฮะ ลองหาดูใหม่ดีกว่า
# emerge -s gcc
--snip--
sys-devel/gcc
Latest version available: 3.4.4-r1
Latest version installed: 3.4.4-r1
Size of downloaded files: 27,834 kB
Homepage: http://www.gnu.org/software/gcc/gcc.html
Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking
License: GPL-2 LGPL-2.1
--snip--

อืม ติดตั้งดีกว่า เหอๆ
# emerge gcc

รอซักแปป เสร็จล่ะ ปรับแต่งนิดหน่อย ว่าจะใช้ตัวไหนเป็นตัวหลักนะ
# gcc-config -l
[1] i686-pc-linux-gnu-3.3.5-20050130 *
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
[5] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[6] i686-pc-linux-gnu-3.4.4
[7] i686-pc-linux-gnu-3.4.4-hardened
[8] i686-pc-linux-gnu-3.4.4-hardenednopie
[9] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[10] i686-pc-linux-gnu-3.4.4-hardenednossp

เลือกตัวใหม่ที่เราพึ่งติดตั้งไปดีกว่า
# gcc-config 6
* Switching native-compiler to i686-pc-linux-gnu-3.4.4 ... [ ok ]
* If you intend to use the gcc from the new profile in an already

แล้วก็ติดตั้ง syslog-ng อีกรอบนะ

#emerge syslog-ng

:o) ผ่านแฮะ Yeh!!!

 Refer : duangbung.blogspot.com

คำสำคัญ (Tags): #uncategorized
หมายเลขบันทึก: 10808เขียนเมื่อ 27 ธันวาคม 2005 21:44 น. ()แก้ไขเมื่อ 11 กุมภาพันธ์ 2012 14:15 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท