On Thursday, 28 July 2022 at 10:39:06 UTC, Alexander Zhirov wrote:
[...]
I don't understand what I need to do.

You wrote

At first I thought that I needed to rebuild the GCC compiler for the i586 architecture. I downloaded GCC 9.5.0 and started the installation:

Then you wrote that this process failed. In your next post you quoted some code from the shell:

```
# /root/usr/program/gcc/9.5.0/install/bin/cc app.o -o app -L/root/usr/program/ldc/1.30/install/lib -lphobos2-ldc -ldrun time-ldc -Wl,--gc-sections -lrt -ldl -lpthread -lm -m32 -march=geode
# ./app
Illegal instruction
```

I read this as if you eventually succeeded in compiling your GCC 9.5.0. If you repeat that build but use the switch

```
--with-arch-32=pentium3
```

in the configure command your generated GCC 9.5.0 will compile 32-Bit code for the pentium3. I mean instead of

```
# ../source/configure --prefix=$PWD/../install_i586 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,d --target=i586-pc-linux-gnu --disable-multilib --with-multilib-list=m32
```

type

```
# ../source/configure --prefix=$PWD/../install_i586 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,d --target=i586-pc-linux-gnu --disable-multilib --with-multilib-list=m32 --with-arch-32=pentium3
```

Reply via email to