View previous topic :: View next topic |
Author |
Message |
jhon987 Guru
Joined: 18 Nov 2013 Posts: 302
|
Posted: Wed May 08, 2024 5:53 am Post subject: post multilib migration cannot execute binary file: Exec for |
|
|
Yesterday i have reinstalled Gentoo using this stage: https://distfiles.gentoo.org/releases/amd64/autobuilds/20240505T170430Z/stage3-amd64-systemd-20240505T170430Z.tar.xz
This morning i booted into my re-installed gentoo in order to try using 32bit wine to see if it works but i get errors:
Code: | $ wine notepad
/etc/eselect/wine/bin/wine: line 2: /usr/lib/wine-vanilla-9.0/bin/wine: cannot execute binary file: Exec format error
/etc/eselect/wine/bin/wine: line 2: /usr/lib/wine-vanilla-9.0/bin/wine: Success |
wine64 on the other hand, works.
i tried reinstalling wine-vanilla only to encounter (taken from the config.log):
Code: | /var/tmp/portage/app-emulation/wine-vanilla-9.0/work/wine-9.0/configure: line 5345: ./conftest: cannot execute binary file: Exec format error
configure:5347: $? = 126
configure:5354: error: in `/var/tmp/portage/app-emulation/wine-vanilla-9.0/work/build32':
configure:5356: error: cannot run C compiled programs. |
i further tried reinstalling packages:
Code: | * Checking that IA32 emulation is enabled in the running kernel ...
/var/tmp/portage/sys-libs/glibc-2.38-r13/temp/environment: line 3374: /var/tmp/portage/sys-libs/glibc-2.38-r13/temp/check-ia32-emulation.elf32: cannot execute binary file: Exec format error [ !! ]
* ERROR: sys-libs/glibc-2.38-r13::gentoo failed (unpack phase):
* CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc.
*
* Call stack:
* ebuild.sh, line 136: Called src_unpack
* environment, line 3665: Called sanity_prechecks
* environment, line 3382: Called die
* The specific snippet of code:
* [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."; |
but it is enabled:
Code: | #
# Binary Emulations
#
CONFIG_IA32_EMULATION=y
CONFIG_X86_X32_ABI=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations |
Furthermore:
Code: | # eix glibc
[I] sys-libs/glibc
Available versions: (2.2) [M]~2.19-r3^s [M]2.31-r7^t [M]2.32-r8^t [M]2.33-r14^t [M]2.34-r14^t [M]2.35-r11^t [M]2.36-r8^t [M]2.37-r10^t 2.38-r10^t 2.38-r12^t 2.38-r13^t ~2.39-r4^t **9999*l^t
{audit caps cet +clone3 compile-locales +crypt custom-cflags debug doc experimental-loong gd hash-sysv-compat headers-only +multiarch multilib multilib-bootstrap nscd perl profile selinux +ssp stack-realign +static-libs static-pie suid systemd systemtap test vanilla}
Installed versions: 2.38-r13(2.2)^t(01:25:36 08/05/24)(caps cet multiarch multilib ssp stack-realign static-libs systemd -audit -compile-locales -crypt -custom-cflags -doc -gd -hash-sysv-compat -headers-only -multilib-bootstrap -nscd -perl -profile -selinux -suid -systemtap -test -vanilla)
Homepage: https://www.gnu.org/software/libc/
Description: GNU libc C library
|
and also:
Code: | [I] sys-devel/gcc
Available versions:
(8.5.0) [M]8.5.0-r1^t
(9.5.0) [M]9.5.0^t
(10) [M]10.5.0^t
(11) 11.4.1_p20240111^t ~11.4.1_p20240404^t ~11.4.1_p20240501^t **11.5.9999*l^t
(12) 12.3.1_p20240209^t ~12.3.1_p20240502^t **12.4.9999*l^t
(13) 13.2.1_p20240210^t **13.2.1_p20240426^t ~13.2.1_p20240503^t **13.3.9999*l^t
(14) **14.0.1_pre20240430^t **14.0.1_pre20240503^t **14.0.9999*l^t
(15) **15.0.0_pre20240428^t **15.0.9999*l^t
{ada cet custom-cflags +cxx d debug default-stack-clash-protection default-znow doc fixed-point +fortran go graphite hardened ieee-long-double jit libssp lto modula2 multilib +nls objc objc++ objc-gc (+)openmp pch pgo +pie rust +sanitize +ssp systemtap test valgrind vanilla vtv zstd}
Installed versions: 13.2.1_p20240210(13)^t(02:23:23 08/05/24)(cet cxx default-stack-clash-protection default-znow fortran lto multilib nls openmp pie sanitize ssp zstd -ada -custom-cflags -d -debug -doc -fixed-point -go -graphite -hardened -ieee-long-double -jit -libssp -modula2 -objc -objc++ -objc-gc -pch -pgo -systemtap -test -valgrind -vanilla -vtv)
Homepage: https://gcc.gnu.org/
Description: The GNU Compiler Collection
|
As you can see, both have multilib enabled.
So, what am i missing, can you advise please?
Edit: i should probably mention i didn't wipe/completely reinstalled everything, but used emerge -auvND world - which reinstalled about 120 packages.
I returned to CHroot environment now and am reinstalling all (-e flag), it's 1115 packages - excruciating, but that's the only thing that comes to my mind now
Last edited by jhon987 on Wed May 08, 2024 7:11 am; edited 1 time in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8717 Location: ~Brussels - Belgique
|
Posted: Wed May 08, 2024 6:42 am Post subject: |
|
|
Hello,
Did you check the config on the running kernel (/proc/config.gz) or /usr/src/linux/.config?
Are you sure this is the right kernel running with i686 support enabled? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
jhon987 Guru
Joined: 18 Nov 2013 Posts: 302
|
Posted: Wed May 08, 2024 6:48 am Post subject: |
|
|
xaviermiller wrote: | Hello,
Did you check the config on the running kernel (/proc/config.gz) or /usr/src/linux/.config?
Are you sure this is the right kernel running with i686 support enabled? |
Hi, this is taken from /usr/src/linux/.config
Code: | cat /proc/config.gz
cat: /proc/config.gz: No such file or directory |
|
|
Back to top |
|
|
jhon987 Guru
Joined: 18 Nov 2013 Posts: 302
|
Posted: Wed May 08, 2024 7:46 am Post subject: |
|
|
Update: apparently, it was one of the core packages that needed be reinstalled.
I only reinstalled 40 out of the 1115 packages that emerge -e world suggested, then i canceled and rebooted away from CHroot and now glibc happily installs and wine does not present the previous issue (now i get this: wine: could not load kernel32.dll, status c0000135. but that might be wine related)
Update 2: actually, comes to think about it. i think it was a wrong kernel issue after all. before CHrooting on the 2nd time, i did recompile the kernel and have installed the bzimage in the right place.
i think that the kernel install via CHroot did not work and that's what went wrong.
At first, i installed the kernel in /efi when i was in CHroot, but upon booting, that folder was/is empty. on my 2nd CHrooting, i installed the bzimage inside /boot (where i usually place it), but this time i gave it an unusual name so i could easily recognize it - but that is not in there.
i'm not sure why is it that copying the bzimage via CHroot doesn't seem to work, but i'm pretty sure that's the actual issue.
Anyway, thanks for the assistance |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22636
|
Posted: Wed May 08, 2024 3:18 pm Post subject: |
|
|
As a blind guess, since we have had quite a lot of threads about this lately, perhaps you removed installkernel, and that changed the behavior of make install in a Linux kernel source tree such that it no longer installs the kernel the way you expected.
I encourage people to enable /proc/config.gz so that the running kernel can be queried about its capabilities. In my opinion, this is more reliable than inspecting the /usr/src/linux/.config and hoping that the running kernel is built using the static configuration you can see in the filesystem. |
|
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
|
|