<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Funny, I just got that same error (Windows). Apparently not fatal as I could do<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">ninja install<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">and all apparently went well<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Even Rouault<br>
<b>Sent:</b> Wednesday, February 15, 2023 11:44 PM<br>
<b>To:</b> afernandez <afernandez@odyhpc.com>; gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] Segmentation fault while compiling<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>This is a new Python script that runs the Python bindings and use PROJ functionality. Aren't you running into the issue of having 2 PROJ versions described in
<a href="https://github.com/OSGeo/gdal/pull/7250">https://github.com/OSGeo/gdal/pull/7250</a>?<o:p></o:p></p>
<p>If you don't need to run GDAL tests, you can add -DBUILD_TESTING=OFF to your CMake invokation and that will avoid running this script. But the crash indicates something fishy that might hit you at execution of your GDAL build<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 16/02/2023 à 00:20, afernandez a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div id="compose-body-wrapper">
<div>
<div>
<p class="MsoNormal">Hello,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I'm trying to compile GDAL from source in order to include the KEA components. My attempt at compiling (configured simply with
<i>cmake .. -DCMAKE_INSTALL_PREFIX=/usr</i>) failed towards the end with a segmentation fault error, which I cannot figure out    <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>...</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Built target testlog</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Building CXX object autotest/cpp/CMakeFiles/test_osr_set_proj_search_paths.dir/test_osr_set_proj_search_paths.cpp.o</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Building CXX object autotest/cpp/CMakeFiles/test_osr_set_proj_search_paths.dir/main_gtest.cpp.o</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Linking CXX executable test_osr_set_proj_search_paths</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Built target test_osr_set_proj_search_paths</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Building CXX object autotest/cpp/CMakeFiles/proj_with_fork.dir/proj_with_fork.cpp.o</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Building CXX object autotest/cpp/CMakeFiles/proj_with_fork.dir/main_gtest.cpp.o</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Linking CXX executable proj_with_fork</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Built target proj_with_fork</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Building CXX object autotest/CMakeFiles/pytest_runner.dir/pytest_runner.cpp.o</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Linking CXX executable pytest_runner</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>[ 98%] Built target pytest_runner</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>Segmentation fault</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>make[2]: *** [autotest/CMakeFiles/run_setup_proj_db_tmpdir.dir/build.make:70: autotest/CMakeFiles/run_setup_proj_db_tmpdir] Error 1</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>make[1]: *** [CMakeFiles/Makefile2:12792: autotest/CMakeFiles/run_setup_proj_db_tmpdir.dir/all] Error 2</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>make: *** [Makefile:146: all] Error 2</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">P.S. OS is Ubuntu22.04 and architecture is aarch64; GDAL is cloned from Github<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre><a href="http://www.spatialys.com">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</body>
</html>