delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/10/22:56:40

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Received: by 10.50.7.204 with SMTP id l12mr8028461iga.103.1357876581363; Thu, 10 Jan 2013 19:56:21 -0800 (PST)
Date: Thu, 10 Jan 2013 21:56:25 -0600
From: Yaakov (Cygwin/X) <yselkowitz AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Clang and windows headers
Message-ID: <20130110215625.36b84333@YAAKOV04>
In-Reply-To: <50EEEA49.1050507@alice.it>
References: <50EEEA49 DOT 1050507 AT alice DOT it>
Mime-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, 10 Jan 2013 17:20:25 +0100, Angelo Graziosi wrote:
> Trying to compile a C++ source file including windows.h header with 
> clang++, fails with
> 
>    #error Must define a target architecture

Thanks for the report.  Clang defines _X86_ only for MinGW targets, not
taking into account that we also need to work with w32api headers.  I
would say that its fortunate that this should be easy to patch, until...

> Indeed now ROOT uses clang tools to build (GCC is used to bootstrap 
> ROOT's patched version of CLANG...). Nevertheless the same errors occurs 
> using Cygwin's CLANG as the above simple test case shows...

You have *got* to be kidding me.  Forking an entire compiler within a
source package just for building that package?  I'll admit I didn't see
that coming.

Anyways, I'll fix this shortly.


Yaakov

--
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