Re: mig not cross-building correctly

2023-12-05 Thread Samuel Thibault
Hello, Flávio Cruz, le mar. 05 déc. 2023 01:55:46 -0500, a ecrit: >  ~/test/mig │ on master  ./configure --host=i686-linux-gnu                     Thanks for checking and making sure. The difference is merely the -unknown part: --host=i686-unknown-linux-gnu in which case configure doesn't find

Re: mig not cross-building correctly

2023-12-05 Thread Olivier Valentin
Le 5 décembre 2023 07:09:24 GMT+01:00, "Flávio Cruz" a écrit : >Hmm, we haven't made any significant change in MiG recently that would >break this. > >I think you need to do: ./configure --target=i686-unknown-linux-gnu. The >target compiler will generate the file cpu.h which includes the requi

Re: mig not cross-building correctly

2023-12-04 Thread Flávio Cruz
On Tue, Dec 5, 2023 at 1:31 AM Samuel Thibault wrote: > Hello, > > Flávio Cruz, le mar. 05 déc. 2023 01:09:24 -0500, a ecrit: > > I think you need to do: ./configure --target=i686-unknown-linux-gnu. > > That is implied by --host=i686-unknown-linux-gnu. > > (and using target only also gets sizeof_

Re: mig not cross-building correctly

2023-12-04 Thread Samuel Thibault
Hello, Flávio Cruz, le mar. 05 déc. 2023 01:09:24 -0500, a ecrit: > I think you need to do: ./configure --target=i686-unknown-linux-gnu. That is implied by --host=i686-unknown-linux-gnu. (and using target only also gets sizeof_pointer 8) Samuel

Re: mig not cross-building correctly

2023-12-04 Thread Flávio Cruz
Hmm, we haven't made any significant change in MiG recently that would break this. I think you need to do: ./configure --target=i686-unknown-linux-gnu. The target compiler will generate the file cpu.h which includes the required sizes when generating code for i686. If MiG is expecting sizeof(ipc_p

mig not cross-building correctly

2023-12-02 Thread Samuel Thibault
Hello, As reported on IRC: building mig with --host=i686-unknown-linux-gnu doesn't seem to be producing a 32bit-target mig any more: building gnumach with it ends up with: 84 | _Static_assert(sizeof(ipc_port_t) == 8 * 1, "expected ipc_port_t to be size 8 * 1"); Samuel