| Summary: | mariadb build error | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Alexey <skif> |
| Component: | Other | Assignee: | Ryan Coe <bluemrp9> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2018.11.4 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | cmake error log | ||
|
Description
Alexey
2019-04-13 08:49:56 UTC
Created attachment 7981 [details]
cmake error log
I can confirm a build failure, but the error is in fact from this (I think): CMake Error at cmake/os/Linux.cmake:29 (STRING): STRING sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): CMakeLists.txt:101 (INCLUDE) CMake Error at cmake/os/Linux.cmake:29 (STRING): STRING sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): CMakeLists.txt:101 (INCLUDE) Note that mariadb doesn't get built in the autobuilders because it comes from a choice. I get a build failure related to a missing host openssl package. The following patch [1] fixes it for me. Note that this was marked superseded. [1] http://patchwork.ozlabs.org/patch/1026864/ Can reproduce the failure Arnout describes (on buildroot master), fixed by:
diff -u build/mariadb-10.3.16/cmake/os/Linux.cmake.orig build/mariadb-10.3.16/cmake/os/Linux.cmake
--- build/mariadb-10.3.16/cmake/os/Linux.cmake.orig 2019-08-15 21:36:25.032673425 +0200
+++ build/mariadb-10.3.16/cmake/os/Linux.cmake 2019-08-15 21:36:54.065106056 +0200
@@ -27,8 +27,8 @@
# Fix CMake (< 2.8) flags. -rdynamic exports too many symbols.
FOREACH(LANG C CXX)
STRING(REPLACE "-rdynamic" ""
- CMAKE_SHARED_LIBRARY_LINK_${LANG}_FLAGS
- ${CMAKE_SHARED_LIBRARY_LINK_${LANG}_FLAGS}
+ "CMAKE_SHARED_LIBRARY_LINK_${LANG}_FLAGS"
+ "${CMAKE_SHARED_LIBRARY_LINK_${LANG}_FLAGS}"
)
ENDFOREACH()
Disclaimer: no cmake expert, just a quick fix/hack, not sure if the patch makes sense ;-), but fixes the configure error...
@Alexey: Your failure is with buildroot-2018.11.4, feel free to try the patch, in case of failure please provide a complete config/defconfig file to reproduce and a complete log of the mariadb build steps (your provided log is only about the cmake checks, no real failure)...
Fixed by c2ff8c63dab10d2c1adca7229101b5468dac562b |