Building IBM ICU on FreeBSD, a solution
Huver
huver at amgraf.com
Fri Sep 9 18:07:31 UTC 2005
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 at amgraf.com
More information about the freebsd-ports-bugs
mailing list