I tried to build the DJGPP cross compiler on Haiku with the help of this tool:
I used setarch x86 to get the more modern gcc then build with this command:
DJGPP_PREFIX=/boot/home/my-djgpp ./build-djgpp.sh 10.2.0
It ran for a while but finally failed. Please help.