[gdal-dev] Problem replicating docker CI (GitHub Actions) locally

Björn Harrtell bjorn.harrtell at gmail.com
Sun Jul 26 10:16:10 PDT 2020


Thanks Even, that was it. Didn't realize that it copied the local repo as
is into the container.

Den sön 26 juli 2020 kl 18:56 skrev Even Rouault <even.rouault at spatialys.com
>:

> On dimanche 26 juillet 2020 17:51:05 CEST Björn Harrtell wrote:
>
> > I'm trying to run the same docker build and test run as in
>
> > workflow ubuntu_20.04 on GitHub Actions but locally.
>
> >
>
> > Running `docker build -f .github/workflows/ubuntu_20.04/Dockerfile.deps
> -t
>
> > gdal-deps-ubuntu-20.04 .github/workflows/ubuntu_20.04` goes fine.
>
> >
>
> > Running `docker build -f .github/workflows/ubuntu_20.04/Dockerfile -t
> gdal
>
> > .` fails with `/usr/bin/ld: frmts/o/biggifdataset.o: relocation
>
> > R_X86_64_PC32 against symbol `_ZTV16BIGGifRasterBand' can not be used
> when
>
> > making a shared object; recompile with -fPIC` on multiple tries.
>
> >
>
> > I'm at Ubuntu 20.04 and Docker 19.03.8 which is not identical to the CI
>
> > machine but I guess that should not matter.
>
> >
>
> > Anyone know what might explain this?
>
>
>
> Hi Björn,
>
>
>
> I'm wondering if the issue might not be that you had already compiled
> objects in your host machine, that have been transfered to the Docker build
> environment and are incompatible with the compiler in it. Perhaps try
> adding a "make clean" in .github/workflows/ubuntu_20.04/build.sh before the
> make ? (ideally we wouldn't copy in the Docker build already built objects
> from the host)
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200726/e3f9e9f0/attachment.html>


More information about the gdal-dev mailing list