
Hello,
I have observed that u-boot mkimage is broken on macos arm64, it generates segfault every time.
Reproducing:
My MacOS environment: % sw_vers ProductName: macOS ProductVersion: 11.6 BuildVersion: 20G165
% uname -s -r -m Darwin 20.6.0 arm64
1. Build on macos arm64 % export CPATH=/opt/homebrew/opt/openssl@1.1/include % export LIBRARY_PATH=/opt/homebrew/opt/openssl@1.1/lib % make tools
2. Versions % git log | head -n 1 commit ade37460a944aed36ae6ee634c4d4a9a22690461
% ./mkimage -V mkimage version 2022.01-rc3
3. Run % ./mkimage -f aaa bbb zsh: segmentation fault ./mkimage -f aaa bbb
(Diagnostics related to the segfault attached)
The same story for Mac homebrew’s version:
% mkimage -V mkimage version 2021.10 % mkimage -f aaa bbb zsh: segmentation fault mkimage -f aaa bbb
If do the same on normal Linux host, everything is ok (no segfault):
$ uname -s -r -m Linux 4.19.0-18-amd64 x86_64
$ ./mkimage -V mkimage version 2022.01-rc3
$ ./mkimage -f aaa bbb FATAL ERROR: Couldn't open "aaa": No such file or directory ./mkimage: Can't open bbb.tmp: No such file or directory