<div dir="ltr">Thanks Even, that was it. Didn't realize that it copied the local repo as is into the container.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den sön 26 juli 2020 kl 18:56 skrev Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:monospace;font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">On dimanche 26 juillet 2020 17:51:05 CEST Björn Harrtell wrote:</p>
<p style="margin:0px;text-indent:0px">> I'm trying to run the same docker build and test run as in</p>
<p style="margin:0px;text-indent:0px">> workflow ubuntu_20.04 on GitHub Actions but locally.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Running `docker build -f .github/workflows/ubuntu_20.04/Dockerfile.deps -t</p>
<p style="margin:0px;text-indent:0px">> gdal-deps-ubuntu-20.04 .github/workflows/ubuntu_20.04` goes fine.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Running `docker build -f .github/workflows/ubuntu_20.04/Dockerfile -t gdal</p>
<p style="margin:0px;text-indent:0px">> .` fails with `/usr/bin/ld: frmts/o/biggifdataset.o: relocation</p>
<p style="margin:0px;text-indent:0px">> R_X86_64_PC32 against symbol `_ZTV16BIGGifRasterBand' can not be used when</p>
<p style="margin:0px;text-indent:0px">> making a shared object; recompile with -fPIC` on multiple tries.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I'm at Ubuntu 20.04 and Docker 19.03.8 which is not identical to the CI</p>
<p style="margin:0px;text-indent:0px">> machine but I guess that should not matter.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Anyone know what might explain this?</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Hi Björn,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">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)</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div>