Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GDAL] build version 3.5.0 #4979

Merged
merged 3 commits into from
Jun 2, 2022
Merged

Conversation

visr
Copy link
Contributor

@visr visr commented Jun 2, 2022

Soon we will have to transition the build script to CMake, see the first point of the changelog:

RFC 84:
Addition of a CMake build system, which deprecates the existing
autoconf/automake and nmake build systems, that will be removed
in GDAL 3.6.0. Users are encouraged to adopt the new CMake build system.
Documentation of the CMake build system is at
https://gdal.org/build_hints.html.

But let's first just get a GDAL 3.5 build using what works now.

visr added 2 commits June 1, 2022 21:07
Since that one is built against PROJ 9.
@visr
Copy link
Contributor Author

visr commented Jun 2, 2022

Interesting, only aarch64-linux-gnu-cxx03 fails, with an internal compiler error.

https://dev.azure.com/JuliaPackaging/Yggdrasil/_build/results?buildId=19950&view=logs&j=1689e4e1-e047-5df5-25f6-71243ec1d23b&t=88abec16-1fed-5d53-a233-b91e4203380d&l=6265

[09:51:57] mitab_mapindexblock.cpp: In member function ‘int TABMAPIndexBlock::ChooseSubEntryForInsert(GInt32, GInt32, GInt32, GInt32)’:
[09:51:57] mitab_mapindexblock.cpp:547:1: internal compiler error: Segmentation fault
[09:51:57]  }
[09:51:57]  ^
[09:51:58] 0xaa37e6 crash_signal
[09:51:58]      /workspace/srcdir/gcc-6.1.0/gcc/toplev.c:333
[09:51:58] 0x7f96e2d771de ???
[09:51:58]      /workspace/srcdir/musl-1.2.2/src/signal/x86_64/restore.s:1
[09:51:58] Please submit a full bug report,
[09:51:58] with preprocessed source if appropriate.
[09:51:58] Please include the complete backtrace with any bug report.
[09:51:58] See <http://gcc.gnu.org/bugs.html> for instructions.

This is the function that it doesn't like:
https://github.com/OSGeo/gdal/blob/v3.5.0/ogr/ogrsf_frmts/mitab/mitab_mapindexblock.cpp#L475-L547

Unfortunately the MITAB driver is a core part of GDAL and cannot be disabled. Not sure if we can work around this compiler error easily.

@giordano
Copy link
Member

giordano commented Jun 2, 2022

The only solution for an ICE is to use a different version

For `aarch64-linux-gnu-cxx03`

```
[09:51:57] mitab_mapindexblock.cpp: In member function ‘int TABMAPIndexBlock::ChooseSubEntryForInsert(GInt32, GInt32, GInt32, GInt32)’:
[09:51:57] mitab_mapindexblock.cpp:547:1: internal compiler error: Segmentation fault
[09:51:57]  }
[09:51:57]  ^
[09:51:58] 0xaa37e6 crash_signal
[09:51:58]      /workspace/srcdir/gcc-6.1.0/gcc/toplev.c:333
[09:51:58] 0x7f96e2d771de ???
[09:51:58]      /workspace/srcdir/musl-1.2.2/src/signal/x86_64/restore.s:1
[09:51:58] Please submit a full bug report,
[09:51:58] with preprocessed source if appropriate.
[09:51:58] Please include the complete backtrace with any bug report.
[09:51:58] See <http://gcc.gnu.org/bugs.html> for instructions.
```
@visr
Copy link
Contributor Author

visr commented Jun 2, 2022

Ok great, bumping GCC from 6 to 7 seems to work.

@giordano giordano merged commit 7289473 into JuliaPackaging:master Jun 2, 2022
@visr visr deleted the origin/gdal35 branch June 2, 2022 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants