Skip to contentSkip to conversation

package/libmdbx: fix build with glibc < 2.12

PATCH New Fabrice Fontaine 3 participants 3 messages Jan 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libmdbx: fix build with glibc < 2.12

Set CMAKE_BUILD_TYPE to Release to avoid the following build failure with glibc < 2.12:

/home/buildroot/autobuild/run/instance-1/output-1/build/libmdbx-0.9.2/mdbx.c:487:5: error: #warning "libmdbx was only tested with GLIBC >= 2.12." [-Werror=cpp]
# warning "libmdbx was only tested with GLIBC >= 2.12."

     ^~~~~~~

cc1: all warnings being treated as errors

Fixes:
- http://autobuild.buildroot.org/results/1a60b2c3d2f276f99a22da48e8e16fcf5744eba0

---
 package/libmdbx/libmdbx.mk | 3 +++
 1 file changed, 3 insertions(+)
package/libmdbx/libmdbx.mk +3 -0
index 878ea87c07..370df2eaa3 100644
@@ -14,7 +14,10 @@ LIBMDBX_REDISTRIBUTE = YES
 LIBMDBX_STRIP_COMPONENTS = 0
 LIBMDBX_INSTALL_STAGING = YES
 
+# Set CMAKE_BUILD_TYPE to Release to remove -Werror and avoid a build failure
+# with glibc < 2.12
 LIBMDBX_CONF_OPTS = \
+	-DCMAKE_BUILD_TYPE=Release \
 	-DMDBX_INSTALL_MANPAGES=OFF \
 	-DBUILD_FOR_NATIVE_CPU=OFF \
 	-DMDBX_BUILD_CXX=$(if $(BR2_PACKAGE_LIBMDBX_CXX),ON,OFF) \
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 package/libmdbx: fix build with glibc < 2.12

Quoted 33 lines · Fabrice Fontaine

Set CMAKE_BUILD_TYPE to Release to avoid the following build failure with glibc < 2.12:

/home/buildroot/autobuild/run/instance-1/output-1/build/libmdbx-0.9.2/mdbx.c:487:5: error: #warning "libmdbx was only tested with GLIBC >= 2.12." [-Werror=cpp]
# warning "libmdbx was only tested with GLIBC >= 2.12."

     ^~~~~~~

cc1: all warnings being treated as errors

Fixes:
- http://autobuild.buildroot.org/results/1a60b2c3d2f276f99a22da48e8e16fcf5744eba0

---
 package/libmdbx/libmdbx.mk | 3 +++
 1 file changed, 3 insertions(+)
package/libmdbx/libmdbx.mk +3 -1
index 878ea87c07..370df2eaa3 100644
@@ -14,7 +14,10 @@ LIBMDBX_REDISTRIBUTE = YES
 LIBMDBX_STRIP_COMPONENTS = 0
 LIBMDBX_INSTALL_STAGING = YES
 
+# Set CMAKE_BUILD_TYPE to Release to remove -Werror and avoid a build failure
+# with glibc < 2.12
 LIBMDBX_CONF_OPTS = \
+       -DCMAKE_BUILD_TYPE=Release \
        -DMDBX_INSTALL_MANPAGES=OFF \
        -DBUILD_FOR_NATIVE_CPU=OFF \
        -DMDBX_BUILD_CXX=$(if $(BR2_PACKAGE_LIBMDBX_CXX),ON,OFF) \
--
Quoted 1 line

2.29.2

#2 lore raw

PATCH 1/1 package/libmdbx: fix build with glibc < 2.12

In reply to Fabrice Fontaine

Fabrice, All,

On 2021-01-03 14:52 +0100, Fabrice Fontaine spake thusly:

Quoted 5 lines

Set CMAKE_BUILD_TYPE to Release to avoid the following build failure with glibc < 2.12:

/home/buildroot/autobuild/run/instance-1/output-1/build/libmdbx-0.9.2/mdbx.c:487:5: error: #warning "libmdbx was only tested with GLIBC >= 2.12." [-Werror=cpp]
# warning "libmdbx was only tested with GLIBC >= 2.12."

Quoted 7 lines
     ^~~~~~~

cc1: all warnings being treated as errors

Fixes:
- http://autobuild.buildroot.org/results/1a60b2c3d2f276f99a22da48e8e16fcf5744eba0

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 26 lines
---
 package/libmdbx/libmdbx.mk | 3 +++
 1 file changed, 3 insertions(+)
package/libmdbx/libmdbx.mk +3 -0
index 878ea87c07..370df2eaa3 100644
@@ -14,7 +14,10 @@ LIBMDBX_REDISTRIBUTE = YES
 LIBMDBX_STRIP_COMPONENTS = 0
 LIBMDBX_INSTALL_STAGING = YES
 
+# Set CMAKE_BUILD_TYPE to Release to remove -Werror and avoid a build failure
+# with glibc < 2.12
 LIBMDBX_CONF_OPTS = \
+	-DCMAKE_BUILD_TYPE=Release \
 	-DMDBX_INSTALL_MANPAGES=OFF \
 	-DBUILD_FOR_NATIVE_CPU=OFF \
 	-DMDBX_BUILD_CXX=$(if $(BR2_PACKAGE_LIBMDBX_CXX),ON,OFF) \
Signature · 6 lines
2.29.2

_______________________________________________
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.  |
'------------------------------^-------^------------------^--------------------'