When I emerge netpbm I get a large number of errors like this: c -pedantic -Os -fomit-frame-pointer -march=k6 -s -Wall -Wno-uninitialized -o scanargs.o scanargs.c make[2]: c: Command not found make[2]: [scanargs.o] Error 127 (ignored) Then it ends with this: rm -f librle.a ar rc librle.a Runput.o cmd_name.o rle_addhist.o rle_error.o rle_getcom.o rle_getrow.o rle_getskip.o rle_global.o rle_hdr.o rle_open_f.o rle_putcom.o rle_putrow.o rle_row_alc.o scanargs.o vaxshort.o ar: Runput.o: No such file or directory make[2]: *** [librle.a] Error 1 make[2]: Leaving directory `/usr/src/portage/netpbm-9.12-r4/work/netpbm-9.12/urt' make[1]: *** [../urt/librle.a] Error 2 make[1]: Leaving directory `/usr/src/portage/netpbm-9.12-r4/work/netpbm-9.12/pnm' make: *** [pnm] Error 2 Reproducible: Always Steps to Reproduce: Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2, glibc-2.2.5-r7) ================================================================= System uname: 2.4.20 i586 AMD-K6(tm) 3D processor GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /etc/inet.d/net.eth0 /etc/make.profile/packages" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/src" PORTDIR_OVERLAY="" USE="x86 oss 3dnow avi crypt encode gif jpeg kde gnome libg++ mikmod motif mpeg ncurses pdflib png spell truetype xml2 xmms zlib gdbm berkdb slang readline arts svga tcltk java guile X sdl gpm libwww ssl python esd imlib oggvorbis gtk qt opengl -mmx -apm pda bonobo evo gtkhtml lcms -tcpd tetex perl -cups -nls -pam -quicktime -xv gtk2 mozilla 3dfx voodoo3" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-Os -fomit-frame-pointer -march=k6 -s" CXXFLAGS="-Os -fomit-frame-pointer -march=k6 -s" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
CFLAGS="-Os -fomit-frame-pointer -march=k6 -s" try i586 what does -s ?
I've removed -s and changed k6 to i586, but I still have the problem. I think the root of the problem is that make is trying to compile using a program called "c", which doesn't exist on my system. `-s' Remove all symbol table and relocation information from the executable. Someone else was using it for optimization. Never had a problem with that flag before. Here are the first few lines of the emerge: ~ 4> emerge netpbm Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/netpbm-9.12-r4 to / >>> md5 ;-) netpbm-9.12.tgz >>> Unpacking source... >>> Unpacking netpbm-9.12.tgz >>> Source unpacked. make -C pbm -f /usr/src/portage/netpbm-9.12-r4/work/netpbm-9.12/pbm/Makefile all make[1]: Entering directory `/usr/src/portage/netpbm-9.12-r4/work/netpbm-9.12/pbm' ln -s ../pbmplus.h pbmplus.h ln -s ../version.h version.h ../stamp-date c -I../shhopt -pedantic -Os -fomit-frame-pointer -march=i586 -Wall -Wno-uninitialized -o atktopbm.o ../pbm/atktopbm.c make[1]: c: Command not found make[1]: [atktopbm.o] Error 127 (ignored) And then it continues to try to compile stuff with this "c" command, gives an error and ignores it.
which version of gcc-config do you have installed ? why are u using only an old glibc with 1.4 and gcc3 ? did you upgrade and forget to #emerge -e system ?
I do not have any version of gcc-config installed. I didn't know it existed and no package required it's presence. Regarding my version of glibc, it is the version that was installed when I installed this system. I think this is 1.4rc1. Did I upgrade? Upgrade what? I've upgraded a few packages before. Nothing major. Whatever needed upgrading in order to fullfill some other dependency.
try "emerge envtest|grep ^CC" to see what $CC is set to inside the portage environment. If it is indeed set to "c" then check "set|grep ^CC" and see if YOU are setting it to that. If it is indeed from your 'set' that it is like that then check "grep ^CC /etc/env.d/*" to see where it came from if it is in a gentoo environment file or in your profile. I'll take a look at the netpbm ebuild file to see if anything looks suspicious in the meantime.
I've the same problem with netpbm (need it for lyx). Three days ago merging lyx was working fine. I removed the file , to ensure that it is not a download error that is not rcognized through md5.
I can't compile netpbm too. I get the following output: >>> emerge (1 of 16) media-libs/netpbm-9.12-r4 to / >>> md5 ;-) netpbm-9.12.tgz >>> Unpacking source... >>> Unpacking netpbm-9.12.tgz to /var/tmp/portage/netpbm-9.12-r4/work sed: -e expression #1, char 29: Unterminated `s' command >>> Source unpacked. make -C pbm -f /var/tmp/portage/netpbm-9.12-r4/work/netpbm-9.12/pbm/Makefile all make[1]: Entering directory `/var/tmp/portage/netpbm-9.12-r4/work/netpbm-9.12/pbm' ln -s ../pbmplus.h pbmplus.h ln -s ../version.h version.h ../stamp-date gcc -c -I../shhopt -march=athlon -O3 -pipe -o atktopbm.o ../pbm/atktopbm.c make[1]: *** No rule to make target `libpbm.', needed by `atktopbm'. Stop. make[1]: Leaving directory `/var/tmp/portage/netpbm-9.12-r4/work/netpbm-9.12/pbm' make: *** [pbm] Error 2 !!! ERROR: media-libs/netpbm-9.12-r4 failed. !!! Function src_compile, Line 26, Exitcode 2 !!! Make failed
well that last bit was caused by me when I was doing other fixage. Should be OK now (on cvs now, rsync soon) Can the original reporter please repond to my requests for environment information?
emerge envtest | grep ^CC produces no output, however I think you want this: emerge /usr/portage/app-admin/envtest/envtest-1.2.3-r4.ebuild | grep ^CC CCACHE_DIR=/root/.ccache CCACHE_SIZE=2G !!! ERROR: app-admin/envtest-1.2.3-r4 failed. !!! Function src_compile, Line 3, Exitcode 0 !!! Died on purpose. You aren't supposed to merge this. Have a nice day. :) So $CC is not being set. set | grep ^CC produces no output either.
OK, NOW I get it, will fix momentarily
new version in CVS, check it when it hits RSYNC, thanks.
We need to figure out WHY those things aren't set, because there are a good billion ebuilds out there that have code similar to that which I changed in netpbm and which will therefore also fail if CC and CXX aren't set in your environment. Please try merging gcc-config latest, and setting your gcc version to the appropriate version for your system, and then do: emerge /usr/portage/app-admin/envtest/envtest-1.2.3-r4.ebuild | grep ^CC cuz realy, CC should be set in your portage environment :) --Brandon
I'm having problems getting gcc-config to work: ~ 10> gcc-config --list-profiles * /usr/bin/gcc-config: No default profile setup! ~ 11> gcc-config --get-current-profile * /usr/bin/gcc-config: No default profile setup! ~ 12> gcc-config i586-pc-linux-gnu-3.2 * /usr/bin/gcc-config: Profile does not exist! I know I've got gcc 3.2, and this is an i586.
please merge gcc-3.2-r5 for gcc-config support.
Nope, that doesn't work either: >>> md5 ;-) gcc-3.2.tar.bz2 >>> md5 ;-) gcc-3.2-patches-1.0.tar.bz2 * This is a very alpha ebuild and changes in here * are not yet set in stone! Please do NOT merge * this if you are not a developer! !!! ERROR: sys-devel/gcc-3.2-r5 failed. !!! Function pkg_setup, Line 57, Exitcode 0 !!! (no error message)
I've just emerged gcc 3.2.2. Now netpbm compiles fine. I suggest that you add two dependencies to netpbm for gcc-config and a more recent version of gcc.
Ok, this should be fixed by both the changes to the netpbm ebuild and by current versions of gcc and gcc-config.