Hello, Im following the handbook and now trying to make the genkernel work. But it's fails with this message : genkernel all * Gentoo Linux Genkernel; Version 3.4.16 * Running with options: all * Linux Kernel 2.6.39-gentoo-r3 for x86_64... * kernel: Using config from /usr/share/genkernel/arch/x86_64/kernel-config * Previous config backed up to .config--2011-08-10--18-28-06.bak * kernel: >> Running mrproper... * >> Running oldconfig... * kernel: >> Cleaning... * >> Compiling 2.6.39-gentoo-r3 bzImage... * ERROR: Failed to compile the "bzImage" target... * -- Grepping log... -- SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --oldconfig Kconfig .config:1190:warning: symbol value 'm' invalid for BT_L2CAP .config:1191:warning: symbol value 'm' invalid for BT_SCO -- Debug Statements (ACPI_DEBUG) [N/y/?] n PCI slot detection driver (ACPI_PCI_SLOT) [Y/n/m/?] y Container and Module Devices (EXPERIMENTAL) (ACPI_CONTAINER) [Y/?] y Memory Hotplug (ACPI_HOTPLUG_MEMORY) [M/n/y/?] m Smart Battery System (ACPI_SBS) [M/n/y/?] m Hardware Error Device (ACPI_HED) [M/y/?] m ACPI Platform Error Interface (APEI) (ACPI_APEI) [Y/n/?] y APEI Generic Hardware Error Source (ACPI_APEI_GHES) [M/n/y/?] m APEI PCIe AER logging/recovering support (ACPI_APEI_PCIEAER) [N/y/?] (NEW) APEI Error INJection (EINJ) (ACPI_APEI_EINJ) [N/m/y/?] n APEI Error Record Serialization Table (ERST) Debug Support (ACPI_APEI_ERST_DEBUG) [N/m/y/?] n -- Support for DMA Remapping Devices (EXPERIMENTAL) (DMAR) [Y/n/?] y Enable DMA Remapping Devices by default (DMAR_DEFAULT_ON) [Y/n/?] y Support for Interrupt Remapping (EXPERIMENTAL) (INTR_REMAP) [Y/n/?] y PCI Express support (PCIEPORTBUS) [Y/n/?] y PCI Express Hotplug driver (HOTPLUG_PCI_PCIE) [Y/n/m/?] y Root Port Advanced Error Reporting support (PCIEAER) [Y/n/?] y PCI Express ECRC settings control (PCIE_ECRC) [Y/n/?] y PCIe AER error injector support (PCIEAER_INJECT) [M/n/y/?] m -- Marvell 88SE64XX/88SE94XX SAS/SATA support (SCSI_MVSAS) [M/n/y/?] m Compile in debug mode (SCSI_MVSAS_DEBUG) [N/y/?] n Adaptec I2O RAID support (SCSI_DPT_I2O) [N/m/y/?] n AdvanSys SCSI support (SCSI_ADVANSYS) [M/n/y/?] m ARECA (ARC11xx/12xx/13xx/16xx) SATA/SAS RAID Host Adapter (SCSI_ARCMSR) [M/n/y/?] m Enable PCI Error Recovery Capability in Areca Driver(ARCMSR) (SCSI_ARCMSR_AER) [Y/n/?] y -- Brocade BFA Fibre Channel Support (SCSI_BFA_FC) [M/n/y/?] m * * Serial ATA and Parallel ATA drivers * Serial ATA and Parallel ATA drivers (ATA) [Y/n/m/?] y Verbose ATA error reporting (ATA_VERBOSE_ERROR) [Y/n/?] y -- Kprobes sanity tests (KPROBES_SANITY_TEST) [N/y/?] n Self test for the backtrace code (BACKTRACE_SELF_TEST) [N/m/y/?] n Force extended block device numbers and spread them (DEBUG_BLOCK_EXT_DEVT) [N/y/?] n Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] n Linux Kernel Dump Test Tool Module (LKDTM) [N/m/y/?] n CPU notifier error injection module (CPU_NOTIFIER_ERROR_INJECT) [N/m/y/?] n -- HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost CC init/main.o HOSTCC usr/gen_init_cpio /usr/src/linux-2.6.39-gentoo-r3/scripts/gen_initramfs_list.sh: Cannot open '/var/tmp/genkernel/initramfs-2.6.38-std230-amd64.cpio.xz' make[1]: *** [usr/initramfs_data.cpio.xz] Error 1 make: *** [usr] Error 2 -- LD init/mounts.o LD init/built-in.o * Gentoo Linux Genkernel; Version 3.4.16 * Running with options: all * ERROR: Failed to compile the "bzImage" target... * -- End log... -- * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively. * * Please do *not* report compilation failures as genkernel bugs! Reproducible: Always Steps to Reproduce: 1. emerge gentoo-sources 2. emerge genkernel 3. genkernel all Actual Results: its fails Expected Results: it will compile fine
Created attachment 282829 [details] genkernel.log
I just did a check on my system, with a newly-emerged genkernel-3.4.16 and gentoo-sources-2.6.39-r3 .. my arch is x86 instead of amd64, though, but it completed fine. Is it possible that you are using a modified /usr/share/genkernel/arch/x86_64/kernel-config file? ie, not the one that genkernel installed but one you copied or zcat'ed from the gentoo livecd?
Yep, I zcat a kernel config from the livecd because the manual say I have to do that I use the rescuecd for installing gentoo
If you remove path to initramfs from config, you will be fine. Although genkernel should do it by itself, shouldn't it? On no objections, I'll fix it.
(In reply to comment #4) > If you remove path to initramfs from config, you will be fine. Although > genkernel should do it by itself, shouldn't it? On no objections, I'll fix it. Do I understand you correctly that you want to remove CONFIG_INITRAMFS_SOURCE from config unconditionally? In this case, I would like to object as I have set there the path to v86d initramfs which would be ignored.
Option or when initgrated-initramfs is on. And check + friendly info that initrd file doesn't exist as a fallback.
oke, What must I now do to make it work with Systemrescuecd ? Roelof
Just remove the path from CONFIG_INITRAMFS_SOURCE.
Oke, And that don't intefer with the next step of the handbook. Making a initramfs ?
No. If you will use --intergrated-initramfs option, Genkernel will fill this option with appropriate value, otherwise it will be left empty which is ok.
Hello, That problem did not appear and it's solved. But now I see another message appear. I will attached the new genkernel.log Roelof
Created attachment 282917 [details] log of the second error message
(In reply to comment #12) > Created attachment 282917 [details] > log of the second error message Have you write access to /boot? Check what yields # ls -lad /boot
ls -lad /boot gives this output : drwxr-xr-x 3 root root 1024 Aug 11 17:31 /boot roelof
(In reply to comment #14) > ls -lad /boot gives this output : > > drwxr-xr-x 3 root root 1024 Aug 11 17:31 /boot > > roelof and the partition is mounted. See : /dev/sdb3 on / type jfs (rw,relatime) /dev/sdb1 on /boot type ext2 (rw,relatime,errors=continue) Roelof
(In reply to comment #3) > Yep, > > I zcat a kernel config from the livecd because the manual say I have to do that > I use the rescuecd for installing gentoo I would like to note that if this step is skipped, the (original) error does not occur. I had a few ppl in #gentoo try this for me and confirm. IMO, this bug is primarily there because of that step in the handbook; the genkernel package already installs default kernel_config files for each arch, what is the reason they need to be overwritten during the install from livecd?
I worked with the original poster to resolve the file copying issue; it had to do with a full /boot. I'm closing this one as RESOLVED/INVALID since it didn't end up being a genkernel bug at all.