echo "/lib/i386-linux-gnu/libgcc_s.so.1" >> /etc/ld.so.preload ldconfigThe value echoed is the path to the libgcc_s.so.1 file on your system. It can be found with:
gcc --print-file-name=libgcc_s.so.1I hope this helps anybody who has a similar problem.