meson vs Cygwin

Started by Andrew Dunstanabout 2 years ago3 messages
#1Andrew Dunstan
andrew@dunslane.net

I've been trying to get meson working with Cygwin. On a fresh install
(Cygwin 3.4.9, gcc 11.4.0, meson 1.0.2, ninja 1.11.1) I get a bunch of
errors like this:

ERROR:  incompatible library
"/home/andrew/bf/buildroot/HEAD/pgsql.build/tmp_install/home/andrew/bf/buildroot/HEAD/inst/lib/postgresql/plperl.dll":
missing magic block

Similar things happen if I try to build with python.

I'm not getting the same on a configure/make build. Not sure what would
be different.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

#2Marco Atzeri
marco.atzeri@gmail.com
In reply to: Andrew Dunstan (#1)
Re: meson vs Cygwin

On 22/11/2023 13:02, Andrew Dunstan wrote:

I've been trying to get meson working with Cygwin. On a fresh install
(Cygwin 3.4.9, gcc 11.4.0, meson 1.0.2, ninja 1.11.1) I get a bunch of
errors like this:

ERROR:  incompatible library
"/home/andrew/bf/buildroot/HEAD/pgsql.build/tmp_install/home/andrew/bf/buildroot/HEAD/inst/lib/postgresql/plperl.dll": missing magic block

Similar things happen if I try to build with python.

I'm not getting the same on a configure/make build. Not sure what would
be different.

cheers

andrew

Hi Andrew,
sorry for jumping on this request so late

how are you configuring the build ?

Marco Atzeri
Postgresql package manager for Cygwin

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Marco Atzeri (#2)
Re: meson vs Cygwin

On 2024-02-13 Tu 7:00 AM, Marco Atzeri wrote:

On 22/11/2023 13:02, Andrew Dunstan wrote:

I've been trying to get meson working with Cygwin. On a fresh install
(Cygwin 3.4.9, gcc 11.4.0, meson 1.0.2, ninja 1.11.1) I get a bunch
of errors like this:

ERROR:  incompatible library
"/home/andrew/bf/buildroot/HEAD/pgsql.build/tmp_install/home/andrew/bf/buildroot/HEAD/inst/lib/postgresql/plperl.dll":
missing magic block

Similar things happen if I try to build with python.

I'm not getting the same on a configure/make build. Not sure what
would be different.

cheers

andrew

Hi Andrew,
sorry for jumping on this request so late

how are you configuring the build ?

Sorry for not replying in turn :-(

I just got this error again. All I did was:

    meson setup build .

    meson compile -C build

    meson test -C build

I don't get the error if I build using

    ./configure --with-perl --with-python

    make world-bin

    make check-world

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com