Bug 185361 - sys-boot/grub-1.95 parallel make fails
Bug#: 185361 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: attila.jecs@gmail.com
Component: Ebuilds
URL: 
Summary: sys-boot/grub-1.95 parallel make fails
Keywords:  
Status Whiteboard: 
Opened: 2007-07-15 00:20 0000
Description:   Opened: 2007-07-15 00:20 0000
util/grub-emu.c tries to include grub_modules_init.h instead of
grub/modules_init.h

Reproducible: Always

Steps to Reproduce:
1. echo sys-boot/grub ** >> /etc/portage/package.keyword
2. emerge grub
3.

Actual Results:  
util/grub-emu.c:41:31: error: grub_modules_init.h: Nincs ilyen fájl vagy
könyvtár
util/grub-emu.c: In function ‘main’:
util/grub-emu.c:205: warning: implicit declaration of function
‘grub_init_all’
util/grub-emu.c:211: warning: implicit declaration of function
‘grub_fini_all’
make: *** [grub_emu-util_grub_emu.o] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: sys-boot/grub-1.95 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   grub-1.95.ebuild, line 30:   Called die
 *
 * making regular stuff
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/sys-boot/grub-1.95/temp/build.log'.
 *


Expected Results:  
boot from evms/lvm/md

I'm trying to make up an cvs ebuild.

------- Comment #1 From Jakub Moc (RETIRED) 2007-07-15 04:32:13 0000 -------
error: grub_modules_init.h: Nincs ilyen fájl vagy könyvtár

??? Please set your locales to C when reporting bugs; also emerge --info is
mandatory.

------- Comment #2 From Attila Jecs 2007-07-16 13:11:38 0000 -------
Steps to Reproduce:
1. echo "sys-boot/grub **" >> /etc/portage/package.keywords
2. emerge grub

i686-pc-linux-gnu-gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W
-DGRUB_LIBDIR=\"//lib/grub/i386-pc\" -g -O2 -DGRUB_UTIL=1  -MD -c -o
grub_emu-util_grub_emu.o util/grub-emu.c
i686-pc-linux-gnu-gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W
-DGRUB_LIBDIR=\"//lib/grub/i386-pc\" -g -O2 -DGRUB_UTIL=1  -MD -c -o
grub_emu-util_misc.o util/misc.c
util/grub-emu.c:41:31: error: grub_modules_init.h: No such file or directory
util/grub-emu.c: In function 'main':
util/grub-emu.c:205: warning: implicit declaration of function 'grub_init_all'
util/grub-emu.c:211: warning: implicit declaration of function 'grub_fini_all'
make: *** [grub_emu-util_grub_emu.o] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: sys-boot/grub-1.95 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   grub-1.95.ebuild, line 30:   Called die
 *
 * making regular stuff
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/sys-boot/grub-1.95/temp/build.log'.
 *
wundiserver ~ # emerge --info
Portage 2.1.3_rc8 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0,
2.6.22-gentoo-r1 i686)
=================================================================
System uname: 2.6.22-gentoo-r1 i686 AMD Sempron(tm)
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 15 Jul 2007 14:50:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild
/etc/terminfo"
CXXFLAGS="-march=pentium3 -O3 -pipe -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at/ "
LANG="hu_HU.UTF-8"
LC_ALL="hu_HU.UTF-8"
LINGUAS="hu en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apache2 bash-completion berkdb bitmap-fonts bzip2 caps cdr
cli cracklib crypt cups dbus device-mapper disk-partition dri dvd dvdr fam ftp
gdbm gif gpm hal iconv isdnlog jpeg jpeg2k kde libg++ mad mmx mmxext mudflap
mysql ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3
qt4 readline reflection samba session slang spl sse ssl svg symlink tcpd tiff
tk truetype-fonts type1-fonts unicode x86 xcomposite xorg zlib"
ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard
mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="hu en"
USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Attila Jecs 2007-07-16 13:14:44 0000 -------
I acually solved the problem by setting MAKEOPTS to -j1, but I don't know if
this is a solution or just a workaround.

------- Comment #4 From Kevin Lacquement 2007-07-16 14:58:19 0000 -------
Created an attachment (id=125030) [details]
Patch to add header deps to .o files

The current makefile works by fluke, here's a patch to ensure headers are built
before the corresponding .o files

------- Comment #5 From Kevin Lacquement 2007-07-16 14:58:37 0000 -------
Created an attachment (id=125032) [details]
ebuild patch to apply the source patch

------- Comment #6 From SpanKY 2007-07-17 06:29:11 0000 -------
where did that patch come from ?  it isnt in the upstream cvs ... if you wrote
it, you should send the patch to the grub peeps please

------- Comment #7 From Kevin Lacquement 2007-07-17 09:20:43 0000 -------
That was mine, I'm sending it upstream now.

------- Comment #8 From Kevin Lacquement 2007-07-17 14:33:33 0000 -------
Looks like upstream already has this fixed in CVS.  I don't know if they have
any plans to release an updated tarball any time soon.

------- Comment #9 From SpanKY 2007-08-25 17:09:12 0000 -------
added to the tree, thanks