From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 9 18:07:31 2005 Return-Path: X-Original-To: freebsd-ports-bugs@freebsd.org Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0569E16A41F for ; Fri, 9 Sep 2005 18:07:31 +0000 (GMT) (envelope-from huver@amgraf.com) Received: from amgraf.com (ns1.amgraf.com [216.62.94.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id A87E543D48 for ; Fri, 9 Sep 2005 18:07:30 +0000 (GMT) (envelope-from huver@amgraf.com) Received: by amgraf.com id NAA01825 for freebsd-ports-bugs@freebsd.org; Fri, 9 Sep 2005 13:07:55 -0500 (CDT) Date: Fri, 9 Sep 2005 13:07:55 -0500 (CDT) From: huver@amgraf.com (Huver) Message-Id: <200509091807.NAA01825@amgraf.com> To: freebsd-ports-bugs@freebsd.org Subject: Building IBM ICU on FreeBSD, a solution X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: huver@amgraf.com List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 18:07:31 -0000 Saw a couple of entries about building ICU failure on FreeBSD 5. Specifically: FreeBSD 5.4-RELEASE-p6, GCC 3.4.2, building icu-3.4. ICU builds okay, but self-test dies with cintltst-custrtrn: page already free -- this may have been a problem since earlier version of icu. Solution: don't generate code with gcc -O3 flag. Steps: untar the icu-3.4 tar ball; cd icu/source; vi runConfigureICU, do one of the following: alternative-1) after line 260 (in the *BSD chunk), add a new line: RELEASE_CFLAGS='-O2' alternative-2) line 345, "RELEASE_CFLAGS=-O3", change 3 to 2. then just do the standard thing: "./runConfigureICU FreeBSD", gmake, gmake check, ... Don't know if this is specific to gcc 3.4.2, others may have more info about gcc versions (and may bark on alternative-2 above); so the "real solution" for the port may be to dup "*BSD" section to a "FreeBSD" section in runConfigureICU, and include the "RELEASE_CFLAGS=-O2" line there. It would likely work too for FreeBSD 4.11. Personally, I never go above -O2 with gcc... dangerous. :-) -huver huver@amgraf.com