You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Till Toenshoff (JIRA)" <ji...@apache.org> on 2018/01/31 23:13:01 UTC
[jira] [Commented] (MESOS-8457) Build failure on macOS 10.13 due to
the syscall deprecation.
[ https://issues.apache.org/jira/browse/MESOS-8457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347757#comment-16347757 ]
Till Toenshoff commented on MESOS-8457:
---------------------------------------
While there is not real solution available right now - one workaround is making sure that warnings to not get elevated to errors: {{--disable-werror}}.
We should however find a proper solution here. The options clearly are:
* prevent the syscall on macOS by implementing Apple's new alternative
** have not been able to find something for these purposes
* add warning suppressions to our build system depending on the platform
* surround the specific code with local warning suppressions via {{#pragma}}
> Build failure on macOS 10.13 due to the syscall deprecation.
> ------------------------------------------------------------
>
> Key: MESOS-8457
> URL: https://issues.apache.org/jira/browse/MESOS-8457
> Project: Mesos
> Issue Type: Bug
> Components: build
> Reporter: Gilbert Song
> Priority: Major
>
> {noformat}
> In file included from ../../src/appc/spec.cpp:17:
> In file included from ../../3rdparty/stout/include/stout/os.hpp:69:
> In file included from ../../3rdparty/stout/include/stout/os/su.hpp:23:
> ../../3rdparty/stout/include/stout/os/posix/su.hpp:264:9: error: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Werror,-Wdeprecated-declarations]
> if (::syscall(243, ngroups, _gids, uid.get()) == -1) {
> ^
> /usr/include/unistd.h:745:5: note: 'syscall' has been explicitly marked deprecated here
> int syscall(int, ...);
> ^
> 1 error generated.
> make[2]: *** [appc/libmesos_no_3rdparty_la-spec.lo] Error 1
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)