package/armadio: fix build when host has hdf5
PATCH 1/1 package/armadio: fix build when host has hdf5
From: Gwenhael Goavec-Merou <[email protected]>
When host computer has hdf5 library installed, armadillo fails to build with:
[...]
aarch64-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/hdf5/serial' make[3]: *** [CMakeFiles/armadillo.dir/build.make:63: CMakeFiles/armadillo.dir/src/wrapper1.cpp.o] Error 1 aarch64-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/hdf5/serial' [...]
This issue seems known and is mentionned in a message, displayed at detection step:
[...]
-- *** If use of HDF5 is causing problems,
-- *** rerun cmake with HDF5 detection disabled:
-- *** cmake -D DETECT_HDF5=false .
--
[...]
Since hdf5 in not supported by buildroot, this patch force disabling this detection.
--- package/armadillo/armadillo.mk | 2 ++ 1 file changed, 2 insertions(+)
package/armadillo/armadillo.mk +2 -0
@@ -12,4 +12,6 @@ ARMADILLO_INSTALL_STAGING = YES ARMADILLO_LICENSE = Apache-2.0 ARMADILLO_LICENSE_FILES = LICENSE.txt +ARMADILLO_CONF_OPTS = -DDETECT_HDF5=false + $(eval $(cmake-package))
Signature · 1 line
2.25.1
Yann E. MORIN
AppliedPATCH 1/1 package/armadio: fix build when host has hdf5
Gwenhael, All,
On 2020-04-20 18:07 +0200, Gwenhael Goavec-Merou spake thusly:
Quoted 19 lines
From: Gwenhael Goavec-Merou <[email protected]>
When host computer has hdf5 library installed, armadillo fails to build with:
[...]
aarch64-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/hdf5/serial' make[3]: *** [CMakeFiles/armadillo.dir/build.make:63:CMakeFiles/armadillo.dir/src/wrapper1.cpp.o] Error 1 aarch64-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/hdf5/serial' [...]This issue seems known and is mentionned in a message, displayed at detection step:
[...]
-- *** If use of HDF5 is causing problems,
-- *** rerun cmake with HDF5 detection disabled:
-- *** cmake -D DETECT_HDF5=false .
--
[...]
Quoted 3 lines
Since hdf5 in not supported by buildroot, this patch force disabling this detection.
Signed-off-by Gwenhael Goavec-Merou <[email protected]>
Applied to master, after fixing the package name in the title. Thanks!
Regards,
Yann E. MORIN.
Quoted 22 lines
--- package/armadillo/armadillo.mk | 2 ++ 1 file changed, 2 insertions(+)package/armadillo/armadillo.mk +2
-0@@ -12,4 +12,6 @@ ARMADILLO_INSTALL_STAGING = YES ARMADILLO_LICENSE = Apache-2.0 ARMADILLO_LICENSE_FILES = LICENSE.txt +ARMADILLO_CONF_OPTS = -DDETECT_HDF5=false + $(eval $(cmake-package))Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'