Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378667 - sys-kernel/genkernel-3.4.16 fails to complete bzImage on gentoo-sources-2.6.39-r3, error opening /var/tmp/genkernel/initramfs-2.6.38-std230-amd64.cpio.xz
Summary: sys-kernel/genkernel-3.4.16 fails to complete bzImage on gentoo-sources-2.6.3...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal critical
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 14:30 UTC by Roelof Wobben
Modified: 2011-08-12 19:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel.log (genkernel.log,135.33 KB, text/plain)
2011-08-10 14:32 UTC, Roelof Wobben
Details
log of the second error message (genkernel.log,267.35 KB, text/plain)
2011-08-11 13:48 UTC, Roelof Wobben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roelof Wobben 2011-08-10 14:30:56 UTC
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
Comment 1 Roelof Wobben 2011-08-10 14:32:49 UTC
Created attachment 282829 [details]
genkernel.log
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2011-08-10 16:53:30 UTC
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?
Comment 3 Roelof Wobben 2011-08-10 16:56:09 UTC
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
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-08-10 16:57:55 UTC
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.
Comment 5 Dustin Polke 2011-08-10 19:15:50 UTC
(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.
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-08-10 19:56:55 UTC
Option or when initgrated-initramfs is on. And check + friendly info that initrd file doesn't exist as a fallback.
Comment 7 Roelof Wobben 2011-08-11 07:35:16 UTC
oke, 

What must I now do to make it work with Systemrescuecd ?

Roelof
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-08-11 11:08:43 UTC
Just remove the path from CONFIG_INITRAMFS_SOURCE.
Comment 9 Roelof Wobben 2011-08-11 11:44:52 UTC
Oke, 

And that don't intefer with the next step of the handbook.
Making a initramfs ?
Comment 10 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-08-11 11:50:39 UTC
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.
Comment 11 Roelof Wobben 2011-08-11 13:47:15 UTC
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
Comment 12 Roelof Wobben 2011-08-11 13:48:01 UTC
Created attachment 282917 [details]
log of the second error message
Comment 13 Dustin Polke 2011-08-11 13:52:36 UTC
(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
Comment 14 Roelof Wobben 2011-08-11 13:56:01 UTC
ls -lad /boot gives this output :

drwxr-xr-x 3 root root 1024 Aug 11 17:31 /boot

roelof
Comment 15 Roelof Wobben 2011-08-11 13:58:41 UTC
(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
Comment 16 Ian Stakenvicius (RETIRED) gentoo-dev 2011-08-12 16:13:03 UTC
(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?
Comment 17 Ian Stakenvicius (RETIRED) gentoo-dev 2011-08-12 19:48:15 UTC
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.