[
https://issues.apache.org/jira/browse/HDFS-13376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16423640#comment-16423640
]
LiXin Ge commented on HDFS-13376:
---------------------------------
[~James C] Thanks for reviewing this.
I have reverted my GCC to 4.4.7 and get these message below, I'm not sure if
this is what you want.
Which would be the better one of the two choices?
1.We just leave these message in this jira for others to search
2.update the patch to add more information in {{BUILDING.txt}}
Messages:
>From {{native/libhdfspp/CMakeLists.txt}}
{noformat}
# Check if thread_local is supported
unset (THREAD_LOCAL_SUPPORTED CACHE)
set (CMAKE_REQUIRED_DEFINITIONS "-std=c++11")
set (CMAKE_REQUIRED_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
check_cxx_source_compiles(
"#include <thread>
int main(void) {
thread_local int s;
return 0;
}"
THREAD_LOCAL_SUPPORTED)
if (NOT THREAD_LOCAL_SUPPORTED)
message(FATAL_ERROR
"FATAL ERROR: The required feature thread_local storage is not supported by
your compiler. \
Known compilers that support this feature: GCC, Visual Studio, Clang
(community version), \
Clang (version for iOS 9 and later).")
endif (NOT THREAD_LOCAL_SUPPORTED)
{noformat}
>From {{CMakeError.log}}
{noformat}
Performing C++ SOURCE FILE Test THREAD_LOCAL_SUPPORTED failed with the
following output:
Change Dir:
/home/glx/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_0c6ac/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_0c6ac.dir/build.make
CMakeFiles/cmTC_0c6ac.dir/build
gmake[1]: Entering directory
`/home/glx/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0c6ac.dir/src.cxx.o
/usr/bin/c++ -g -O2 -Wall -pthread -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DTHREAD_LOCAL_SUPPORTED -std=c++11 -o CMakeFiles/cmTC_0c6ac.dir/src.cxx.o -c
/home/glx/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/CMakeFiles/CMakeTmp/src.cxx
cc1plus: error: unrecognized command line option "-std=c++11"
gmake[1]: *** [CMakeFiles/cmTC_0c6ac.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory
`/home/glx/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/target/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_0c6ac/fast] Error 2
Source file was:
#include <thread>
int main(void) {
thread_local int s;
return 0;
}
{noformat}
> TLS support error in Native Build of hadoop-hdfs-native-client
> --------------------------------------------------------------
>
> Key: HDFS-13376
> URL: https://issues.apache.org/jira/browse/HDFS-13376
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: build, documentation, native
> Affects Versions: 3.1.0
> Reporter: LiXin Ge
> Assignee: LiXin Ge
> Priority: Major
> Attachments: HDFS-13376.001.patch
>
>
> mvn --projects hadoop-hdfs-project/hadoop-hdfs-native-client clean package
> -Pdist,native -DskipTests -Dtar
> {noformat}
> [exec] CMake Error at main/native/libhdfspp/CMakeLists.txt:64 (message):
> [exec] FATAL ERROR: The required feature thread_local storage is not
> supported by
> [exec] your compiler. Known compilers that support this feature: GCC,
> Visual
> [exec] Studio, Clang (community version), Clang (version for iOS 9 and
> later).
> [exec]
> [exec]
> [exec] -- Performing Test THREAD_LOCAL_SUPPORTED - Failed
> [exec] -- Configuring incomplete, errors occurred!
> {noformat}
> My environment:
> Linux: Red Hat 4.4.7-3
> cmake: 3.8.2
> java: 1.8.0_131
> gcc: 4.4.7
> maven: 3.5.0
> Seems this is because the low version of gcc, will report after confirming
> it.
> Maybe the {{BUILDING.txt}} needs update to explain the supported lowest gcc
> version.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]