Bug 28891 - Cross compilation for ARM fails when trying to run i386_gendis
Summary: Cross compilation for ARM fails when trying to run i386_gendis
Status: UNCONFIRMED
Alias: None
Product: elfutils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 00:35 UTC by Nikita Leontiev
Modified: 2022-12-21 12:30 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Leontiev 2022-02-15 00:35:49 UTC
When cross compiling elfutils for ARM, build process fails on attempt to run i386_gendis compiled for ARM target on x86 host:

/bin/bash: ./i386_gendis: cannot execute binary file: Exec format error
Makefile:774: recipe for target 'i386_dis.h' failed
make[2]: *** [i386_dis.h] Error 126

Current problem discussed several times:

https://www.mail-archive.com/elfutils-devel@sourceware.org/msg03801.html

https://lists.fedoraproject.org/archives/list/elfutils-devel@lists.fedorahosted.org/thread/HIAWS54V54NROT2OYBLFHWIROAULHWII

https://lists.fedorahosted.org/archives/list/elfutils-devel@lists.fedorahosted.org/thread/TK47UHJMSDVHMJB5W4A3SLVKHLF7JEGA
Comment 1 Mark Wielaard 2022-04-24 15:33:15 UTC
Note that this does work when using release tar balls. Then i386_gendis isn't needed.
Comment 2 Mark Wielaard 2022-12-21 12:30:04 UTC
So a solution for people trying to do cross builds directly from git might simply be to do a make dist first and then do a cross from that?