Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel all error : Failed to compile the "prepare" target
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pgn508
n00b
n00b


Joined: 23 Sep 2016
Posts: 5

PostPosted: Fri Sep 23, 2016 11:09 am    Post subject: genkernel all error : Failed to compile the "prepare&qu Reply with quote

Hi gentoo's , i am a noob ( :? :? ) , i am installing it now but i am stuck into the genkernel section , the compilation has been failed for the 3rd installation .
1- the stageball is I686 version .
2- installing with LiveDVD under VirtuelBox [ 20Gb Vdi , 800MB Ram , internet established connection )
3- i chroot with : linux32 chroot ( i read other post that indicate the problem of when the processor arch is 64bit and they just chroot as 32Bit but this does not work for me)
4-
Code:
cat /proc/cpuinfo ----------------------------------------------------------------------
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 58
model name      : Intel(R) Pentium(R) CPU G2010 @ 2.80GHz
stepping        : 9
microcode       : 0x19
cpu MHz         : 2793.670
cache size      : 3072 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 rdtscp constant_tsc xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt xsave hypervisor lahf_lm
bugs            :
bogomips        : 5587.34
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
-----------------------------------------------------------------------------------------
[genkernel all
* Gentoo Linux Genkernel; Version 3.4.52.3
* Running with options: all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

* Linux Kernel 4.4.6-gentoo for x86...
* .. with config file /usr/share/genkernel/arch/x86/generated-config
* kernel: Using config from /usr/share/genkernel/arch/x86/generated-config
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
* ERROR: Failed to compile the "prepare" target...
*
* -- Grepping log... --
*
*  SHIPPED scripts/kconfig/zconf.lex.c
*  SHIPPED scripts/kconfig/zconf.hash.c
*  HOSTCC  scripts/kconfig/zconf.tab.o
*  HOSTLD  scripts/kconfig/conf
*scripts/kconfig/conf  --oldconfig Kconfig
*.config:31:warning: symbol value 'm' invalid for X86_INTEL_PSTATE
*.config:2289:warning: override: FB_MB862XX_LIME changes choice state
*.config:2710:warning: symbol value 'm' invalid for AB3100_CORE
*.config:2719:warning: symbol value 'm' invalid for MFD_WM8400
*.config:2720:warning: symbol value 'm' invalid for MFD_WM8350_I2C
*.config:2721:warning: symbol value 'm' invalid for MFD_WM8350
*.config:2722:warning: symbol value 'm' invalid for MFD_WM831X
*.config:3368:warning: symbol value 'm' invalid for POWER_SUPPLY
*--
*Allow for memory compaction (COMPACTION) [Y/n/?] y
*  Page migration (MIGRATION) [Y/?] y
*Enable bounce buffers (BOUNCE) [Y/n/?] (NEW)
*Enable KSM for page merging (KSM) [Y/n/?] y
*Low address space to protect from user allocation (DEFAULT_MMAP_MIN_ADDR) [4096] 4096
*Enable recovery from hardware memory errors (MEMORY_FAILURE) [Y/n/?] y
*--
*  ACPI tables override via initrd (ACPI_INITRD_TABLE_OVERRIDE) [N/y/?] (NEW)
*  Debug Statements (ACPI_DEBUG) [N/y/?] (NEW)
*  PCI slot detection driver (ACPI_PCI_SLOT) [Y/n/?] y
*  Container and Module Devices (ACPI_CONTAINER) [Y/?] (NEW) y
*  Smart Battery System (ACPI_SBS) [N/m/y/?] (NEW)
*  Hardware Error Device (ACPI_HED) [Y/?] y
*  Allow ACPI methods to be inserted/replaced at run time (ACPI_CUSTOM_METHOD) [N/m/y/?] (NEW)
*  ACPI NVDIMM Firmware Interface Table (NFIT) (ACPI_NFIT) [N/m/y/?] (NEW)
*  ACPI Platform Error Interface (APEI) (ACPI_APEI) [Y/n/?] y
*    APEI Generic Hardware Error Source (ACPI_APEI_GHES) [Y/n/?] y
*    APEI PCIe AER logging/recovering support (ACPI_APEI_PCIEAER) [Y/n/?] y
*    APEI memory error recovering support (ACPI_APEI_MEMORY_FAILURE) [Y/n/?] y
*    APEI Error INJection (EINJ) (ACPI_APEI_EINJ) [M/n/y/?] m
*    APEI Error Record Serialization Table (ERST) Debug Support (ACPI_APEI_ERST_DEBUG) [M/n/y/?] m
*  Extended Error Log support (ACPI_EXTLOG) [N/m/y/?] (NEW)
*--
* Bus options (PCI etc.)
*
*PCI support (PCI) [Y/n/?] y
*  Support mmconfig PCI config space access (PCI_MMCONFIG) [N/y] (NEW)
*  PCI Express Port Bus support (PCIEPORTBUS) [Y/n/?] 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
*--
*      *
*      round-robin scheduling (IP_VS_RR) [M/n/?] m
*      weighted round-robin scheduling (IP_VS_WRR) [M/n/?] m
*      least-connection scheduling (IP_VS_LC) [M/n/?] m
*      weighted least-connection scheduling (IP_VS_WLC) [M/n/?] m
*      weighted failover scheduling (IP_VS_FO) [N/m/?] (NEW)
*--
*  * Wireless
*  *
*  Wireless (WIRELESS) [Y] y
*    cfg80211 - wireless configuration API (CFG80211) [M/n/?] m
*      nl80211 testmode command (NL80211_TESTMODE) [N/y/?] n
*      enable developer warnings (CFG80211_DEVELOPER_WARNINGS) [N/y/?] n
*--
*SCSI CDROM support (BLK_DEV_SR) [M/n/y/?] m
*  Enable vendor-specific extensions (for SCSI CDROM) (BLK_DEV_SR_VENDOR) [Y/n/?] y
*SCSI generic support (CHR_DEV_SG) [M/n/y/?] m
*SCSI media changer support (CHR_DEV_SCH) [M/n/y/?] m
*SCSI Enclosure Support (SCSI_ENCLOSURE) [M/n/?] m
*Verbose SCSI error reporting (kernel size +=75K) (SCSI_CONSTANTS) [Y/n/?] y
*--
*  Compile All OSD modules with lots of DEBUG prints (SCSI_OSD_DEBUG) [N/y/?] n
*
* Serial ATA and Parallel ATA drivers (libata)
*
*Serial ATA and Parallel ATA drivers (libata) (ATA) [Y/n/m/?] y
*  Verbose ATA error reporting (ATA_VERBOSE_ERROR) [Y/n/?] y
*--
*      IP-over-InfiniBand data path debugging (INFINIBAND_IPOIB_DEBUG_DATA) [N/y/?] n
*  InfiniBand SCSI RDMA Protocol (INFINIBAND_SRP) [M/n/?] m
*  InfiniBand SCSI RDMA Protocol target support (INFINIBAND_SRPT) [N/m/?] (NEW)
*  iSCSI Extensions for RDMA (iSER) (INFINIBAND_ISER) [M/n/?] m
*
* EDAC (Error Detection And Correction) reporting
*
*EDAC (Error Detection And Correction) reporting (EDAC) [Y/n/?] y
*  EDAC legacy sysfs (EDAC_LEGACY_SYSFS) [Y/n/?] y
*  Debugging (EDAC_DEBUG) [N/y/?] n
*  Decode MCEs in human-readable form (only on AMD for now) (EDAC_DECODE_MCE) [M/n/y/?] m
*  Main Memory EDAC (Error Detection And Correction) reporting (EDAC_MM_EDAC) [M/n/y/?] m
*    AMD64 (Opteron, Athlon64) (EDAC_AMD64) [M/n/?] m
*      Sysfs HW Error injection facilities (EDAC_AMD64_ERROR_INJECTION) [Y/n/?] y
*--
*  JFS statistics (JFS_STATISTICS) [N/y/?] n
*XFS filesystem support (XFS_FS) [M/n/y/?] m
*  XFS Quota support (XFS_QUOTA) [Y/n/?] y
*  XFS POSIX ACL support (XFS_POSIX_ACL) [Y/n/?] y
*  XFS Realtime subvolume support (XFS_RT) [N/y/?] n
*  XFS Verbose Warnings (XFS_WARN) [N/y/?] (NEW)
*--
*Inotify support for userspace (INOTIFY_USER) [Y/n/?] y
*Filesystem wide access notification (FANOTIFY) [Y/n/?] y
*  fanotify permissions checking (FANOTIFY_ACCESS_PERMISSIONS) [N/y/?] (NEW)
*Quota support (QUOTA) [Y/n/?] y
*Report quota messages through netlink interface (QUOTA_NETLINK_INTERFACE) [Y/n/?] y
*Print quota warnings to console (OBSOLETE) (PRINT_QUOTA_WARNING) [Y/n/?] y
*--
*torture tests for RCU (RCU_TORTURE_TEST) [N/m/y/?] n
*RCU CPU stall timeout in seconds (RCU_CPU_STALL_TIMEOUT) [21] (NEW)
*Enable tracing for RCU (RCU_TRACE) [N/y/?] n
*Provide debugging asserts for adding NO_HZ support to an arch (RCU_EQS_DEBUG) [N/y/?] (NEW)
*Force extended block device numbers and spread them (DEBUG_BLOCK_EXT_DEVT) [N/y/?] n
*Notifier error injection (NOTIFIER_ERROR_INJECTION) [N/m/y/?] (NEW)
*--
*  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
*  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
*  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
*  CHK     include/generated/timeconst.h
*  CC      kernel/bounds.s
*kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set
* /*
* ^
*Kbuild:44: recipe for target 'kernel/bounds.s' failed
*make[1]: *** [kernel/bounds.s] Error 1
*make[1]: *** Waiting for unfinished jobs....
*  UPD     include/generated/timeconst.h
*Makefile:986: recipe for target 'prepare0' failed
*make: *** [prepare0] Error 2
*--
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..
*
* ERROR: Failed to compile the "prepare" 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!
][/code]

Last edited by pgn508 on Fri Sep 23, 2016 11:56 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21796
Location: here

PostPosted: Fri Sep 23, 2016 11:24 am    Post subject: Reply with quote

Can you post output of
Code:
# grep CONFIG_X86_MINIMUM_CPU_FAMILY .config

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pgn508
n00b
n00b


Joined: 23 Sep 2016
Posts: 5

PostPosted: Fri Sep 23, 2016 11:25 am    Post subject: Reply with quote

Code:
grep CONFIG_X86_MINIMUM_CPU_FAMILY .config
grep: .config: No such file or directory


this is it , sorry but i am confused
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21796
Location: here

PostPosted: Fri Sep 23, 2016 11:30 am    Post subject: Reply with quote

.config file is in /usr/src/linux/ directory
Code:
# grep CONFIG_X86_MINIMUM_CPU_FAMILY  /usr/src/linux/.config

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pgn508
n00b
n00b


Joined: 23 Sep 2016
Posts: 5

PostPosted: Fri Sep 23, 2016 11:34 am    Post subject: Reply with quote

Code:
(chroot) livecd / # grep CONFIG_X86_MINIMUM_CPU_FAMILY  /usr/src/linux/.config
CONFIG_X86_MINIMUM_CPU_FAMILY=64

does this mean that the genkernel assume i run 64bit while i do 32 bit ?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21796
Location: here

PostPosted: Fri Sep 23, 2016 11:37 am    Post subject: Reply with quote

pgn508 wrote:
does this mean that the genkernel assume i run 64bit while i do 32 bit ?

You need run menuconfig (option for genkernel is --menuconfig) and disable [ ] 64-bit kernel option.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pgn508
n00b
n00b


Joined: 23 Sep 2016
Posts: 5

PostPosted: Fri Sep 23, 2016 11:45 am    Post subject: Reply with quote

i do it and unmarked 64bit kernel , it seem gonna work , i will marked as Solved if it work :)
Code:
genkernel --arch-override=x86 --menuconfig  all
* Gentoo Linux Genkernel; Version 3.4.52.3
* Running with options: --arch-override=x86 --menuconfig all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

* Linux Kernel 4.4.6-gentoo for x86...
* .. with config file /usr/share/genkernel/arch/x86/generated-config
* kernel: Using config from /usr/share/genkernel/arch/x86/generated-config
*         Previous config backed up to .config--2016-09-23--13-32-58.bak
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
* kernel: >> Invoking menuconfig...
*         >> Compiling 4.4.6-gentoo bzImage...
Back to top
View user's profile Send private message
pgn508
n00b
n00b


Joined: 23 Sep 2016
Posts: 5

PostPosted: Fri Sep 23, 2016 3:18 pm    Post subject: it work and the compilation succeded ;) Reply with quote

Thank you " fedeliallalinea " for your support it work greatly :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum