[gdal-dev] Segmentation fault while compiling

Even Rouault even.rouault at spatialys.com
Wed Feb 15 15:44:15 PST 2023


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 https://github.com/OSGeo/gdal/pull/7250?

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

Le 16/02/2023 à 00:20, afernandez a écrit :
> Hello,
> I'm trying to compile GDAL from source in order to include the KEA 
> components. My attempt at compiling (configured simply with /cmake .. 
> -DCMAKE_INSTALL_PREFIX=/usr/) failed towards the end with a 
> segmentation fault error, which I cannot figure out
> /.../
> /[ 98%] Built target testlog/
> /[ 98%] Building CXX object 
> autotest/cpp/CMakeFiles/test_osr_set_proj_search_paths.dir/test_osr_set_proj_search_paths.cpp.o/
> /[ 98%] Building CXX object 
> autotest/cpp/CMakeFiles/test_osr_set_proj_search_paths.dir/main_gtest.cpp.o/
> /[ 98%] Linking CXX executable test_osr_set_proj_search_paths/
> /[ 98%] Built target test_osr_set_proj_search_paths/
> /[ 98%] Building CXX object 
> autotest/cpp/CMakeFiles/proj_with_fork.dir/proj_with_fork.cpp.o/
> /[ 98%] Building CXX object 
> autotest/cpp/CMakeFiles/proj_with_fork.dir/main_gtest.cpp.o/
> /[ 98%] Linking CXX executable proj_with_fork/
> /[ 98%] Built target proj_with_fork/
> /[ 98%] Building CXX object 
> autotest/CMakeFiles/pytest_runner.dir/pytest_runner.cpp.o/
> /[ 98%] Linking CXX executable pytest_runner/
> /[ 98%] Built target pytest_runner/
> /Segmentation fault/
> /make[2]: *** 
> [autotest/CMakeFiles/run_setup_proj_db_tmpdir.dir/build.make:70: 
> autotest/CMakeFiles/run_setup_proj_db_tmpdir] Error 1/
> /make[1]: *** [CMakeFiles/Makefile2:12792: 
> autotest/CMakeFiles/run_setup_proj_db_tmpdir.dir/all] Error 2/
> /make: *** [Makefile:146: all] Error 2/
> Thanks.
> P.S. OS is Ubuntu22.04 and architecture is aarch64; GDAL is cloned 
> from Github
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230216/8d40a729/attachment.htm>


More information about the gdal-dev mailing list