View previous topic :: View next topic |
Author |
Message |
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Fri Feb 09, 2024 10:05 am Post subject: genkernel: failed to compare the "prepare" target |
|
|
Hi
I am currently istalling gentoo on a new laptop.
I ran genkernel --mountboot --menuconfig all (only changed the entry for the hibernation partition in menuconfig bu soon it failed: Code: |
* kernel: >> Initializing ...
* >> Previous config backed up to .config--2024-02-09--10-51-45.bak
* >> Running 'make mrproper' ...
* >> Running 'make oldconfig' ...
* >> Invoking menuconfig ...
* >> Kernel config was not modified!
* >> Re-running 'make oldconfig' due to changed kernel options ...
* ERROR: compile_generic() failed to compile the "prepare" target!
|
Inside 'var/log/genkernel.log is saw: Code: |
...
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: '-fcf-protection=branch' is not supported for this target
make[2]: *** [scripts/Makefile.build:243: scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: '-fcf-protection=branch' is not supported for this target
make[2]: *** [scripts/Makefile.build:116: scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** [/usr/src/linux-6.6.13-gentoo/Makefile:1201: prepare0] Error 2
make[1]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc /usr/src/linux-6.6.13-gentoo/tools/objtool/objtool-in.o -lelf /usr/src/linux-6.6.13-gentoo/tools/objtool/libsubcmd/libsubcmd.a -o /usr/src/linux-6.6.13-gentoo/tools/objtool/objtool
/var/log/genkernel.log lines 6377-6410/6426 100%
|
I do have an x86:64 cpu (13th Gen Intel(R) Core(TM) i7-1355U) but i don't know to which CPU selection the error message refers to...
Can anybody help here? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21722
|
Posted: Fri Feb 09, 2024 3:57 pm Post subject: |
|
|
I see near the end of your output a reference to i686-pc-linux-gnu-gcc, which seems wrong if you are using a 64-bit kernel on a 64-bit capable CPU. Please post the output of emerge --info (so we can see gcc and binutils versions), pastebin the full build.log, and pastebin the kernel configuration you tried to use. Also, check for stray environment variables, such as ARCH, that may have confused the build process. |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Fri Feb 09, 2024 5:36 pm Post subject: |
|
|
It sems i have downloaded Code: | stage3-i686-openrc-20240205T200142Z.tar.xz |
Should i have downloaded this one for an intel cpu Code: | stage3-amd64-openrc-20240204T1348292.tar.xz
| ? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21722
|
Posted: Fri Feb 09, 2024 5:41 pm Post subject: |
|
|
Yes. i686 is for 32-bit CPUs from both Intel and AMD. amd64 is for 64-bit CPUs from both Intel and AMD. |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 668 Location: Switzerland
|
Posted: Sun Feb 11, 2024 5:08 pm Post subject: |
|
|
I now redid every thing with the amd stage3.
However, genkernel is still failing, though with a different message_ Code: | ...
#
# No change to .config
#
* >> Checking if required kernel options are still present ...
* - 'CONFIG_TMPFS' is set to 'y'
* - 'CONFIG_TTY' is set to 'y'
* - 'CONFIG_UNIX98_PTYS' is set to 'y'
* - 'CONFIG_MICROCODE' is set to 'y'
* - 'CONFIG_CPU_SUP_AMD' is set to 'y'
* - 'CONFIG_CPU_SUP_INTEL' is set to 'y'
* - 'CONFIG_RD_XZ' is set to 'y'
COMMAND: nice -n10 make -j2 ARCH='x86' AS='x86_64-pc-linux-gnu-as' AR='x86_64-pc-linux-gnu-ar' CC='x86_64-pc-linux-gnu-gcc' LD='x86_64-pc-linux-gnu-ld' NM='x86_64-pc-linux-gnu-nm' OBJCOPY='x86_64-pc-linux-gnu-objcopy' OBJDUMP='x86_64-pc-linux-gnu-objdump' READELF='x86_64-pc-linux-gnu-readelf' STRIP='x86_64-pc-linux-gnu-strip' HOSTAR='x86_64-pc-linux-gnu-ar' HOSTCC='x86_64-pc-linux-gnu-gcc' HOSTCXX='x86_64-pc-linux-gnu-g++' HOSTLD='x86_64-pc-linux-gnu-ld' prepare
SYNC include/config/auto.conf
GEN arch/x86/include/generated/asm/orc_hash.h
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [arch/x86/Makefile:248: archheaders] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:234: __sub-make] Error 2
* ERROR: compile_generic() failed to compile the "prepare" target! |
The output of emerge --info: Code: | Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-1355U-with-glibc2.38
KiB Mem: 32589932 total, 21362164 free
KiB Swap: 67108860 total, 67108860 free
Timestamp of repository gentoo: Sun, 11 Feb 2024 08:30:02 +0000
Head commit of repository gentoo: b19d426bb4270f876855b0f1db12b4420100fa2d
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.71-r6::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.27.9::gentoo
dev-build/libtool: 2.4.7-r1::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.0-r2::gentoo
dev-lang/perl: 5.38.2-r1::gentoo
dev-lang/python: 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin: 1.74.1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/openrc: 0.53::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/llvm: 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r10::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 3
sync-rsync-verify-metamanifest: yes
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-builtin-strlen -mavx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fno-builtin-strlen -mavx"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe -fno-builtin-strlen -mavx"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fno-builtin-strlen -mavx"
GENTOO_MIRRORS="rsync://ftp.tu-ilmenau.de/gentoo/ rsync://ftp.fau.de/gentoo https://mirror.init7.net/gentoo/ rsync://mirror.init7.net/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
There seems to be no ARCH defined
Regarding the kernel configuration: I used genkernel --menuconfig all and only set the value for the hibernation partition - all the rest i left in the default state. |
|
Back to top |
|
|
|
|
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
|
|