Build grub-0.97 with automake >= 1.11.2 failed with error due to more strict rules in latest automake version: `pkglibdir' is not a legitimate directory for `DATA' As workaround I reinstalled automake 1.11.1 and successfully build grub with it. Reproducible: Always Steps to Reproduce: 1. emerge grub 2. Failed with errors 3. # cat /var/tmp/portage/sys-boot/grub-0.97-r10/temp/automake.out ***** automake ***** ***** PWD: /var/tmp/portage/sys-boot/grub-0.97-r10/work/grub-0.97 ***** automake --add-missing --copy docs/Makefile.am:30: `%'-style pattern rules are a GNU make extension docs/Makefile.am:33: `%'-style pattern rules are a GNU make extension docs/Makefile.am:36: `%'-style pattern rules are a GNU make extension docs/Makefile.am:3: compiling `kernel.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac' stage1/Makefile.am:2: `pkglibdir' is not a legitimate directory for `DATA' stage2/Makefile.am:35: `pkglibdir' is not a legitimate directory for `DATA' Actual Results: Grub build failed. Expected Results: Grub successfully installed.
Created attachment 298049 [details] emerge --info
I can confirm the problem. I wasted an hour thinking it was a gcc problem. Downgrading in my chrooted environment, I hope that downgrading automake won't break anything.
*** This bug has been marked as a duplicate of bug 396683 ***