Open glebm opened 2 years ago
Steps to reproduce this crash:
# Install system packages and prepare the PS4 toolchain:
sudo apt-get install -y wget cmake git gettext smpq
wget https://github.com/PacBrew/pacbrew-pacman/releases/download/v1.1/pacbrew-pacman-1.1.deb
sudo dpkg -i pacbrew-pacman-1.1.deb
sudo pacbrew-pacman -Sy
sudo pacbrew-pacman --noconfirm -S ps4-openorbis ps4-openorbis-portlibs
echo "#include <endian.h>" | sudo tee /opt/pacbrew/ps4/openorbis/include/sys/endian.h
# Clone DevilutionX
git clone https://github.com/diasurgical/devilutionX.git
cd devilutionX
# Disable the workaround that prevents the crash:
sed -i 's/ AND NOT PS4//' CMakeLists.txt
# Build, will crash here:
Packaging/ps4/build.sh
For the above to work, the changes in https://github.com/PacBrew/ps4-openorbis/pull/7 need to be released
After linking with
--gc-sections --as-needed
,create-fself
crashes with SIGSEGV atOELFGenProgramHeaders.go:116
:The crash happens here:
https://github.com/OpenOrbis/create-fself/blob/30d2e10507f55124cf21e85e19825482e4f93c87/pkg/oelf/OELFGenProgramHeaders.go#L116
More log: https://gist.githubusercontent.com/glebm/49a29bfc641ea3c844cadd08ef18df68/raw/c2ac2268dba8f3c6ec4b69fca7ec4eecf8dbbc33/gistfile1.txt