From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127959 invoked by alias); 31 Oct 2016 01:01:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127949 invoked by uid 89); 31 Oct 2016 01:01:13 -0000 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 Received: from mail-oi0-f45.google.com (HELO mail-oi0-f45.google.com) (209.85.218.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Oct 2016 01:01:03 +0000 Received: by mail-oi0-f45.google.com with SMTP id 62so76261574oif.1 for ; Sun, 30 Oct 2016 18:01:03 -0700 (PDT) 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) Received: from [192.168.0.6] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id j78sm7616872ita.12.2016.10.30.18.01.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2016 18:01:01 -0700 (PDT) Subject: Re: sys/cdefs.h or maybe gcc build issue To: cygwin@cygwin.com References: <57cbf5e2-f37b-ae50-f65c-dd6782481962@gmail.com> From: cyg Simple Message-ID: Date: Mon, 31 Oct 2016 11:05:00 -0000 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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00301.txt.bz2 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