Bug 170051

Summary: devel/icu fails on test stage when built with clang 3.1
Product: Ports & Packages Reporter: reko.turja
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description reko.turja 2012-07-21 11:10:10 UTC
When building ICU with clang from the RELENG_9, build fails in the test stage. Port compiles with system GCC without problems. Port failed to compile after removing CPUTYPE line from make.conf and after changing optimization level to -O as well.

Icu port version: icu-4.8.1.1_1.

Snippet from build log:

cd /usr/ports/devel/icu/work/icu/source/test/cintltst && /usr/bin/env  LD_LIBRARY_PATH=/usr/ports/devel/icu/work/icu/source/lib:/usr/ports/devel/icu/work/icu/source/tools/ctestfw  ./cintltst
Default locale for this run is en_US_POSIX
 (./cintltst)  {
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-21 11:10:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->office

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 reko.turja 2012-07-21 11:30:53 UTC
The actual error seems to be missing so reposting:

cd /usr/ports/devel/icu/work/icu/source/test/cintltst && /usr/bin/env 
LD_LIBRARY_PATH=/usr/ports/devel/icu/work/icu/source/lib:/usr/ports/devel/icu/work/icu/source/tools/ctestfw 
./cintltst
Default locale for this run is en_US_POSIX

...

}
   cnumtst  {
    TestNumberFormat                         ---[OK]  (10ms)
    TestSpelloutNumberParse                  ---[OK]  (16ms)
    TestSignificantDigits                    ---[OK]
    TestSigDigRounding                       ---[OK]
    TestNumberFormatPadding                  ---[OK]
    TestInt64Format   {
!!    parseDouble returned incorrect value, got: 9.22337e+18
    } ---[1 ERRORS in /tsformat/cnumtst/TestInt64Format]
    TestNonExistentCurrency                  ---[OK]

...

SUMMARY:
******* [Total error count:     1]
Errors in
[/tsformat/cnumtst/TestInt64Format]
Elapsed Time: 00:00:45.953
*** [cintltst] Error code 1

Stop in /usr/ports/devel/icu.
*** [build] Error code 1
Comment 3 Tijl Coosemans freebsd_committer freebsd_triage 2013-10-18 09:52:54 UTC
State Changed
From-To: open->closed

The problem seems to have been fixed with newer versions of 
the port and/or clang.