site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=04042017; t=1532525937; bh=NdTtVW0vUlY7GmyQuislUAsGn5P91bF/u9FROM+P4lk=; h=From:Content-type:MIME-version:Subject:Message-id:Date:To; b=Aads4REZMzu8zlfp1ZVpk1ROyJL+MFCHeX/Bz6Y/KTfXihgxsG10MdKhT1aBAVL8g I264409s9CN1neAO6MwF5iT6jmiLbmTGd/iXlFiI8I9s7I8/vAM+4mn47bC15plRpi ubMPPFvpcy6G54Ej1Dw5GqUjrojKM2sUt3omp7aZOKJQYjltu7x6Ic6EljJuEfrYgK xhJd0699RkCMSMn0/X0XiCDZEE5KnjTTWwbO1GdeQ4pyyJELhf/Zn+WVHBrt9Ioaeg hhxh5we9Rz7hw4ExJNPjMJu/PuElTsVyAZrHmWs4C4pO/7rTpkAY74AVcZJvyLjqP/ FFXkrLFST+WGg==
Hello,
I posted this in the darwin-kernel list a while ago, but am still stuck.
My goal is to build a 10.13 kernel, but make SDKROOT=macosx ARCH_CONFIGS=X86_64
KERNEL_CONFIGS=RELEASE XNU_LOGCOLORS=y BUILD_WERROR=0 is throwing several
errors at me.
I have checked the various scripts on the internet, set up a 10.13.2 VM,
installed Xcode 9.2 …
Anyone here who was successful in building the Kernel, or who could provide
some help?
Or where do the Kernel people hang out these days?
Thanks
Alex
Errors specifically are
/Users/below/xnu2/xnu-4570.31.3/osfmk/i386/cpu_topology.c:60:3: error: use of
undeclared
identifier 'ptrdiff_t'
ptrdiff_t coff = cpup - cpu_datap(0);
^
/Users/below/xnu2/xnu-4570.31.3/osfmk/i386/cpu_topology.c:62:32: error: use of
undeclared
identifier 'coff'
cpup->cd_shadow = &cpshadows[coff];
^
[x86_64 OSX] net_stubs.o ERROR: ctfconvert: file does not contain dwarf
type data (try compiling with -g)
[x86_64 OSX] classq_util.o ERROR: ctfconvert: file does not contain
dwarf type data (try compiling with -g)
[x86_64 OSX] key_debug.o ERROR: ctfconvert: file does not contain dwarf
type data (try compiling with -g)
[x86_64 OSX] dtrace_alloc.o ERROR: ctfconvert: file does not contain
dwarf type data (try compiling with -g)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: Darwin-dev(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=Yi/YrED1zTfsbUCwVLwNunMaRn+a0 LHWwRz88monxcQ=; b=dKkX+SPGPrCL9Gf5kQuQHba76lVjUt2Y8KTZZa81JGeWA pQhZHFkHDKTgkAcYE/zDvRIh3syqIDrkqXR7UrBrmQKl8jFlkS1vFT2qy3xl4MU3 xOLpRZItir6GbM46q0UOEaGxHaMMvDK1HmSGh9GSvlYxBrsvDxIboP/xO+z7janE ApBQZk/G8EJNRxPlAU4Hy3Cdnpt/XamluCNZztx8SFhZbCqAMWTh7VG1jXw6AkPJ +Mb7EfKM9g6Tq7R9fuceGPJLZRvK//NewM/nNSeP0fPpRWVkF5cPMm8p3TFdpVfC TdPuBYV0d34I5TlRB6HgKK2iAlFNUQjcs4JFDMiUA==
> On Jul 14, 2018, at 6:01 AM, Richard Schmitt <rschmitt(a)bluepeach.com> wrote:
>
> futex is a user-mode implementation of a mutex (i.e. locking). Darwin
> doesn’t have a futex but it’s got ways to provide the locking.
>From the blog post you linked to, it sounds like Darwin’s pthread_mutex is
essentially a futex, i.e. it doesn’t enter the kernel unless there’s contention:
>> In MacOS 10.6.6, a lock implementation is provided using the POSIX Threads
>> API. It’s a lightweight mutex which doesn’t enter the kernel unless there’s
>> contention.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: Darwin-dev(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1531573286; bh=JDhfiVMFlwYe9i54By6wZkykTt7gXoZvO4so/a4TMAQ=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From:Subject; b=t3AWnWjHNfDLozmvRQ+wtO4jzAk95avr96uZtansBnydSbkD9wR67LApMItsgp+ZKFmJKH6/lv1z9cA3oyH9d342bQ1IP+/Uu7KK/XiaOmWQQR3e5TFQadM/l0NTFcu7KpqexcHtzvDBfuUyHj8bDzsCmpPy/p8a2ZGsFLqpcKUUEL4TPQL4hyCLBaqP/A6TAqbF/f9jHdGdITXKsK40CeZlk34EHpV2nC3dFJ8UkiIgfgE1r0xRpMUoVHpEcsy+ByairDHjV+j7NdoFZT1yJGWLT6+UDfUSDKwDP1zFmQZNtu2xI7zgtqibxDNC08t/zdPH5GXVWyYU7uGC/SYz6A==
Yes and no.
futex is a user-mode implementation of a mutex (i.e. locking). Darwin doesn’t
have a futex but it’s got ways to provide the locking. It would require you to
modify the original source though (or you can provide your own wrappers to the
futex calls for Darwin).
see: https://preshing.com/20111124/always-use-a-lightweight-mutex/
<https://preshing.com/20111124/always-use-a-lightweight-mutex/>
Rich
> On Jul 13, 2018, at 3:55 PM, Pascal <sur.pignard(a)wanadoo.fr> wrote:
>
> Hello,
>
> In a library code source coming from Linux, I've got the following error on
> macOS 10.13:
> simple_components/os/linux/synchronization_linux.c:29:10: fatal error:
> linux/futex.h: No such file or directory
> #include <linux/futex.h>
>
> I can't found any futex.h in /usr/include.
>
> Is there macOS or Darwin alternatives to Futex?
>
> Thanks, Pascal.
> http://blady.pagesperso-orange.fr
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/darwin-dev/rschmitt%40bluepeach.com
>
> This email sent to rschmitt(a)bluepeach.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
Hello,
In a library code source coming from Linux, I've got the following error on
macOS 10.13:
simple_components/os/linux/synchronization_linux.c:29:10: fatal error:
linux/futex.h: No such file or directory
#include <linux/futex.h>
I can't found any futex.h in /usr/include.
Is there macOS or Darwin alternatives to Futex?
Thanks, Pascal.
http://blady.pagesperso-orange.fr
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pd-devs-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=zAQhOHIHVDRXRZD83nYN3eLQr+/qDfix0KHlatWRWdE=; b=hSnTK3FWWitMSPp+UcSA9rIwYDknShogQpygOFI5xl8YQWt/EaN76CCbXXMCP+9PZ5 b7RcB/uUmHIo8KMENb8iwbWz9samPNpbHbJglJbfRZhOMaHuZokg1Nd2B4DBsTTTA3lu 3cy0zw/nhZty2oYIxPsqLCe+9578Ux6ZzNMyuNixd24aaYtvWtshzijLRaKDrU94Iiq7 5kWbcPvdyDn2lCjUPgvDqcjJT7kWZKC657JL3C3mi7Z7ShfT4eElKrpz4Vsk4jtmOnEV 4u7csHQMWPeEdFZohXNjKuz3V0ul8TuCWxF0xnFgtSU3cEaTNPqOmeHBAF2AxhP8jN/8 CqKw==
All,
PureDarwin Beta OS has dropped to the community. We sure could use some
help with some IO Families and Drivers!!!
https://github.com/PureDarwin/PD-17.4-Beta
Please open an Issue on the Github page with Ideas and such.
Thanks
Cliff Sekel aka InSaneDarwin
PureDarwin Project
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com