Opened 11 years ago

Last modified 9 years ago

#6529 new Bugs

Build process ignores --with-icu path on some icu tests?

Reported by: hashashin@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: locale
Version: Boost 1.49.0 Severity: Problem
Keywords: build, icu Cc: hashashin@…

Description

When bootstrap.sh --with-icu=/usr/local/Cellar/icu4c/1.8.1.1, I get in the logs:

1) when testing 'has_icu'

darwin.compile.c++ bin.v2/libs/regex/build/darwin-4.2.1/debug/has_icu_test.o

"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic -g -dynamic -no-cpp-precomp -gdwarf-2 -fexceptions -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_HAS_ICU=1 -I"." -I"/usr/local/Cellar/icu4c/1.8.1.1/include" -c -o "bin.v2/libs/regex/build/darwin-4.2.1/debug/has_icu_test.o" "libs/regex/build/has_icu_test.cpp"

Note the -I flag with my icu path.

2) Later, in the same config.log, I see:

darwin.compile.c++ bin.v2/libs/locale/build/darwin-4.2.1/debug/has_icu_obj.o

"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -dynamic -no-cpp-precomp -gdwarf-2 -fexceptions -fPIC -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2/libs/locale/build/darwin-4.2.1/debug/has_icu_obj.o" "libs/locale/src/../build/has_icu_test.cpp"

libs/locale/src/../build/has_icu_test.cpp:12:30: error: unicode/uversion.h: No such file or directory

Note that in this g++ line there is no -I flag with my icu path.

Attachments (1)

config.log (7.4 KB ) - added by hashashin@… 11 years ago.
Build log (well, the beginning of it)

Download all attachments as: .zip

Change History (6)

by hashashin@…, 11 years ago

Attachment: config.log added

Build log (well, the beginning of it)

comment:1 by Alberto Simões <hashashin@…>, 11 years ago

Cc: hashashin@… added
Component: buildBuilding Boost

comment:2 by Alberto Simões <hashashin@…>, 11 years ago

As far as I could dig, the two failing tests are regarding locale library.

comment:3 by alvin777@…, 10 years ago

The issue is due to ICU (as of 49.1.1) moved includes from source/include folder down to source/i18n and source/common folders. Boost.Locale include directives should be updated I guess.

The workaround is to add include folders to the bjam command line explicitely: bjam include={$ICU_PATH}/source/i18n include={$ICU_PATH}/source/common

comment:4 by viboes, 10 years ago

Component: Building Boostlocale

comment:5 by viboes, 9 years ago

Severity: ShowstopperProblem

Moved to Problem as there is a workaround.

Note: See TracTickets for help on using tickets.