Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5197 closed defect (fixed)

out-of-tree build not working under mingw

Reported by: robe Owned by: strk
Priority: medium Milestone: PostGIS 3.3.0
Component: build Version: master
Keywords: Cc:

Description

Not sure if it's just my setup or all mingw64, but I was trying to build with out-of-tree, to debug the issue I caused with out-of-tree on my commit for #5195.

However my build always fails before it gets to that point:

with:

/mingw64/bin/cpp -traditional-cpp -w -P -I./../../postgis /projects/postgis/postgis-git/extensions/postgis/../../postgis/postgis.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe \
        "s'MODULE_PATHNAME'\$libdir/postgis-3.3'g" \
        | /usr/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g' > sql/postgis_for_extension.sql
/bin/sh: line 4: sql/postgis_for_extension.sql: No such file or directory
<built-in>: fatal error: when writing output to : Invalid argument
compilation terminated.
make[2]: *** [Makefile:138: sql/postgis_for_extension.sql] Error 1
make[2]: Leaving directory '/projects/postgis/tmp/postgis-build/3.3/extensions/postgis'
make[1]: *** [Makefile:29: all] Error 1
make[1]: Leaving directory '/projects/postgis/tmp/postgis-build/3.3/extensions'
make: *** [GNUmakefile:24: all] Error 1

Change History (2)

comment:1 by robe, 2 years ago

Resolution: fixed
Status: newclosed

strk noted my sql folders (the ones in extensions\postgis\sql and also all extension subfolder might be present in my repo folder. After deleting all of those it seems to work.

So closing this out and will reopen if I still have issues

comment:2 by robe, 2 years ago

FWIW also had to delete extensions/postgis_tiger_geocoder/expected folder

Note: See TracTickets for help on using tickets.