Re: build 32-bit library on 64-bit OS

2019-03-20 Thread DFTW via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 21:20:24 UTC, kinke wrote: On Tuesday, 19 March 2019 at 20:56:47 UTC, DFTW wrote: What package did you mean? that libphobos2 on the error messages from the ld? I'm using dmd/dub on Ubuntu 18. libphobos2-ldc-shared.so is definitely from LDC. I hadn't noticied it

Re: build 32-bit library on 64-bit OS

2019-03-19 Thread kinke via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 20:56:47 UTC, DFTW wrote: What package did you mean? that libphobos2 on the error messages from the ld? I'm using dmd/dub on Ubuntu 18. libphobos2-ldc-shared.so is definitely from LDC. I'll give a try to ldc, does it still is binary compatible with C? It's

Re: build 32-bit library on 64-bit OS

2019-03-19 Thread DFTW via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 20:31:46 UTC, kinke wrote: On Tuesday, 19 March 2019 at 17:23:21 UTC, DFTW wrote: /usr/bin/ld: skiping //usr/lib/x86_64-linux-gnu/libphobos2-ldc-shared.so incompatible to -lphobos2-ldc-shared /usr/bin/ld: couldn't find -lphobos2-ldc-shared If possible, use an

Re: build 32-bit library on 64-bit OS

2019-03-19 Thread kinke via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 17:23:21 UTC, DFTW wrote: /usr/bin/ld: skiping //usr/lib/x86_64-linux-gnu/libphobos2-ldc-shared.so incompatible to -lphobos2-ldc-shared /usr/bin/ld: couldn't find -lphobos2-ldc-shared If possible, use an official package

build 32-bit library on 64-bit OS

2019-03-19 Thread DFTW via Digitalmars-d-learn
So I need to build a 32-bit version of a library on 64-bit system. I got some errors, which I get rid of after installing the gcc 32-bit tools (and gcc -m32 ran fine) but I still get errors about libraries not compatible. the command: dub --arch=x86 yield erros such: /usr/bin/ld: skiping