[ 
https://issues.apache.org/jira/browse/YARN-6141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sonia Garudi updated YARN-6141:
-------------------------------
    Comment: was deleted

(was: On upgrading the version of cmake to >3.1 the build is successful. For 
cmake version < 3.1, the C standard is being set to c99 in 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/CMakeLists.txt:

if (CMAKE_VERSION VERSION_LESS "3.1")
                  # subset of CMAKE_<LANG>_COMPILER_ID
                  # 
https://cmake.org/cmake/help/v3.0/variable/CMAKE_LANG_COMPILER_ID.html
                  if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
                          CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
                          CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
                        set (CMAKE_C_FLAGS "-std=c99 -Wall -pedantic-errors 
${CMAKE_C_FLAGS}")
                  elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel")
                        set (CMAKE_C_FLAGS "-std=c99 -Wall ${CMAKE_C_FLAGS}")
                  elseif (CMAKE_C_COMPILER_ID STREQUAL "SunPro")
                        set (CMAKE_C_FLAGS "-xc99 ${CMAKE_C_FLAGS}")
                  endif ()
                else ()
                  set (CMAKE_C_STANDARD 99)
                endif ()
)

> ppc64le on Linux doesn't trigger __linux get_executable codepath
> ----------------------------------------------------------------
>
>                 Key: YARN-6141
>                 URL: https://issues.apache.org/jira/browse/YARN-6141
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 3.0.0-alpha3
>         Environment: $ uname -a
> Linux f8eef0f055cf 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 
> 17:42:36 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
>            Reporter: Sonia Garudi
>              Labels: ppc64le
>         Attachments: YARN-6141.diff
>
>
> On ppc64le architecture, the build fails in the 'Hadoop YARN NodeManager' 
> project with the below error:
> Cannot safely determine executable path with a relative HADOOP_CONF_DIR on 
> this operating system.
> [WARNING]  #error Cannot safely determine executable path with a relative 
> HADOOP_CONF_DIR on this operating system.
> [WARNING]   ^
> [WARNING] make[2]: *** 
> [CMakeFiles/container.dir/main/native/container-executor/impl/get_executable.c.o]
>  Error 1
> [WARNING] make[2]: *** Waiting for unfinished jobs....
> [WARNING] make[1]: *** [CMakeFiles/container.dir/all] Error 2
> [WARNING] make: *** [all] Error 2
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> Cmake version used :
> $ /usr/bin/cmake --version
> cmake version 2.8.12.2



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to