Re: Build for i586

2022-07-29 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote: I did a topic a [little earlier](https://forum.dlang.org/thread/hfzsnagofrnlmynyz...@forum.dlang.org) about compiling a compiler for processor Geode LX800. The bottom line is that I have a processor on which I want to compile the

Re: Build for i586

2022-07-28 Thread dd via Digitalmars-d-learn
On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote: I'm at a dead end, please help, guys. 1. Can you try with `ldc2 --march=32bit-mode`? The march list (--march=help) details this as "32-bit mode (80386)". 2. Can you try with `ldc2 --march=i586 -betterC` with a simple BetterC

Re: Build for i586

2022-07-28 Thread kdevel via Digitalmars-d-learn
On Thursday, 28 July 2022 at 16:03:46 UTC, Alexander Zhirov wrote: [...] How did you manage to get hold of this compiler? ``` /root/usr/program/gcc/9.5.0/install/bin/cc ``` Where does this compiler come from? This is an unpacked archive from an official source from the GNU website https:/

Re: Build for i586

2022-07-28 Thread kdevel via Digitalmars-d-learn
On Thursday, 28 July 2022 at 15:25:00 UTC, Alexander Zhirov wrote: [...] Everything falls on the same error. ```sh checking for suffix of object files... configure: error: in `/home/thinstation/source/gcc/12.1.0/build/i586-pc-linux-gnu/libgcc': configure: error: cannot compute suffix of object

Re: Build for i586

2022-07-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 16:02:11 UTC, kdevel wrote: On Thursday, 28 July 2022 at 15:25:00 UTC, Alexander Zhirov wrote: On Thursday, 28 July 2022 at 13:16:26 UTC, kdevel wrote: On Thursday, 28 July 2022 at 12:45:51 UTC, Alexander Zhirov wrote: [...] I have already downloaded the latest GCC

Re: Build for i586

2022-07-28 Thread kdevel via Digitalmars-d-learn
On Thursday, 28 July 2022 at 15:25:00 UTC, Alexander Zhirov wrote: On Thursday, 28 July 2022 at 13:16:26 UTC, kdevel wrote: On Thursday, 28 July 2022 at 12:45:51 UTC, Alexander Zhirov wrote: [...] I have already downloaded the latest GCC sources, nothing compiles anyway. How did you manage t

Re: Build for i586

2022-07-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 13:16:26 UTC, kdevel wrote: On Thursday, 28 July 2022 at 12:45:51 UTC, Alexander Zhirov wrote: [...] I have already downloaded the latest GCC sources, nothing compiles anyway. How did you manage to get hold of this compiler? ``` /root/usr/program/gcc/9.5.0/instal

Re: Build for i586

2022-07-28 Thread kdevel via Digitalmars-d-learn
On Thursday, 28 July 2022 at 12:45:51 UTC, Alexander Zhirov wrote: [...] I have already downloaded the latest GCC sources, nothing compiles anyway. How did you manage to get hold of this compiler? ``` /root/usr/program/gcc/9.5.0/install/bin/cc ``` Everything falls on the same error. ```sh c

Re: Build for i586

2022-07-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 11:40:09 UTC, kdevel wrote: 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

Re: Build for i586

2022-07-28 Thread kdevel via Digitalmars-d-learn
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

Re: Build for i586

2022-07-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 10:26:36 UTC, kdevel wrote: On Thursday, 28 July 2022 at 06:12:49 UTC, Alexander Zhirov wrote: On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote: ```sh /root/usr/program/gcc/9.5.0/install/bin/cc app.o -o app -L/root/usr/program/ldc/1.30/install/lib

Re: Build for i586

2022-07-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 10:26:36 UTC, kdevel wrote: On Thursday, 28 July 2022 at 06:12:49 UTC, Alexander Zhirov wrote: On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote: ```sh /root/usr/program/gcc/9.5.0/install/bin/cc app.o -o app -L/root/usr/program/ldc/1.30/install/lib

Re: Build for i586

2022-07-28 Thread kdevel via Digitalmars-d-learn
On Thursday, 28 July 2022 at 06:12:49 UTC, Alexander Zhirov wrote: On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote: ```sh /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 -ldruntime-ldc -Wl,--gc-sections -lrt -ldl

Re: Build for i586

2022-07-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 07:16:13 UTC, user1234 wrote: that would be something like `--mcpu=i686 --mattrs=-mmx,-sse` and maybe more to be sure. Fails... ```sh # ldc2 --mcpu=i686 --mattr=-mmx,-sse app.d # ./app Illegal instruction ```

Re: Build for i586

2022-07-28 Thread user1234 via Digitalmars-d-learn
On Thursday, 28 July 2022 at 06:12:49 UTC, Alexander Zhirov wrote: On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov > x86- 32-bit X86: Pentium-Pro and above I also tried with `i586` and `pentium` - the result is the same. Pentium Pro and above means at least i686. i586 is Pentium

Re: Build for i586

2022-07-28 Thread user1234 via Digitalmars-d-learn
On Thursday, 28 July 2022 at 07:16:13 UTC, user1234 wrote: On Thursday, 28 July 2022 at 06:12:49 UTC, Alexander Zhirov wrote: [...] Pentium Pro and above means at least i686. i586 is Pentium1 which is less featured. That means that you cant do much, however you can try to tune the i686 targe

Re: Build for i586

2022-07-27 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote: ```sh /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 -ldruntime-ldc -Wl,--gc-sections -lrt -ldl -lpthread -lm -m32 ``` Even tried with such a flag separately, it

Build for i586

2022-07-27 Thread Alexander Zhirov via Digitalmars-d-learn
I did a topic a [little earlier](https://forum.dlang.org/thread/hfzsnagofrnlmynyz...@forum.dlang.org) about compiling a compiler for processor Geode LX800. The bottom line is that I have a processor on which I want to compile the program, is an i586 architecture. The [official documentation](h