delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/30/21:01:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=NnIOyctxIPzf61vo
gWqhMmLb887x080AsGew3+vEcdx01QNfCEpoF0Mxs1M+6RhNI/gUzj9FqDcS7Pfr
FBauyrhFsDKLA77Sz4AALFTOVFormV5v2cWESmer5CaWMzicMftCB9bx7ygoUQ2g
RaAsGzhctBvHg//I4Qua7zLMbJM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=SILnoUeh2lgcmTq/6QBkJt
hmm54=; b=Zp+jywyQCSMliHQiZSsqmLMwcunwsXgTyqFUTxc0+ULehQSC/KMSx1
kP7Dx06yS+tcKkdK8BacdkWDN34tbdWMGFv5LdAMFES1Y0BflIZMQmIhTxorAgQF
I9iQlM+hJmKfHVQ7eo4JzztMcfmh+B0tiNHOxB1d1OGAarCivxALc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*i:sk:b9a26d6, H*MI:sk:b9a26d6, H*f:sk:b9a26d6, Hx-languages-length:1227
X-HELO: mail-oi0-f45.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=tTJEpSSs4zns3G1DFRvNK/dAT7MRzkeWs4yzXbeUs/E=; b=kcCUcl4/GuuUQEiS8CRtQ8VPb3PPMdVtQ+wlL+GRYGRM2fhrv1GzA7kVb8jTcI5psx +G7zrrxMksfETxCUn48nBIcdMwcexT1TOPdReVXQ8/VJl+D4gd8baz/8vj36Mu6MGEVP /lh2YhJEFcTdew57WZqozPO7KkGMOaTmIxD3wHeQHTLk8jNxqRwnQFPLZ/7q+HR5SJZp T/7lbj0dqysdrEGWiLhJVZzv/L0zpAeoY3mI6A2sZYFMGjiNei3Lg+gZgaPDWGoGvf3b 8xKkZHi+6yTD+6y1U8ITNfap143tswPZovQiFYYgomKTVJnFMiykpjcmx0NMgsUer75z borA==
X-Gm-Message-State: ABUngvesKVoH9OpFgVh5l51ZQ3ozStDpNrN2muKm+ETnXcnuh0C2Vj6khlDxmUAOkAQFUA==
X-Received: by 10.107.32.14 with SMTP id g14mr18390089iog.85.1477875661481; Sun, 30 Oct 2016 18:01:01 -0700 (PDT)
Subject: Re: sys/cdefs.h or maybe gcc build issue
To: cygwin AT cygwin DOT com
References: <57cbf5e2-f37b-ae50-f65c-dd6782481962 AT gmail DOT com> <b9a26d6c-6c17-7486-4abb-fcfbf8915c09 AT SystematicSw DOT ab DOT ca>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <e2ab48da-47f6-8f1d-48a0-7c1e8059836c@gmail.com>
Date: Sun, 30 Oct 2016 21:01:02 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <b9a26d6c-6c17-7486-4abb-fcfbf8915c09@SystematicSw.ab.ca>
X-IsSubscribed: yes

On 10/30/2016 5:09 PM, Brian Inglis wrote:
> On 2016-10-30 12:23, cyg Simple wrote:
>> The below sample code will give a warning that visibility isn't
>> supported in this configuration.  Either the GCC build is incorrect or
>> the sys/cdefs.h needs to be modified to define __hidden to empty.
> 
> https://cygwin.com/ml/cygwin/2005-08/msg01057.html
> 

I figured that out but that means sys/cdefs.h as delivered needs to ...

> gcc wiki demonstrates what needs to be done instead:
> 
> https://gcc.gnu.org/wiki/Visibility#line-76
> 
> at a minimum add `&& !define(__CYGWIN__)`; other posts also exclude

consider this and define __hidden and other visibility helper macros as
empty.

> MinGW and ARM-PE (W10 Surface, IoT) targets using PE format not ELF;
> gcc notes not all ELF targets support this:
>  

If others deliver a sys/cdefs.h then it should at least declare these
helper macros as empty but that isn't for this list.

> https://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Function-Attributes.html#index-_0040code_007bvisibility_007d-attribute-1624
> 
> 
> Which raises the interesting question - anyone tried porting Cygwin
> to non-x86 arch?
> 

Maybe but I don't know.

-- 
cyg Simple

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

- Raw text -


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