Trying to emege qtools and it fails when compiling strerr.c. Output as follows: ./compile strerr.c ./compile: line 3: exec: -m: invalid option exec: usage: exec [-cl] [-a name] file [redirection ...] make: *** [strerr.o] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-mail/qtools-0.56 failed. !!! Function src_compile, Line 33, Exitcode 2 !!! emake failed Reproducible: Always Steps to Reproduce: 1. emerge qtools 2. 3. Actual Results: emerge fails. Expected Results: should have installed. This is a fresh install. All software has been installed via Portage...
reopen with the output from emerge --info
here you go: $sudo emerge --info Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(TM)Processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 14 2005, 20:46:12)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 avi berkdb crypt emboss encode gd gdbm gif imap imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis pam perl png python readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts xml2 xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Hi, Received the same error. Here's my error-log: ...BEGIN... * Applying qtools-0.56-errno.patch ... [ ok ] >>> Source unpacked. >>> portage +sandbox(compile) FEATURES=autoconfig buildpkg ccache collision-protect distlocks gpg sandbox sfperms test userpriv usersandbox ( cat warn-auto.sh; \ echo 'main="$1"; shift'; \ echo exec "`head -1 conf-ld`" \ '-o "$main" "$main".o ${1+"$@"}' \ ) > load head: `-1' option is obsolete; use `-n 1' since this will be removed in the future chmod 755 load ( cat warn-auto.sh; \ echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \ ) > compile head: `-1' option is obsolete; use `-n 1' since this will be removed in the future ( cat warn-auto.sh; \ echo CC=\'`head -1 conf-cc`\'; \ echo LD=\'`head -1 conf-ld`\'; \ cat find-systype.sh; \ ) | sh > systype head: `-1' option is obsolete; use `-n 1' since this will be removed in the future chmod 755 compile cat warn-auto.sh choose.sh \ | sed s}HOME}"`head -1 conf-home`"}g \ > choose head: `-1' option is obsolete; use `-n 1' since this will be removed in the future head: `-1' option is obsolete; use `-n 1' since this will be removed in the future chmod 755 choose ./compile 822addr.c ./compile: line 3: exec: -O: invalid option exec: usage: exec [-cl] [-a name] file [redirection ...] make: *** [822addr.o] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-mail/qtools-0.56 failed. !!! Function src_compile, Line 33, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. ...END... After that made: ebuild .../qtools-0.56 unpack, edited the Makefile changing "-1" to "-n 1" which seems to be the new syntax, then ebuild qtools-0.56 compile Same error. Will look further, but i'm stuck at the moment. PS: There's an -o (not zero) after 'exec ...\" at one place in the Makefile. Thanks. Rumen My 'emerge info': ... Gentoo Base System version 1.6.12 Portage 2.0.51.22-r1 (!/usr/portage/profiles/default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2200+ ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig buildpkg ccache collision-protect distlocks gpg sandbox sfperms test userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://files.gentoo.gr http://ftp.lug.ro/gentoo/ http://mirror.etf.bg.ac.yu/gentoo http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X X509 a52 aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts caps cdb cdr crypt cups curl dvd dvdr eds encode esd evo exif fam ffmpeg flac foomaticdb freetype gd gif gmp gnutls gpm gstreamer gtk gtk2 gtkhtml hal iconv imagemagick imap imlib ipv6 javascript jpeg kdexdeltas lcms libg++ libwww mad maildir matroska mikmod mime mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl png posix postgres ppds prelude python quicktime readline ruby sdl skey slang speex spell sse ssl svg svga symlink tcltk tcpd theora threads tiff transcode truetype truetype-fonts type1-fonts unicode usb vhosts vorbis win32codecs xine xml2 xmms xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 62186 [details, diff] qtools-0.56-head.patch removes the head -1 warnings
Created attachment 62187 [details, diff] qtools-0.56-r1.ebuild fixes the problem reported (define $CC as $CHOST-gcc)
I'm also encountering this error: ./compile 822body.c ./compile: line 3: exec: -O: invalid option exec: usage: exec [-cl] [-a name] file [redirection ...] make: *** [822body.o] Error 2
I can confirm that the head.patch and r1.ebuild files worked for my system. qtools now properly compiles.
Fixed in CVS. Can you test it, please? Note: Don't set CC="${HOST}-gcc" or something. Use toolchain-funcs.eclass.