|
|
这两天老出问题。我使用emerge -uavDN world ,在编译buzybox得时候报错说找不到gcc,找i686-pc-linux-gnu-4.1.1得时候找不到,但是没有记录下来错误信息。用gcc-config -l一看,gcc-4.1.1变成了i486-pc-linux-gnu-4.1.1,心想686怎么变成486了?我于是直接emerge gcc,把gcc升级成了i686-pc-linux-gnu-4.1.2.然后接下来得emerge -uavDN world没有错误。使用revdep-rebuild也没有问题。之后进行了etc-update,env-update,source /etc/profile
但是接下来emerge xorg-11得时候编译jpeg包时又报错,不知道i486-pc-linux-gnu-4.1.1怎么又蹦出来了?
- checking whether we are using GNU C... yes
- checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
- checking for function prototypes... yes
- checking for stddef.h... yes
- checking for stdlib.h... yes
- checking for string.h... yes
- checking for size_t... yes
- checking for type unsigned char... yes
- checking for type unsigned short... yes
- checking for type void... yes
- checking for working const... yes
- checking for inline... __inline__
- checking for broken incomplete types... ok
- checking for short external names... ok
- checking to see if char is signed... yes
- checking to see if right shift is signed... yes
- checking to see if fopen accepts b spec... yes
- checking for a BSD compatible install... /usr/bin/install -c
- checking for ranlib... i686-pc-linux-gnu-ranlib
- checking host system type... i686-pc-linux-gnu
- checking whether we are using GNU C... yes
- checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC
- checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes
- checking if i686-pc-linux-gnu-gcc static flag -static works... -static
- checking whether ln -s works... yes
- checking for ld used by GCC... /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld
- checking if the linker (/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld) is GNU ld... yes
- checking whether the linker (/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
- checking for BSD-compatible nm... /usr/bin/nm -B
- checking command to parse /usr/bin/nm -B output... yes
- checking how to hardcode library paths into programs... immediate
- checking for /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld option to reload object files... -r
- checking dynamic linker characteristics... Linux ld.so
- checking if libtool supports shared libraries... yes
- checking whether to build shared libraries... yes
- checking whether to build static libraries... yes
- checking for objdir... .libs
- creating libtool
- checking for 'tmpfile()'... yes
- checking libjpeg version number... 62
- creating ./config.status
- creating Makefile
- creating jconfig.h
- .........................................
- i686-pc-linux-gnu-gcc -o rdjpgcom .libs/rdjpgcom.o
- ./libtool-wrap --mode=link i686-pc-linux-gnu-gcc -o wrjpgcom wrjpgcom.lo
- i686-pc-linux-gnu-gcc -o wrjpgcom .libs/wrjpgcom.o
- i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe -fomit-frame-pointer -I. -c ./transupp.c -o transupp.o >/dev/null 2>&1
- g++ -shared -nostdlib /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../crti.o /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/crtbeginS.o .libs/jcapimin.o .libs/jcapistd.o .libs/jctrans.o .libs/jcparam.o .libs/jdatadst.o .libs/jcinit.o .libs/jcmaster.o .libs/jcmarker.o .libs/jcmainct.o .libs/jcprepct.o .libs/jccoefct.o .libs/jccolor.o .libs/jcsample.o .libs/jchuff.o .libs/jcphuff.o .libs/jcdctmgr.o .libs/jfdctfst.o .libs/jfdctflt.o .libs/jfdctint.o .libs/jdapimin.o .libs/jdapistd.o .libs/jdtrans.o .libs/jdatasrc.o .libs/jdmaster.o .libs/jdinput.o .libs/jdmarker.o .libs/jdhuff.o .libs/jdphuff.o .libs/jdmainct.o .libs/jdcoefct.o .libs/jdpostct.o .libs/jddctmgr.o .libs/jidctfst.o .libs/jidctflt.o .libs/jidctint.o .libs/jidctred.o .libs/jdsample.o .libs/jdcolor.o .libs/jquant1.o .libs/jquant2.o .libs/jdmerge.o .libs/jcomapi.o .libs/jutils.o .libs/jerror.o .libs/jmemmgr.o .libs/jmemansi.o -L/usr/lib/gcc/i486-pc-linux-gnu/4.1.1 -L/usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/lib -L/usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/crtendS.o /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../crtn.o -Wl,-soname -Wl,libjpeg.so.62 -o .libs/libjpeg.so.62.0.0
- g++: /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../crti.o: No such file or directory
- g++: /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/crtbeginS.o: No such file or directory
- g++: /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/crtendS.o: No such file or directory
- g++: /usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../crtn.o: No such file or directory
- make: *** [libjpeg.la] Error 1
复制代码
是不是哪里得配置文件还没有更新?
gcc版本只有4.1.2
- localhost gcc # gcc-config -B
- /usr/i686-pc-linux-gnu/gcc-bin/4.1.2
- localhost gcc # gcc-config -X
- /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4
- localhost gcc # gcc-config -l
- [1] i686-pc-linux-gnu-4.1.2 *
复制代码
emerge --info
- Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
- =================================================================
- System uname: 2.6.24-gentoo-r3 i686 Intel(R) Pentium(R) D CPU 3.00GHz
- Timestamp of tree: Mon, 17 Mar 2008 09:30:01 +0000
- app-shells/bash: 3.2_p17-r1
- dev-lang/python: 2.4.4-r9
- dev-python/pycrypto: 2.0.1-r6
- sys-apps/baselayout: 1.12.11.1
- sys-apps/sandbox: 1.2.18.1-r2
- sys-devel/autoconf: 2.61-r1
- sys-devel/automake: 1.9.6-r2, 1.10
- sys-devel/binutils: 2.18-r1
- sys-devel/gcc-config: 1.4.0-r4
- sys-devel/libtool: 1.5.26
- virtual/os-headers: 2.6.23-r3
- ACCEPT_KEYWORDS="x86"
- CBUILD="i686-pc-linux-gnu"
- CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
- CHOST="i686-pc-linux-gnu"
- CONFIG_PROTECT="/etc"
- CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
- CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
- DISTDIR="/usr/portage/distfiles"
- FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
- GENTOO_MIRRORS="ftp://ftp3.tsinghua.edu.cn/mirror/gentoo"
- LINGUAS="zh_CN"
- MAKEOPTS="-j3"
- PKGDIR="/usr/portage/packages"
- PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
- PORTAGE_TMPDIR="/var/tmp"
- PORTDIR="/usr/portage"
- SYNC="rsync://61.135.158.199/gentoo-portage"
- USE="X acl alsa apache2 avi berkdb cairo cjk cli cracklib crypt dri dvb ffmpeg firefox fortran ftp gdbm gif glx gnome gpm gtk gtk2 gtkhtml icc iconv isdnlog javascript jpeg mad midi mp3 mpeg mpeg4 msn mudflap mysql ncurses nls nptl nptlonly opengl openmp oss pam pcre pdf perl php png pppd python qq quicktime readline real reflection rmvb ruby session spl ssl svg tcpd tiff truetype unicode usb win32codecs wma x86 xml xml2 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="i810"
- Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
复制代码 |
|