delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/03/06/04:15:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F3463858035
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1678094096;
bh=7/EuqkYAdeHwDHY7Se81b9nCZWrWHizBHHfzTnfomV0=;
h=Date:To:cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=uRRBa9oXWnnG/dXvQWnD75clL6VOElVr63+vvhHGhT+sCj1PDjZehvE7CMHMRpuB3
dmdFwOFhd7fizNsUkFF0dapZDElmVibiffJLV/Eu1uUZoKeA6+igs8tPLu2yxHybXI
hRSZPI7nESsJSDcC+WgQHnHFUg6pn+DHjGlCzPrg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 799623858D39
X-Authentication-Warning: m0.truegem.net: mark owned process doing -bs
Date: Mon, 6 Mar 2023 01:14:34 -0800 (PST)
X-X-Sender: mark AT m0 DOT truegem DOT net
To: cygwin AT cygwin DOT com
cc: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Subject: Re: type mismatch on cpuset.h
In-Reply-To: <ZAWqmGwaqbDtwNF8@calimero.vinschen.de>
Message-ID: <Pine.BSF.4.63.2303060113390.23629@m0.truegem.net>
References: <41f9bb68-d5e0-58d7-701f-a84b9db6b9a9 AT gmail DOT com>
<ZAWqmGwaqbDtwNF8 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi Corinna, Marco,

I will look into this shortly.  Sorry for the inconvenience.

..mark


On Mon, 6 Mar 2023, Corinna Vinschen wrote:
> Hi Mark,
>
> On Mar  6 07:57, Marco Atzeri via Cygwin wrote:
>> Hi,
>>
>> building latest gdal I noticed a type mismatch, that forced me to build
>> with "-fpermissive"
>>
>> on /usr/include/sys/cpuset.h
>>
>>  #define CPU_ALLOC(num)      __builtin_malloc (CPU_ALLOC_SIZE(num))
>>
>>
>> but on
>> https://linux.die.net/man/3/cpu_alloc
>>
>>  cpu_set_t *CPU_ALLOC(int num_cpus)
>>
>>
>> so void* versus cpu_set_t*
>
> Marco is correct.  cpuset.h was your pet project a while back.  Would
> you like to pick it up?  Maybe we should convert all the macros into
> type-safe inline functions, or macros calling type-safe (inline)
> functions, as on Linux as well as on BSD?
>
>
> Thanks,
> Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019