When I try to emerge -u zlib to 1.2.1-r2 version, something goes wrong. Reproducible: Always Steps to Reproduce: 1. emerge -u zlib 2. 3. Actual Results: gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -DUSE_MMAP -DPIC -fPIC -c infback.c -o infback.lo gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -DUSE_MMAP -DPIC -fPIC -c inftrees.c -o inftrees.lo gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -DUSE_MMAP -DPIC -fPIC -c inffast.c -o inffast.lo gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -DUSE_MMAP -c -o minigzip.o minigzip.c ar libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o ar: illegal option -- z Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file... ar -M [<mri-script] commands: d - delete file(s) from the archive m[ab] - move file(s) in the archive p - print file(s) found in the archive q[f] - quick append file(s) to the archive r[ab][f][u] - replace existing or insert new file(s) into the archive t - display contents of archive x[o] - extract file(s) from the archive command specific modifiers: [a] - put file(s) after [member-name] [b] - put file(s) before [member-name] (same as [i]) [N] - use instance [count] of name [f] - truncate inserted file names [P] - use full path names when matching [o] - preserve original dates [u] - only replace files that are newer than current archive contents generic modifiers: [c] - do not warn if the library had to be created [s] - create an archive index (cf. ranlib) [S] - do not build a symbol table [v] - be verbose [V] - display the version number emulation options: No emulation specific options ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf64-x86-64 elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex binary ihex trad-core make: *** [libz.a] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-libs/zlib-1.2.1-r2 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! (no error message) Expected Results: Hmm. zlib have to update to 1.2.1-r2 version. # emerge info Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0) ================================================================= System uname: 2.6.0 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://awake.local/gentoo ftp://10.1.1.146/gentoo ftp://10.1.1.76/gentoo ftp://10.1.2.16/gentoo ftp://mirror.gentoo.ru/pub/mirror/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://awake.local/gentoo-portage" USE="X aalib acpi alsa avi cdr cups dga directfb dvd encode faad fbcon ffmpeg foomaticdb gif gpm gtk gtk2 imagemagick imap imlib imlib2 java javascript jikes jpeg libwww maildir mbox mmx motif mozaccess mozilla mozinterfaceinfo moznocompose moznoirc moznomail mpeg ncurses nls nptl nvidia oggvorbis opengl pam pdflib perl png ppds python qt quicktime readline scanner sdl spell sse ssl svga tcltk tcpd tetex truetype type1 unicode usb vim-with-x wxwin wxwindows x86 xchattext xface xml xml2 xmms xv xvid zlib"
This ar command is not right: -- ar libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o -- should be: -- ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o -- note the 'rc' ... Anything in the environment that might cause this? I cannot see anything suspicious in the normal places, or can think of anything specific. Also, ar's manpage do not suggest any env variables it takes note of ... anybody else have an idea?
Some time ago I used gcc-config with icc and gcc, I wrote #/etc/env.d/gcc/i686-pc-linux-gnu-icc PATH="/opt/intel/compiler80/bin" ROOTPATH="/opt/intel/compiler80/bin" LDPATH="/opt/intel/compiler80/lib" MANPATH="/opt/intel/compiler80/man" CC="icc" CXX="icpc" AR="xiar" LD="xild" and added following lines to my i686-pc-linux-gnu-gcc-3.3.2: LD="ld" AR="ar" that was a big fault :) Deleting this lines from gcc-3.3.2 env file solved my probled. Sorry.