hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siyao Meng (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (YARN-8622) Native build fails on macos due to getgrouplist not found
Date Tue, 16 Apr 2019 16:09:00 GMT

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

Siyao Meng reassigned YARN-8622:
--------------------------------

    Assignee: Siyao Meng

> Native build fails on macos due to getgrouplist not found
> ---------------------------------------------------------
>
>                 Key: YARN-8622
>                 URL: https://issues.apache.org/jira/browse/YARN-8622
>             Project: Hadoop YARN
>          Issue Type: Bug
>         Environment: Darwin 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14
PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
> Apple LLVM version 9.1.0 (clang-902.0.39.2)
>            Reporter: Ewan Higgs
>            Assignee: Siyao Meng
>            Priority: Major
>
> Compiler:
> {code}
> $ /Library/Developer/CommandLineTools/usr/bin/c++ --version
> Apple LLVM version 9.1.0 (clang-902.0.39.2)
> Target: x86_64-apple-darwin17.7.0
> Thread model: posix
> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
> {code}
> Build line:
> {code}
> [WARNING] /Library/Developer/CommandLineTools/usr/bin/c++   -g -O2 -Wall -pthread -D_FILE_OFFSET_BITS=64
-Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/test-oom-listener.dir/main/native/oom-listener/impl/oom_listener.c.o
CMakeFiles/test-oom-listener.dir/main/native/oom-listener/test/oom_listener_test_main.cc.o
 -o test/test-oom-listener libgtest.a -lrt 
> {code}
> Error message: 
> {code}
> ...
> [WARNING] /Users/ehiggs/src/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c:1264:12:
error: no matching function for call to 'getgrouplist'
> [WARNING]   int rc = getgrouplist(user, pw->pw_gid, groups, &ngroups);
> [WARNING]            ^~~~~~~~~~~~
> [WARNING] /usr/include/unistd.h:653:6: note: candidate function not viable: no known
conversion from 'gid_t *' (aka 'unsigned int *') to 'int *' for 3rd argument
> [WARNING] int      getgrouplist(const char *, int, int *, int *);
> [WARNING]          ^
> [WARNING] In file included from /Users/ehiggs/src/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/utils/test_docker_util.cc:24:
> [WARNING] /Users/ehiggs/src/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/docker-util.c:1271:9:
error: no matching function for call to 'getgrouplist'
> [WARNING]     if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) {
> [WARNING]         ^~~~~~~~~~~~
> [WARNING] /usr/include/unistd.h:653:6: note: candidate function not viable: no known
conversion from 'gid_t *' (aka 'unsigned int *') to 'int *' for 3rd argument
> [WARNING] int      getgrouplist(const char *, int, int *, int *);
> [WARNING]          ^
> [WARNING] 2 warnings and 2 errors generated.
> [WARNING] make[2]: *** [CMakeFiles/cetest.dir/main/native/container-executor/test/utils/test_docker_util.cc.o]
Error 1
> [WARNING] make[1]: *** [CMakeFiles/cetest.dir/all] Error 2
> [WARNING] make: *** [all] Error 2
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message