Bug 13491 - On IBM Power (ppc64le) systems the binary doesn't work
Summary: On IBM Power (ppc64le) systems the binary doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.31.x
Hardware: Other Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-27 05:41 UTC by Amit B
Modified: 2021-03-03 14:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit B 2021-01-27 05:41:00 UTC
I was testing (https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-powerpc64) binary on power system and could not get it to work. I am getting following error

"cannot execute binary file: Exec format error"

I even tried the latest 1.33.x version and facing same issue.
Comment 1 Amit B 2021-02-24 11:54:41 UTC
On further analysis of the binary it seems that it is based on big endian power architecture as shown below

# file busybox-powerpc64
busybox-powerpc64: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, stripped


It would make sense to provide little endian power binary as well. On our current ppc64le for file we getting following info for e.g.

# file oc
oc: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=1e68fbc57a4d18defe1780279736261e15b8e072, stripped


Note the difference as MSB executable vs LSB executable.
Comment 2 Denys Vlasenko 2021-03-03 14:48:05 UTC
I'm not committing to provide any binaries. Do not expect them to exist on the website.

The product of the project is its *source code*.

The binaries are there as an extra.