From owner-freebsd-office@FreeBSD.ORG Fri Sep 9 20:17:29 2011 Return-Path: Delivered-To: office@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCC2B106564A; Fri, 9 Sep 2011 20:17:29 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from sunpoet.net (sunpoet.net [220.133.12.240]) by mx1.freebsd.org (Postfix) with ESMTP id 55B578FC14; Fri, 9 Sep 2011 20:17:25 +0000 (UTC) Received: by sunpoet.net (Postfix, from userid 1000) id 8A3745FCC; Sat, 10 Sep 2011 04:16:56 +0800 (CST) Date: Sat, 10 Sep 2011 04:16:56 +0800 From: Sunpoet Po-Chuan Hsieh To: "Hartmann, O." Message-ID: <20110909201655.GC77562@bonjour.sunpoet.net> References: <201109051059.p85AxDcG099992@red.freebsd.org> <20110905161615.GA77562@bonjour.sunpoet.net> <4E652081.9020104@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4E652081.9020104@zedat.fu-berlin.de> Organization: The FreeBSD Project User-Agent: Mutt/1.5.21 (2010-09-15) Cc: office@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: ports/160481: devel/icu: Errors in total: 1. TestCompilerRTTI UObjectTest utility CLANG build failure X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 20:17:29 -0000 On Mon, Sep 05, 2011 at 09:18:25PM +0200, Hartmann, O. wrote: > On 09/05/11 18:16, Sunpoet Po-Chuan Hsieh wrote: > >Hi, > > > >The failure is not limited to clang. It will also occur if you use gcc. :) > > > >excerpt from ${WRKSRC}/test/intltest/uobjtest.cpp: > > > > NumberFormat *nf = NumberFormat::createInstance("de", errorCode); > > > >... > > > > if (&typeid(*nf) == NULL || typeid(*nf) == typeid(UObject) || typeid(*nf) == typeid(Format) || > > typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || > > typeid(*nf) == typeid(emptySet) > > ) { > > errln("typeid(NumberFormat) failed"); > > } > > > >The failure was raised by typeid(*nf) != typeid(DecimalFormat). > >However, according to [1], I think it should be ==, not !=. > >That means you could safely ignore this. :) > > > >[1] http://icu-project.org/apiref/icu4c/classNumberFormat.html > > > >Regards, > Hello. > Using the legacy system's gcc 4.2, the port devel/icu compiles and > installs without error. > Using clang, the port is not installed properly. > > Using a portmaster -f xorg, which triggers the build of all ports > neccessary for xorg ports > matched by the pattern "xorg" results in a stop of the build > process. I can not test further > the proper build of the X11 subsystem without excluding explicitely > devel/icu (amongst others). > > The error occured does not seem to be "obvious" to me, so reporting > this issue by a PR seems the proper > way. > > Can this be fixed so that clang compiles the port and portmaster > installes the port properly? > > Regards, > Oliver Please try the patch at http://people.freebsd.org/~sunpoet/icu.patch Thanks. Regards, -- Sunpoet Po-Chuan Hsieh 4096R/CC57E36B 8AD8 68F2 7D2B 0A10 7E9B 8CC0 DC44 247E CC57 E36B http://people.FreeBSD.org/~sunpoet/pgpkeys.txt