This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new 0e81a54b1c8 HADOOP-19551. Fix compilation error of native libraries on 
newer GCC. (#7644)
0e81a54b1c8 is described below

commit 0e81a54b1c858ca552629e819ad507fb306dbe63
Author: Masatake Iwasaki <iwasak...@apache.org>
AuthorDate: Wed May 7 15:01:01 2025 +0900

    HADOOP-19551. Fix compilation error of native libraries on newer GCC. 
(#7644)
    
    Reviewed-by: Chris Nauroth <cnaur...@apache.org>
    (cherry picked from commit 7ea3f51287c54ac563ef19d42c5bc102699ea025)
---
 hadoop-common-project/hadoop-common/HadoopCommon.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hadoop-common-project/hadoop-common/HadoopCommon.cmake 
b/hadoop-common-project/hadoop-common/HadoopCommon.cmake
index 7628ecf628d..8ed478dc8df 100644
--- a/hadoop-common-project/hadoop-common/HadoopCommon.cmake
+++ b/hadoop-common-project/hadoop-common/HadoopCommon.cmake
@@ -145,6 +145,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
     # Make GNU extensions available.
     hadoop_add_compiler_flags("-D_GNU_SOURCE")
 
+    # using old default behavior on GCC >= 14.0
+    hadoop_add_compiler_flags("-Wno-error=implicit-function-declaration")
+
     # If JVM_ARCH_DATA_MODEL is 32, compile all binaries as 32-bit.
     if(JVM_ARCH_DATA_MODEL EQUAL 32)
         # Force 32-bit code generation on amd64/x86_64, ppc64, sparc64


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to