package/postgis: re-enable Microblaze architecture
PATCH 1/1 package/postgis: re-enable Microblaze architecture
While adding this package with commit[1] Microblaze architecture has been disabled by default pointing that it suffers from gcc ICE, but this is not true, indeed the build error is referred to libgeos that is postgis dependency:
```
during RTL pass: reload
.../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp: In static member function ‘static std::unique_ptr<std::vector<geos::geom::Coordinate> > geos::geom::util::Densifier::densifyPoints(geos::geom::Coordinate::Vect, double, const geos::geom::PrecisionModel*)’:
.../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp:128:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1155
128 | }
| ^
```This build error has been worked around with this commit[2] and I've just tested this build with Microblaze gcc 9.3/9.4/10.3 and 11.2 and it builds succesfully since the bug above is gcc bug 90620[3] and it's been handled in libgeos already.
So let's allow Microblaze(el/be) to build this postgis.
[1]: https://git.buildroot.net/buildroot/commit/?id=9bb1034455de299876dfd03c5074d8bb9622f8739bb1034455de299876dfd03c5074d8bb9622f873
[2]: https://git.buildroot.net/buildroot/commit/?id=847b441b1ca2230c4f26a49aaede69eca5e7e7ad
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90620
--- package/postgis/Config.in | 2 -- 1 file changed, 2 deletions(-)
package/postgis/Config.in +0 -2
@@ -1,7 +1,6 @@ config BR2_PACKAGE_POSTGIS bool "postgis" depends on BR2_PACKAGE_POSTGRESQL_FULL - depends on !BR2_microblazeel && !BR2_microblazebe # ICE depends on BR2_INSTALL_LIBSTDCPP # libgeos, proj depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11, proj depends on BR2_TOOLCHAIN_HAS_THREADS # libgeos, proj
@@ -20,7 +19,6 @@ config BR2_PACKAGE_POSTGIS https://postgis.net/ comment "postgis needs a toolchain w/ C++, threads, wchar, gcc >= 4.7, not binutils bug 27597" - depends on !BR2_microblazeel && !BR2_microblazebe # ICE depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \ BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 12 lines · Giulio Benetti
While adding this package with commit[1] Microblaze architecture has been disabled by default pointing that it suffers from gcc ICE, but this is not true, indeed the build error is referred to libgeos that is postgis dependency:
``` during RTL pass: reload .../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp: In static member function ‘static std::unique_ptr<std::vector<geos::geom::Coordinate> > geos::geom::util::Densifier::densifyPoints(geos::geom::Coordinate::Vect, double, const geos::geom::PrecisionModel*)’: .../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp:128:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1155 128 | } | ^ ```
Quoted 8 lines
This build error has been worked around with this commit[2] and I've just tested this build with Microblaze gcc 9.3/9.4/10.3 and 11.2 and it builds succesfully since the bug above is gcc bug 90620[3] and it's been handled in libgeos already.
So let's allow Microblaze(el/be) to build this postgis.
[1] is:
https://git.buildroot.net/buildroot/commit/?id=9bb1034455de299876dfd03c5074d8bb9622f873
sorry for the noise.
Best regards
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
Quoted 22 lines
[2]: https://git.buildroot.net/buildroot/commit/?id=847b441b1ca2230c4f26a49aaede69eca5e7e7ad
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90620Signed-off-by Giulio Benetti <[email protected]>--- package/postgis/Config.in | 2 -- 1 file changed, 2 deletions(-)package/postgis/Config.in +0
-1@@ -1,7 +1,6 @@ config BR2_PACKAGE_POSTGIS bool "postgis" depends on BR2_PACKAGE_POSTGRESQL_FULL - depends on !BR2_microblazeel && !BR2_microblazebe # ICE depends on BR2_INSTALL_LIBSTDCPP # libgeos, proj depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11, proj depends on BR2_TOOLCHAIN_HAS_THREADS # libgeos, proj
package/postgis/Config.in config BR2_PACKAGE_POSTGIS · line 24
Quoted 7 lines
package/postgis/Config.in +0
-1@@ -20,7 +19,6 @@ config BR2_PACKAGE_POSTGIS https://postgis.net/ comment "postgis needs a toolchain w/ C++, threads, wchar, gcc >= 4.7, not binutils bug 27597" - depends on !BR2_microblazeel && !BR2_microblazebe # ICE depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \ BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 17 lines · Giulio Benetti
While adding this package with commit[1] Microblaze architecture has been disabled by default pointing that it suffers from gcc ICE, but this is not true, indeed the build error is referred to libgeos that is postgis dependency:
``` during RTL pass: reload .../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp: In static member function ‘static std::unique_ptr<std::vector<geos::geom::Coordinate> > geos::geom::util::Densifier::densifyPoints(geos::geom::Coordinate::Vect, double, const geos::geom::PrecisionModel*)’: .../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp:128:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1155 128 | } | ^ ```This build error has been worked around with this commit[2] and I've just tested this build with Microblaze gcc 9.3/9.4/10.3 and 11.2 and it builds succesfully since the bug above is gcc bug 90620[3] and it's been handled in libgeos already.
Quoted 7 lines
So let's allow Microblaze(el/be) to build this postgis.
[1]: https://git.buildroot.net/buildroot/commit/?id=9bb1034455de299876dfd03c5074d8bb9622f8739bb1034455de299876dfd03c5074d8bb9622f873
[2]: https://git.buildroot.net/buildroot/commit/?id=847b441b1ca2230c4f26a49aaede69eca5e7e7ad
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90620Signed-off-by Giulio Benetti <[email protected]>
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedQuoted 19 lines · On Thu, 9 Dec 2021 00:21:48 +0100 Giulio Benetti…
While adding this package with commit[1] Microblaze architecture has been disabled by default pointing that it suffers from gcc ICE, but this is not true, indeed the build error is referred to libgeos that is postgis dependency:
``` during RTL pass: reload .../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp: In static member function ‘static std::unique_ptr<std::vector<geos::geom::Coordinate> > geos::geom::util::Densifier::densifyPoints(geos::geom::Coordinate::Vect, double, const geos::geom::PrecisionModel*)’: .../bootlin-microblazeel-uclibc/build/libgeos-3.9.0/src/geom/util/Densifier.cpp:128:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1155 128 | } | ^ ```This build error has been worked around with this commit[2] and I've just tested this build with Microblaze gcc 9.3/9.4/10.3 and 11.2 and it builds succesfully since the bug above is gcc bug 90620[3] and it's been handled in libgeos already.
So let's allow Microblaze(el/be) to build this postgis.
Quoted 8 lines
[1]: https://git.buildroot.net/buildroot/commit/?id=9bb1034455de299876dfd03c5074d8bb9622f8739bb1034455de299876dfd03c5074d8bb9622f873
[2]: https://git.buildroot.net/buildroot/commit/?id=847b441b1ca2230c4f26a49aaede69eca5e7e7ad
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90620Signed-off-by Giulio Benetti <[email protected]>--- package/postgis/Config.in | 2 -- 1 file changed, 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot