On 2021-06-18 12:43, Paul Dufresne via Gcc-help wrote: > Goal: compile DOS 32 bits program in Linux because many scripts use bash > > Not sure I am on the right track. > > ... > > paul@kasparno:~/src/build-gcc$ > > paul@kasparno:~/src/build-gcc$ ls ~/opt/cross/bin/i386-pc-msdosdjgpp-* > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-c++ > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-cpp > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-g++ > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcc > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcc-11.1.0 > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcc-ar > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcc-nm > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcc-ranlib > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcov > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcov-dump > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcov-tool > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gfortran > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-lto-dump > > > > Searched: /bin/bash: > > /home/paul/opt/cross/i386-pc-msdosdjgpp/bin/ranlib: No such file or directory > > Should have searched (I think): > > /home/paul/opt/cross/bin/i386-pc-msdosdjgpp-gcc-ranlib > You don't seem to have binutils installed. The correct build order for djgpp is binutils -> stubify -> gcc -> libc -> libgcc/libstdc++. I have a complete toolchain build script on github, you may find it useful: https://github.com/jwt27/build-gcc.git