| Summary: | apache 2.0.49 emerge fails | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jaime Lopez <jaime.lopez> |
| Component: | New packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
| Status: | VERIFIED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | A patch to keep sane MAKEOPTS values. | ||
turn down your -j5 value to -j1 and try again I was having the same problem with apache-2.0.49-r1 and MAKEOPTS="-j6". Near the start of the emerge I saw something like "settings make opts to -j2 to make build succeed" scroll by, but apparently that didn't work. The emerge succeeded with MAKEOPTS="-j1" and even with MAKEOPTS="-j2", so it seems the ebuild fails to set the make options. Created attachment 30543 [details, diff]
A patch to keep sane MAKEOPTS values.
This seems to be happening alot with Apache and other ebuilds. I belive it is
because of a misunderstanding of what the -j actually does. Like many other
ebuilds I think that overridding this option is probably a good thing, as long
as we document it somewhere obvious. Advanced users should be able to fix this
limitation in a portage overlay.
Anyway I have included a patch that changes apache-1.3.29-r2.ebuild and
apache-2.0.49-r1.ebuild, is this a good idea?
rominds: your patch is a BAD idea in general, as use of -jX with make assumes that the explict dependancies in the makefile are correct. quite frequently they are NOT correct, causing a failure that would not happen with -j1. *** This bug has been marked as a duplicate of 49843 *** Closing. |
When I try to emerge apache 2.0.49 it fails complaining about missing y.tab.c Reproducible: Always Steps to Reproduce: 1. emerge -u apache Actual Results: ... /var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/srclib/apr/libtool --silent --mode=compile gcc -pthread -march=pentium4 -O3 -pipe -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/srclib/apr/include -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/srclib/apr-util/include -I. -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/os/unix -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/server/mpm/prefork -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/http -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/filters -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/proxy -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/include -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/dav/main -prefer-pic -c ssl_expr_eval.c && touch ssl_expr_eval.slo yacc -d /var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/ssl/ssl_expr_parse.y yacc -d /var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/ssl/ssl_expr_parse.y sed -e 's;yy;ssl_expr_yy;g' \ -e '/#if defined(c_plusplus) || defined(__cplusplus)/,/#endif/d' \ <y.tab.c >ssl_expr_parse.c && rm -f y.tab.c sed -e 's;yy;ssl_expr_yy;g' \ -e '/#if defined(c_plusplus) || defined(__cplusplus)/,/#endif/d' \ <y.tab.c >ssl_expr_parse.c && rm -f y.tab.c sed -e 's;yy;ssl_expr_yy;g' \ <y.tab.h >ssl_expr_parse.h && rm -f y.tab.h /bin/sh: line 1: y.tab.c: No such file or directory make[4]: *** [ssl_expr_parse.h] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/ssl' make[3]: *** [shared-build-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules/ssl' make[2]: *** [shared-build-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49/modules' make[1]: *** [shared-build-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/apache-2.0.49/work/httpd-2.0.49' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.49 failed. !!! Function src_compile, Line 193, Exitcode 2 !!! problem compiling Apache2 :( Expected Results: compiled ok, and apache succesfuly emerged Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.3.13 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://212.219.247.10/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gumersite/gentoo-portage" USE="3dnow S3TC X X509 Xaw3d aalib acpi acpi4linux alsa altivec apache2 apm arts avi berkdb bluetooth cdr clanJavaScript clanVoice crypt cscope cups curl dedicated dga directfb dv dvb dvd dvdr encode esd evo faad fam fastcgi fbcon ffmpeg firebird flash fluidsynth foomaticdb freetype fs gatos gb gd gdbm gif gnome gnomedb gpm gstreamer gtk gtk2 i8x0 idea imagemagick imap imlib ipv6 irmc jabber java javascript jdepend jikes joystick jpeg js kde lcms ldap libg++ libwww mad matroska mbox mcal mdb mikmod mmx mng mono motif mozilla mpeg mpeg4 mpi msn music mysql ncurses nls nvidia oav oci8 odbc offensive ofx oggvorbis oldworld openal opengl openssh opie orathreads oro oscar oss pam pcmcia pda pdflib perl php physfs png pnp postgres ppds pthreads python qhull qt quicktime radeon rage128 readline regexp ruby samba sdk sdl sis slang slp socks5 sox speedo speex spell sse ssl stencil-buffer stroke svg svga t1lib tcltk tcpd threads tiff transcode transparent-proxy truetype unicode usb v4l video_cards_3dfx video_cards_gamma video_cards_i810 video_cards_i830 video_cards_mach64 video_cards_matrox video_cards_radeon video_cards_rage128 video_cards_sis videos wmf wxwin wxwindows x86 xchattext xine xinerama xml xml2 xmms xosd xv xvid yahoo zeo zlib zvbi"