Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925010 - sys-apps/kexec-tools-2.0.28 - purgatory/.../entry32-16.S:23: Error: 64bit mode not supported on i386.
Summary: sys-apps/kexec-tools-2.0.28 - purgatory/.../entry32-16.S:23: Error: 64bit mod...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: binutils-2.41
  Show dependency tree
 
Reported: 2024-02-19 20:06 UTC by Toralf Förster
Modified: 2024-04-01 06:52 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.50 KB, text/plain)
2024-02-19 20:06 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,96.10 KB, application/x-xz)
2024-02-19 20:06 UTC, Toralf Förster
Details
environment (environment,90.97 KB, text/plain)
2024-02-19 20:06 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.12 KB, application/x-xz)
2024-02-19 20:06 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,41.76 KB, application/x-xz)
2024-02-19 20:06 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,4.38 KB, application/x-xz)
2024-02-19 20:06 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,96.18 KB, application/x-xz)
2024-02-19 20:06 UTC, Toralf Förster
Details
sys-apps:kexec-tools-2.0.24:20240219-031701.log (sys-apps:kexec-tools-2.0.24:20240219-031701.log,17.99 KB, text/plain)
2024-02-19 20:06 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.35 KB, application/x-xz)
2024-02-19 20:06 UTC, Toralf Förster
Details
build.log (build.log,61.35 KB, text/plain)
2024-03-10 19:05 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-02-19 20:06:36 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc  -mcmodel=large -I./purgatory/include -I./purgatory/arch/x86_64/include -I./util_lib/include -I./include -Iinclude -I/usr/lib/gcc/x86_64-pc-linux-gnu/13/include  -c -MD -o purgatory/arch/x86_64/setup-x86_64.o purgatory/arch/x86_64/setup-x86_64.S
x86_64-pc-linux-gnu-gcc  -mcmodel=large -I./purgatory/include -I./purgatory/arch/x86_64/include -I./util_lib/include -I./include -Iinclude -I/usr/lib/gcc/x86_64-pc-linux-gnu/13/include  -c -MD -o purgatory/arch/x86_64/stack.o purgatory/arch/x86_64/stack.S
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -fno-zero-initialized-in-bss -mcmodel=large -Os -fno-builtin -ffreestanding -fno-zero-initialized-in-bss -fno-PIC -fno-PIE -fno-stack-protector -fno-tree-vectorize -mcmodel=large -I./purgatory/include -I./purgatory/arch/x86_64/in
x86_64-pc-linux-gnu-gcc  -mcmodel=large -I./purgatory/include -I./purgatory/arch/x86_64/include -I./util_lib/include -I./include -Iinclude -I/usr/lib/gcc/x86_64-pc-linux-gnu/13/include  -c -MD -o purgatory/arch/i386/entry32-16.o purgatory/arch/i386/entry32-16.S
x86_64-pc-linux-gnu-gcc  -mcmodel=large -I./purgatory/include -I./purgatory/arch/x86_64/include -I./util_lib/include -I./include -Iinclude -I/usr/lib/gcc/x86_64-pc-linux-gnu/13/include  -c -MD -o purgatory/arch/i386/entry32-16-debug.o purgatory/arch/i386/entry32-16-debug.S
purgatory/arch/i386/entry32-16.S: Assembler messages:
purgatory/arch/i386/entry32-16.S:23: Error: 64bit mode not supported on `i386'.
make: *** [Makefile:129: purgatory/arch/i386/entry32-16.o] Error 1
make: *** Waiting for unfinished jobs....

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-20240211-100004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.75.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.0 linux/amd64

  HEAD of ::gentoo
commit 40e88ea1150c7b94482b9d8f099316c7a134ed42
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Feb 19 02:48:58 2024 +0000

    2024-02-19 02:48:58 UTC

emerge -qpvO sys-apps/kexec-tools
[ebuild  N    ] sys-apps/kexec-tools-2.0.24  USE="zlib -booke -lzma (-selinux) -xen"
Comment 1 Toralf Förster gentoo-dev 2024-02-19 20:06:37 UTC
Created attachment 885447 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-02-19 20:06:38 UTC
Created attachment 885448 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-02-19 20:06:40 UTC
Created attachment 885449 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-02-19 20:06:40 UTC
Created attachment 885450 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-02-19 20:06:42 UTC
Created attachment 885451 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-02-19 20:06:42 UTC
Created attachment 885452 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-02-19 20:06:44 UTC
Created attachment 885453 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-02-19 20:06:45 UTC
Created attachment 885454 [details]
sys-apps:kexec-tools-2.0.24:20240219-031701.log
Comment 9 Toralf Förster gentoo-dev 2024-02-19 20:06:45 UTC
Created attachment 885455 [details]
temp.tar.xz
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 13:51:05 UTC
commit 69188850396bfd88bbf60cf288d4951ada99ff3b
Author: Yuan Liao <liaoyuan@gmail.com>
Date:   Mon Feb 12 17:00:38 2024 -0500

    sys-apps/kexec-tools: Add 2.0.28

    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>
Comment 12 Agostino Sarubbo gentoo-dev 2024-03-10 19:04:53 UTC
ci has reproduced this issue with version 2.0.28 - Updating summary.
Comment 13 Agostino Sarubbo gentoo-dev 2024-03-10 19:05:41 UTC
Created attachment 887271 [details]
build.log

build.log
Comment 14 Aidan Marks 2024-03-12 16:33:10 UTC
The upstream patch resolves the 2.0.28 build time issue in my case.
Comment 15 Yuan Liao (Leo3418) 2024-03-15 13:30:59 UTC
(In reply to Aidan Marks from comment #14)
> The upstream patch resolves the 2.0.28 build time issue in my case.

By "upstream patch", did you mean <https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=328de8e00e298f00d7ba6b25dc3950147e9642e6>?
Comment 16 Aidan Marks 2024-03-15 16:55:37 UTC
(In reply to Yuan Liao (Leo3418) from comment #15)
> (In reply to Aidan Marks from comment #14)
> > The upstream patch resolves the 2.0.28 build time issue in my case.
> 
> By "upstream patch", did you mean
> <https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/
> ?id=328de8e00e298f00d7ba6b25dc3950147e9642e6>?

Yes.
Comment 17 manwe 2024-03-21 12:57:51 UTC
With this patch https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/patch/?id=328de8e00e298f00d7ba6b25dc3950147e9642e6 compiles fine, please add to portage.
Comment 18 John Covici 2024-03-28 16:51:03 UTC
I am still getting this error I have compiled 6.1.82, but not booted into that  one yet.  I was trying to compile 2.0.28 using ~amd64 system.  upt-to-date as of yesterday.
How to fix?
Comment 19 satmd 2024-03-30 09:27:08 UTC
(In reply to manwe from comment #17)
> With this patch
> https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/patch/
> ?id=328de8e00e298f00d7ba6b25dc3950147e9642e6 compiles fine, please add to
> portage.

This patch solved the problem for me too.

kexec-tools 2.0.28
binutils x86_64-pc-linux-gnu-2.42
gcc x86_64-pc-linux-gnu-13
portage profile is the 23 gen
Comment 20 John Covici 2024-03-30 15:55:39 UTC
with 2.4.28 and bin2.42-r1 the compile still fails.  Do you need to put the upstream patch in portage.
Comment 21 Larry the Git Cow gentoo-dev 2024-04-01 06:49:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7a8cf1a580486ae3923fea714f1e6c09a032757

commit a7a8cf1a580486ae3923fea714f1e6c09a032757
Author:     Yuan Liao <liaoyuan@gmail.com>
AuthorDate: 2024-03-30 23:08:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-01 06:49:44 +0000

    sys-apps/kexec-tools: Add patch for build error with binutils 2.42
    
    The patch carries upstream commit
    328de8e00e298f00d7ba6b25dc3950147e9642e6.
    
    Bug: https://bugs.gentoo.org/925010
    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/36007
    Signed-off-by: Sam James <sam@gentoo.org>

 .../kexec-tools-2.0.28-binutils-2.42-x86_64.patch  | 94 ++++++++++++++++++++++
 sys-apps/kexec-tools/kexec-tools-2.0.28.ebuild     |  1 +
 2 files changed, 95 insertions(+)