<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Even,</p>
<p>With "valgrind output/bin/crssync" I can see that two different "libproj"-versions are involved with crssync:</p>
<p>/usr/lib/x86_64-linux-gnu/libproj.so.15.3.1</p>
<p>and</p>
<p>/usr/local/lib/libproj.so.22.1.0</p>
<p>I guess I will have to find out which library is still referencing the old libproj version - perhaps that libspatialite culprit again ...</p>
<p>Thanks for your hints,</p>
<p>Andreas</p>
<p><br /></p>
<p>On 2021-09-03 15:42, Even Rouault wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<p>Andreas</p>
<p>Several things to check:</p>
<p>- Is your GDAL build a clean one ? That is is it from a fresh build directory, or are you rebuilding in a directory where a previous build was done. If the later, make sure to "make clean" before rebuilding</p>
<p>- Is your GDAL build using your custom GEOS one ? Otherwise QGIS might link directly to the custom one and indirectly to the system one through GDAL. Check the output of "ldd output/bin/qgis | grep geos"</p>
<p>- try "valgrind output/bin/crssync". Emitted stack traces can give interesting hints</p>
<p>Even</p>
<div class="v1moz-cite-prefix">Le 03/09/2021 à 15:30, Andreas Neumann a écrit :</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<p>Hi,</p>
<p>I have troubles compiling QGIS on my Linux Ubuntu 20.04 machine.</p>
<p>I use a self-compiled GEOS and GDAL.</p>
<p>The build always hangs at "crssync" - here is the ninja build output I get. Do you have any idea what might be wrong or what I could do in order to fix this problem?</p>
<p>Thank you for your hints,</p>
<p>Andreas</p>
<p>------------------------</p>
<p><span style="font-family: monospace;"><span style="color: #000000; background-color: #ffffff;">[0/1] Re-running CMake... </span><br />-- QGIS version: 3.21.0 Master (32100) <br />-- Found OpenCL C++ headers: /usr/include <br />-- ccache found <br />-- Found Proj: /usr/local/lib/libproj.so version 8 (8.1.0) <br />-- Found GEOS: /usr/local/lib/libgeos_c.so (3.9.1) <br />-- Found GDAL: /usr/local/lib/libgdal.so (3.3.1) <br />-- Found Expat: /usr/lib/x86_64-linux-gnu/libexpat.so <br />-- Found Spatialindex: /usr/lib/x86_64-linux-gnu/libspatialindex.so <br />-- Found Qwt: /usr/lib/libqwt-qt5.so (6.1.4) <br />-- Found libzip: /usr/lib/x86_64-linux-gnu/libzip.so <br />-- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so <br />-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread <br />-- Found zlib: /usr/lib/x86_64-linux-gnu/libz.so <br />-- Found exiv2: /usr/lib/x86_64-linux-gnu/libexiv2.so <br />-- Found PostgreSQL: /usr/local/pgsql/lib/libpq.so <br />-- Found SpatiaLite: /usr/local/lib/libspatialite.so <br />-- Qt WebKit support enabled <br />-- Found ZSTD: /usr/lib/x86_64-linux-gnu/libzstd.so <br />-- Found laz-perf: /usr/local/include <br />-- Found PDAL: /usr/local/lib/libpdalcpp.so;/usr/local/lib/libpdal_util.so (2.0.1) <br />-- Found Qt version: 5.12.8 <br />-- Found QScintilla2: /usr/lib/libqscintilla2_qt5.so (2.11.2) <br />-- Found QtKeychain: /usr/lib/x86_64-linux-gnu/libqt5keychain.so <br />-- Found QCA: /usr/lib/x86_64-linux-gnu/libqca-qt5.so (2.2.1) <br />-- Found QCA OpenSSL plugin <br />-- Pedantic compiler settings enabled <br />-- Found GSL: -L/usr/lib/x86_64-linux-gnu -lgsl -lgslcblas -lm <br />-- Found Python executable: /usr/bin/python3.8 (version 3.8.10) <br />-- Python library: /usr/lib/x86_64-linux-gnu/libpython3.8.so <br />-- Python site-packages: /usr/lib/python3/dist-packages <br />-- Found PyQt5 version: 5.14.1 <br />-- Found SIP version: 4.19.21 <br />-- Found QScintilla2 PyQt module: 2.11.2 <br />-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found version "") <br />-- Could NOT find NetCDF (missing: NETCDF_LIBRARY NETCDF_INCLUDE_DIR)  <br />-- Using PROJ >= 6 srs database. <br />-- Ctest Binary Directory set to: /home/bjsvwneu/dev/QGIS/build/output/bin <br />-- Configuring done <br />-- Generating done <br />-- Build files have been written to: /home/bjsvwneu/dev/QGIS/build <br />[1/6072] Generating qgsversion.h, qgsversion.inc <br />Files "/home/bjsvwneu/dev/QGIS/build/qgsversion.h.temp" to "/home/bjsvwneu/dev/QGIS/build/qgsversion.h" are different. <br />[3/6072] Generating qgsexpression_texts.cpp <br />Files "/home/bjsvwneu/dev/QGIS/build/src/core/qgsexpression_texts.cpp.temp" to "/home/bjsvwneu/dev/QGIS/build/src/core/qgsexpression_texts.cpp" are different. <br />[2905/6072] Generating gui/sip_guipart0.cpp, gui/sip_guipart1.cpp, gui/sip_guipart2.cpp, gui/sip_guipart3.cpp, gui/sip_guipart4.cpp, g...i/sip_guipart10.cpp, gui/sip_guipart11.cpp, gui/sip_guipart12.cpp, gui/sip_guipart13.cpp, gui/sip_guipart14.cpp, gui/sip_guipart15.cpp <br /><br />[4061/6072] Building CXX object src/providers/mdal/CMakeFiles/provider_mdal.dir/__/__/__/external/mdal/mdal_utils.cpp.o <br />../external/mdal/mdal_utils.cpp: In function 'int MDAL::toInt(size_t)': <br />../external/mdal/mdal_utils.cpp:143:14: warning: comparison of integer expressions of different signedness: 'const size_t' {aka 'const long unsigned int'} and 'int' [-Wsign-compare] <br /> 143 |   if ( value > std::numeric_limits<int>::max() ) <br />     |        ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <br />[4172/6072] Running crssync <br /><span style="color: #b21818; background-color: #ffffff;">FAILED: </span><span style="color: #000000; background-color: #ffffff;">src/crssync/CMakeFiles/synccrsdb  </span><br />cd /home/bjsvwneu/dev/QGIS/build/src/crssync && /home/bjsvwneu/dev/QGIS/build/output/bin/crssync <br />free(): invalid pointer <br />Aborted (core dumped) <br />[4173/6072] Building CXX object src/plugins/topology/CMakeFiles/topolplugin.dir/topolplugin_autogen/mocs_compilation.cpp.o <br />ninja: build stopped: subcommand failed.<br /></span><span style="font-family: monospace;"></span></p>
<br /><fieldset class="v1mimeAttachmentHeader"></fieldset>
<pre class="v1moz-quote-pre">_______________________________________________
QGIS-Developer mailing list
<a class="v1moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="v1moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="v1moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
<pre class="v1moz-signature">-- 
<a class="v1moz-txt-link-freetext" href="http://www.spatialys.com" target="_blank" rel="noopener noreferrer">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</div>
</blockquote>
<p><br /></p>

</body></html>