[ https://issues.apache.org/jira/browse/HADOOP-18274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gautham Banasandra updated HADOOP-18274: ---------------------------------------- Description: HDFS Native Client fails to build on Debian 10 due to the following error - {code} [WARNING] CMake Error at main/native/libhdfspp/CMakeLists.txt:68 (FetchContent_MakeAvailable): [WARNING] Unknown CMake command "FetchContent_MakeAvailable". [WARNING] [WARNING] [WARNING] -- Configuring incomplete, errors occurred! {code} Jenkins run - https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4371/2/artifact/out/branch-compile-hadoop-hdfs-project_hadoop-hdfs-native-client.txt This cause for this issue is that the version of CMake on Debian 10 (which is installed through apt) is 3.13 and *FetchContent_MakeAvailable* was [introduced in CMake 3.14|https://cmake.org/cmake/help/v3.14/module/FetchContent.html] Thus, we upgrade CMake by installing through the [install-cmake.sh|https://github.com/apache/hadoop/blob/34a973a90ef89b633c9b5c13a79aa1ac11c92eb5/dev-support/docker/pkg-resolver/install-cmake.sh] from pkg-resolver which installs CMake 3.19.0, instead of installing CMake through apt on Debian 10. was: HDFS Native Client fails to build on Debian 10 due to the following error - {code} [WARNING] CMake Error at main/native/libhdfspp/CMakeLists.txt:68 (FetchContent_MakeAvailable): [WARNING] Unknown CMake command "FetchContent_MakeAvailable". [WARNING] [WARNING] [WARNING] -- Configuring incomplete, errors occurred! {code} Jenkins run - https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4371/2/artifact/out/branch-compile-hadoop-hdfs-project_hadoop-hdfs-native-client.txt This cause for this issue is that the version of CMake on Debian 10 (which is installed through apt) is 3.13 and *FetchContent_MakeAvailable* was [introduced in CMake 3.14|https://cmake.org/cmake/help/v3.14/module/FetchContent.html] Thus, we upgrade CMake by installing through the [install-cmake.sh|https://github.com/apache/hadoop/blob/34a973a90ef89b633c9b5c13a79aa1ac11c92eb5/dev-support/docker/pkg-resolver/install-cmake.sh] from pkg-resolver which installs CMake 3.19.0, instead of installing CMake through apt on Debian 10. > Use CMake 3.19.0 in Debian 10 > ----------------------------- > > Key: HADOOP-18274 > URL: https://issues.apache.org/jira/browse/HADOOP-18274 > Project: Hadoop Common > Issue Type: Bug > Components: build > Affects Versions: 3.4.0 > Reporter: Gautham Banasandra > Assignee: Gautham Banasandra > Priority: Blocker > > HDFS Native Client fails to build on Debian 10 due to the following error - > {code} > [WARNING] CMake Error at main/native/libhdfspp/CMakeLists.txt:68 > (FetchContent_MakeAvailable): > [WARNING] Unknown CMake command "FetchContent_MakeAvailable". > [WARNING] > [WARNING] > [WARNING] -- Configuring incomplete, errors occurred! > {code} > Jenkins run - > https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4371/2/artifact/out/branch-compile-hadoop-hdfs-project_hadoop-hdfs-native-client.txt > This cause for this issue is that the version of CMake on Debian 10 (which is > installed through apt) is 3.13 and *FetchContent_MakeAvailable* was > [introduced in CMake > 3.14|https://cmake.org/cmake/help/v3.14/module/FetchContent.html] > Thus, we upgrade CMake by installing through the > [install-cmake.sh|https://github.com/apache/hadoop/blob/34a973a90ef89b633c9b5c13a79aa1ac11c92eb5/dev-support/docker/pkg-resolver/install-cmake.sh] > from pkg-resolver which installs CMake 3.19.0, instead of installing CMake > through apt on Debian 10. -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org