Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2005 13:07:55 -0500 (CDT)
From:      huver@amgraf.com (Huver)
To:        freebsd-ports-bugs@freebsd.org
Subject:   Building IBM ICU on FreeBSD, a solution
Message-ID:  <200509091807.NAA01825@amgraf.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509091807.NAA01825>