From owner-freebsd-arm@FreeBSD.ORG Tue Dec 11 18:25:42 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA6836FB for ; Tue, 11 Dec 2012 18:25:42 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id 81D108FC15 for ; Tue, 11 Dec 2012 18:25:41 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id B6A3239D49; Wed, 12 Dec 2012 03:25:34 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id A253B39D46; Wed, 12 Dec 2012 03:25:34 +0900 (JST) Message-ID: <3DE6764415F645FCA29CD18BA51762F8@ad.peach.ne.jp> From: "Daisuke Aoyama" To: "Andrew Turner" , References: <20121209160721.571186d8@fubar.geek.nz> In-Reply-To: <20121209160721.571186d8@fubar.geek.nz> Subject: Re: ARM EABI patch Date: Wed, 12 Dec 2012 03:25:31 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 18:25:42 -0000 Hi, I found cross-build problem of the EABI patch. I'm trying to use it for Raspberry Pi. According to machine/_types.h, wchar_t is unsigned int when EABI. This patch solve "error: array of inappropriate type initialized from string constant" when use L"foo". --- contrib/gcc/config/arm/freebsd.h (revision 244112) +++ contrib/gcc/config/arm/freebsd.h (working copy) @@ -84,6 +110,9 @@ /* We use the GCC defaults here. */ #undef WCHAR_TYPE +#if defined(TARGET_ARM_EABI) || defined(__ARM_EABI__) +#define WCHAR_TYPE "unsigned int" +#endif #if defined(FREEBSD_ARCH_armv6) #undef SUBTARGET_CPU_DEFAULT Please check. Thank you. -- Daisuke Aoyama