Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel error [SOLVED]
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
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 5:33 am    Post subject: Genkernel error [SOLVED] Reply with quote

please, anyone can help me?

I'm not understanding this error on genkernel:

Quote:


(chroot) livecd / # 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
* Previous config backed up to .config--2016-09-18--21-09-29.bak
* 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)
*--
* HOSTCC arch/x86/tools/relocs_64.o
* HOSTCC arch/x86/tools/relocs_common.o
* HOSTLD arch/x86/tools/relocs
* 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!
*
(chroot) livecd / #



thanks all


Last edited by novatterra on Sun Sep 25, 2016 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Sep 19, 2016 9:07 am    Post subject: Reply with quote

Quote:
CPU you selected does not support x86-64 instruction set



According to this your hardware does not support 64bits or you are using any 32bit installation medium to install 64bit operating system


Please tell us the hardware you try to install this on.

Which processor / mainboard. Which installation medium you are using. Which type of gentoo you try to install.


Quote:
* Linux Kernel 4.4.6-gentoo for x86...
=> looks like 32 bit => aka i686
Back to top
View user's profile Send private message
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 2:18 pm    Post subject: Reply with quote

my laptop it's a celeron 2.13 - 1Gb RAM
- 686 (32bits)

I just do this comand:

emerge --ask sys-kernel/gentoo-sources

and It instale this kernel to me :(


how can I do this?
how can I config portage to install a kernell x86 to me and and use genkernel ?
Back to top
View user's profile Send private message
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 3:30 pm    Post subject: Reply with quote

I were reading my make.conf and I saw this line:

CHOST="i686-pc-linux-gnu"

can I change it for this? >> CHOST="x86-pc-linux-gnu"


I guess that this is the error
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Mon Sep 19, 2016 4:13 pm    Post subject: Reply with quote

you probably downloaded the 64 bit stage 3
mount the gentoo partitions and run
Code:
ls /mnt/gentoo
Verify you have the gentoo file system there (stage3 if you have not erased it; if stage 3 is present but i686 not amd64, Ihave misdiagnosed the problem):
Quote:
bin boot dev home lib lib32 lib64 media mnt opt proc root run sbin sys tmp usr var stage3-amd64-20160915.tar.bz2
Then destroy the contents of /mnt/gentoo:
Code:
 rm -rf /mnt/gentoo/*
Then
Code:
cd /mnt/gentoo
then resume the install using x86 version of the handbook: https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Stage[/quote]
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Mon Sep 19, 2016 4:30 pm    Post subject: Reply with quote

novatterra,

Boot your system and run the command grep ^lm /proc/cpuinfo
If you see lm your system is 64 bit capable. lahf_lm doesn't count.

Given that your celeron is a 64 bit CPU, if you have 2G RAM or more, do a 64 bit install. (amd64)
With less than 2G RAM, a i686 install may perform better.

There is no way to switch between i686 and amd64, its start over.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 4:45 pm    Post subject: Reply with quote

Hi guys it's me again

(I'm working in my gentoo's installation now, on this moment :D )

I pressed: "arch' and it show me: "i686"
but now after all this I know that it's x86 but all stages that I see on the mirror it's i686 but 64bits,

can I install a stage i484 ?
there's some problem on this (my arch it's i686)

this is the 4th time that I start my installation and it stop on the same error (I downloaded the wrong stage)

please, I need a link to RIGHT stage, I've downloaded the wrong 4 times,
4 times!!!!!
:oops:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Mon Sep 19, 2016 5:05 pm    Post subject: Reply with quote

novatterra,

Please do the grep test and tell if you have lm or not.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 5:42 pm    Post subject: Reply with quote

what's t grep test ???
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Mon Sep 19, 2016 6:08 pm    Post subject: Reply with quote

Quote:
what's t grep test ???

paste the output of the below.... and _read_ more carefully. It was just like 2 posts above.
Code:
grep '\(^\? \)*lm' /proc/cpuinfo



Quote:
I just do this comand:
emerge --ask sys-kernel/gentoo-sources
and It instale this kernel to me :(
how can I do this?
how can I config portage to install a kernell x86 to me and and use genkernel ?

- emerge gentoo-sources
- emerge genkernel
- genkernel all

This sequence will build and install highly generic kernel that is likely to work.
Back to top
View user's profile Send private message
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 6:20 pm    Post subject: Reply with quote

Quote:


Please do the grep test and tell if you have lm or not.




it's here the grep test
Quote:


flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm

Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Mon Sep 19, 2016 6:26 pm    Post subject: Reply with quote

novatterra,

Your CPU contains the lm flag. That means its 64 bit capable.

If you have 2G RAM or more, do an amd64 install.
If your RAM is less that 2G, do an i686 install.

Both are linked from the downloads page.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
novatterra
n00b
n00b


Joined: 29 Jul 2010
Posts: 16

PostPosted: Mon Sep 19, 2016 6:31 pm    Post subject: Reply with quote

I'm downloading stage3-i686, but on the genkernel's time ("genkernel all") it say me this:

*kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set

and no more work[/post]
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Sep 19, 2016 9:11 pm    Post subject: Reply with quote

You need to bootup a 32bit livecd to install a 32bit linux, alias i686.

Which livecd are you using to install gentoo?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Tue Sep 20, 2016 7:49 pm    Post subject: Reply with quote

or just add --arch-override=x86 to genkernel's command line to force target architecture and suppress autodetect feature.
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