* [Buildroot] [Bug 15281] New: Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer
@ 2023-01-23 21:37 bugzilla
2023-01-24 12:09 ` [Buildroot] [Bug 15281] " bugzilla
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla @ 2023-01-23 21:37 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=15281
Bug ID: 15281
Summary: Error compiling GDAL library for RPi-64 if libgdal-dev
installed on the host computer
Product: buildroot
Version: 2022.11
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: himaralonso+buildroot@gmail.com
CC: buildroot@uclibc.org
Target Milestone: ---
I get a compiler error when Buildroot tries to compile "tigerpoint.cpp" from
the GDAL package if the "libgdal-dev" package is installed on the host computer
(Ubuntu 22.04 x86_64).
I am using the default configuration for Raspberry Pi CM4IO 64 bits; the "gdal"
library is the only extra package I am adding.
This is the sequence to reproduce the error:
$ git clone https://github.com/buildroot/buildroot.git -b 2022.11.1
$ cd buildroot
$ make raspberrypicm4io_64_defconfig
$ make menuconfig
# Add: Target packages / Libraries / Other / gdal (BR2_PACKAGE_GDAL=y)
$ make
The error message does not give any clues:
make[1]: *** [package/pkg-generic.mk:293:
/home/user/rpitest/buildroot/output/build/gdal-3.5.1/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
The same error happens on different computers, all running the same Ubuntu
version. I have also tried using an external toolchain (Bootlin
aarch64--musl--stable-2021.11-1) and I get the same result.
The only way out seems to be removing "libgdal-dev" on the host computer along
with its dependencies (note the apt autoremove line below) and a running a
clean rebuild as follows:
$ sudo apt purge libgdal-dev
$ sudo apt autoremove
$ make gdal-dirclean
$ make gdal
Given my lack of experience and the little amount of information from the error
message I am unable to figure out where the problem could be. There seems to be
some conflict between the GDAL library installed on my computer and the one
downloaded by Buildroot. I might have made a mistake but I would just not
expect Buildroot to look for (e.g.) include paths out of the "buildroot"
folder.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 15281] Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer
2023-01-23 21:37 [Buildroot] [Bug 15281] New: Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer bugzilla
@ 2023-01-24 12:09 ` bugzilla
2023-01-25 1:00 ` bugzilla
2023-01-28 20:28 ` bugzilla
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla @ 2023-01-24 12:09 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=15281
--- Comment #1 from Maxim Kochetkov <fido_max@inbox.ru> ---
Created attachment 9486
--> https://bugs.busybox.net/attachment.cgi?id=9486&action=edit
0001-package-gdal-switch-to-cmake-build.patch
Please try this patch
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 15281] Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer
2023-01-23 21:37 [Buildroot] [Bug 15281] New: Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer bugzilla
2023-01-24 12:09 ` [Buildroot] [Bug 15281] " bugzilla
@ 2023-01-25 1:00 ` bugzilla
2023-01-28 20:28 ` bugzilla
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla @ 2023-01-25 1:00 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=15281
--- Comment #2 from Himar Alonso <himaralonso+buildroot@gmail.com> ---
This patch solves the problem. I have tried using both the internal and
external toolchains. It just works.
Thanks a lot Maxim!! :)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 15281] Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer
2023-01-23 21:37 [Buildroot] [Bug 15281] New: Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer bugzilla
2023-01-24 12:09 ` [Buildroot] [Bug 15281] " bugzilla
2023-01-25 1:00 ` bugzilla
@ 2023-01-28 20:28 ` bugzilla
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla @ 2023-01-28 20:28 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=15281
Thomas Petazzoni <thomas.petazzoni@bootlin.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@bootlin.com> ---
Fixed by
https://gitlab.com/buildroot.org/buildroot/-/commit/2b43579e9453a4e4f0d25d902634ebd9f1721dfc
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-28 20:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 21:37 [Buildroot] [Bug 15281] New: Error compiling GDAL library for RPi-64 if libgdal-dev installed on the host computer bugzilla
2023-01-24 12:09 ` [Buildroot] [Bug 15281] " bugzilla
2023-01-25 1:00 ` bugzilla
2023-01-28 20:28 ` bugzilla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.