Find the answer to your Linux question:
Results 1 to 7 of 7
I got this when I try to compile kernel, and I also tried to configure kernel manually but I got this same error. What should I try now? I have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2

    Compiling kernel


    I got this when I try to compile kernel, and I also tried to configure kernel manually but I got this same error. What should I try now? I have this kernel source: linux-2.6.34-gentoo-r1


    Code:
    with attribute warn_unused_result
    scripts/kconfig/conf.c: In function 'conf_choice':
    scripts/kconfig/conf.c:307: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
    --
      SHIPPED scripts/kconfig/lex.zconf.c
      SHIPPED scripts/kconfig/zconf.hash.c
      HOSTCC  scripts/kconfig/zconf.tab.o
    In file included from scripts/kconfig/zconf.tab.c:2451:
    scripts/kconfig/confdata.c: In function 'conf_write':
    scripts/kconfig/confdata.c:508: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    scripts/kconfig/confdata.c: In function 'conf_write_autoconf':
    scripts/kconfig/confdata.c:759: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    scripts/kconfig/confdata.c:760: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    In file included from scripts/kconfig/zconf.tab.c:2452:
    scripts/kconfig/expr.c: In function 'expr_print_file_helper':
    scripts/kconfig/expr.c:1090: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
      HOSTLD  scripts/kconfig/conf
    scripts/kconfig/conf -o arch/x86/Kconfig
    .config:721:warning: symbol value 'm' invalid for RFKILL_INPUT
    .config:2255:warning: symbol value 'm' invalid for DRAGONRISE_FF
    .config:2272:warning: symbol value 'm' invalid for GREENASIA_FF
    .config:2274:warning: symbol value 'm' invalid for THRUSTMASTER_FF
    .config:2275:warning: symbol value 'm' invalid for ZEROPLUS_FF
    .config:2424:warning: symbol value 'm' invalid for MMC_RICOH_MMC
    --
    Sparse Memory virtual memmap (SPARSEMEM_VMEMMAP) [Y/n/?] y
    Allow for memory hot-add (MEMORY_HOTPLUG) [Y/n] y
      Allow for memory hot remove (MEMORY_HOTREMOVE) [Y/n] y
    Page migration (MIGRATION) [Y/n/?] y
    Enable KSM for page merging (KSM) [N/y/?] (NEW) Low address space to protect from user allocation (DEFAULT_MMAP_MIN_ADDR) [4096] 4096
    Enable recovery from hardware memory errors (MEMORY_FAILURE) [N/y/?] (NEW) Check for low memory corruption (X86_CHECK_BIOS_CORRUPTION) [N/y/?] n
    --
    * Bus options (PCI etc.)
    *
    PCI support (PCI) [Y/n/?] y
      Support mmconfig PCI config space access (PCI_MMCONFIG) [Y/n] y
    PCI Express support (PCIEPORTBUS) [Y/n/?] y
      Root Port Advanced Error Reporting support (PCIEAER) [Y/n/?] y
        PCI Express ECRC settings control (PCIE_ECRC) [N/y/?] (NEW)     PCIe AER error injector support (PCIEAER_INJECT) [N/m/y/?] (NEW)   PCI Express ASPM support(Experimental) (PCIEASPM) [N/y/?] n
    --
    Marvell Bluetooth driver support (BT_MRVL) [N/m/?] (NEW) Atheros firmware download driver (BT_ATH3K) [N/m/?] (NEW) *
    * Wireless
    *
    Wireless (WIRELESS) [Y] y
      cfg80211 - wireless configuration API (CFG80211) [M/n/?] m
        nl80211 testmode command (NL80211_TESTMODE) [N/y/?] (NEW)     enable developer warnings (CFG80211_DEVELOPER_WARNINGS) [N/y/?] (NEW)     cfg80211 regulatory debugging (CFG80211_REG_DEBUG) [N/y/?] n
    --
        Compile in debug mode (AIC94XX_DEBUG) [N/y/?] n
      Marvell 88SE64XX/88SE94XX SAS/SATA support (SCSI_MVSAS) [M/n/y/?] m
        Compile in debug mode (SCSI_MVSAS_DEBUG) [Y/n/?] (NEW)   Adaptec I2O RAID support  (SCSI_DPT_I2O) [M/n/y/?] m
      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) [N/y/?] n
    --
      PMC SIERRA Linux MaxRAID adapter support (SCSI_PMCRAID) [N/m/y/?] (NEW)   PMC-Sierra SPC 8001 SAS/SATA Based Host Adapter driver (SCSI_PM8001) [N/m/y/?] (NEW)   SCSI RDMA Protocol helper library (SCSI_SRP) [M/n/y/?] m
      Brocade BFA Fibre Channel Support (SCSI_BFA_FC) [N/m/y/?] (NEW) *
    * Serial ATA and Parallel ATA drivers
    *
    Serial ATA and Parallel ATA drivers (ATA) [M/n/y/?] m
      Verbose ATA error reporting (ATA_VERBOSE_ERROR) [Y/n/?] (NEW)   ATA ACPI Support (ATA_ACPI) [Y/n/?] y
    --
    Intel SCH LPC (LPC_SCH) [M/y/?] (NEW) *
    * Voltage and Current Regulator Support
    *
    Voltage and Current Regulator Support (REGULATOR) [Y/n/?] y
      Regulator debug support (REGULATOR_DEBUG) [N/y/?] n
      Provide a dummy regulator if regulator lookups fail (REGULATOR_DUMMY) [N/y/?] (NEW)   Fixed voltage regulator support (REGULATOR_FIXED_VOLTAGE) [M/n/y/?] m
    --
    Dnotify support (DNOTIFY) [Y/n/?] y
    Inotify file change notification support (INOTIFY) [Y/n/?] y
    Inotify support for userspace (INOTIFY_USER) [Y/n/?] y
    Quota support (QUOTA) [Y/?] y
    Report quota messages through netlink interface (QUOTA_NETLINK_INTERFACE) [N/y/?] n
    Print quota warnings to console (OBSOLETE) (PRINT_QUOTA_WARNING) [Y/n/?] y
    --
      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/basic/docproc
      HOSTCC  scripts/basic/hash
      HOSTCC  scripts/kconfig/conf.o
    scripts/kconfig/conf.c: In function 'conf_askvalue':
    scripts/kconfig/conf.c:105: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
    scripts/kconfig/conf.c: In function 'conf_choice':
    scripts/kconfig/conf.c:307: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
      HOSTCC  scripts/kconfig/kxgettext.o
      HOSTCC  scripts/kconfig/zconf.tab.o
    In file included from scripts/kconfig/zconf.tab.c:2451:
    scripts/kconfig/confdata.c: In function 'conf_write':
    scripts/kconfig/confdata.c:508: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    scripts/kconfig/confdata.c: In function 'conf_write_autoconf':
    scripts/kconfig/confdata.c:759: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    scripts/kconfig/confdata.c:760: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    In file included from scripts/kconfig/zconf.tab.c:2452:
    scripts/kconfig/expr.c: In function 'expr_print_file_helper':
    scripts/kconfig/expr.c:1090: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    --
      SHIPPED scripts/genksyms/parse.h
      SHIPPED scripts/genksyms/keywords.c
      SHIPPED scripts/genksyms/parse.c
      HOSTCC  scripts/genksyms/lex.o
    scripts/genksyms/lex.c: In function 'yylex1':
    scripts/genksyms/lex.l:97: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    --
      HOSTCC  scripts/genksyms/parse.o
      HOSTLD  scripts/genksyms/genksyms
      HOSTCC  scripts/mod/sumversion.o
      HOSTCC  scripts/kallsyms
    scripts/kallsyms.c: In function 'read_symbol':
    scripts/kallsyms.c:112: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
    --
      LD      net/sunrpc/auth_gss/built-in.o
      LD      net/sunrpc/built-in.o
      LD      net/built-in.o
      LD      vmlinux.o
      MODPOST vmlinux.o
    WARNING: modpost: Found 42 section mismatch(es).
    --
      CC      arch/x86/boot/printf.o
      CC      arch/x86/boot/regs.o
      OBJCOPY arch/x86/boot/compressed/vmlinux.bin
      HOSTCC  arch/x86/boot/compressed/mkpiggy
    arch/x86/boot/compressed/mkpiggy.c: In function 'main':
    arch/x86/boot/compressed/mkpiggy.c:65: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
      CC      arch/x86/boot/string.o
      CC      arch/x86/boot/tty.o
      LZMA    arch/x86/boot/compressed/vmlinux.bin.lzma
    /bin/sh: lzma: command not found
    make[2]: *** [arch/x86/boot/compressed/vmlinux.bin.lzma] Error 1
    make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make: *** [bzImage] Error 2
    * Gentoo Linux Genkernel; Version 3.4.10.906
    * Running with options: all
    
    * ERROR: Failed to compile the "bzImage" target...
    
    * -- End log... --
    Last edited by MikeTbob; 07-14-2010 at 01:23 PM. Reason: Added code tags

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    /bin/sh: lzma: command not found
    Obviously the lzma utility is missing. I don't know whether it should be in your PATH or if it should have been compiled in the linux tree. I would reconfigure and deactivate everything related to lzma :

    CONFIG_KERNEL_LZMA
    CONFIG_RD_LZMA
    CONFIG_DECOMPRESS_LZMA
    Don't know if you would succeed... keep us informed...
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Location
    Brazil
    Posts
    7
    What is your gcc version?

    Anyway, I can see mostly two kind of errors:

    warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result

    This tells you that fwrite is being handled as void, i.e., the result of fwrite is not assigned to anyone. Depending on your compiler version, there is a flag that solve this issue.

    The second error: warning: symbol value 'm' invalid for DRAGONRISE_FF

    It seems an error in your configuration. Did you configured the kernel by editing the .config file? If so, you shouldn't. This error seems to tell that DRAGONRISE_FF (for example), can't be compiled as module (or its dependencies don't allow it). Use only make menuconfig (gconfig, xconfig) for configuration.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    Though the warning messages should be considered, they are not fatal and the compilation should have completed despite warnings. Your missing lzma stopped the process.
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  6. #5
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2
    I solved this issue by updating genkernel, but now I can't boot it. I get kernel panic.

  7. #6
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Are you following the Gentoo handbook? It's really hard to go wrong if you follow the handbook religiously.
    Gentoo Linux Documentation -- Gentoo Handbook
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  8. #7
    Just Joined!
    Join Date
    Oct 2010
    Posts
    10
    Just in case, add this to your Bash profile:

    PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:
    export PATH

    lzma - Compression method of 7z format in 7-Zip program

    You are going to need to install that package. I donīt remember CentOS yum search command right now but i am sure you get with the above help to right direction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •