https://bugs.documentfoundation.org/show_bug.cgi?id=97741

            Bug ID: 97741
           Summary: Build failure in languagetagicu.cxx: fatal error:
                    unicode/locid.h: No such file or directory
           Product: LibreOffice
           Version: 5.1.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

I have icu installed into /opt. Configure correctly finds everything, but the
build fails:

make[1]: Entering directory `/tera/tmp/libreoffice-5.1.0.3'
S=/tera/tmp/libreoffice-5.1.0.3 && I=$S/instdir && W=$S/workdir &&  mkdir -p
$W/CxxObject/i18nlangtag/source/languagetag/
$W/Dep/CxxObject/i18nlangtag/source/languagetag/ && cd
/tera/tmp/libreoffice-5.1.0.3 &&   /opt/gcc52/bin/g++
-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3
-DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64
-D_PTHREADS -D_REENTRANT   -DI18NLANGTAG_DLLIMPLEMENTATION  -DSYSTEM_LIBXML  
-DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wno-missing-braces
-Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros
-fmessage-length=0 -fno-common -pipe  -fvisibility-inlines-hidden
-fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14  
-DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O3 -march=nocona -mtune=k8
-pipe -fomit-frame-pointer  -DLIBO_INTERNAL_ONLY  -c
$S/i18nlangtag/source/languagetag/languagetagicu.cxx -o
$W/CxxObject/i18nlangtag/source/languagetag/languagetagicu.o -MMD -MT
$W/CxxObject/i18nlangtag/source/languagetag/languagetagicu.o -MP -MF
$W/Dep/CxxObject/i18nlangtag/source/languagetag/languagetagicu.d_
-I$S/i18nlangtag/source/languagetag/ -I$W/UnpackedTarball/langtag
-I$W/UnpackedTarball/boost  -I$S/include   -I$S/config_host 
-I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal  
 -isystem /usr/include/libxml2     && mv
$W/Dep/CxxObject/i18nlangtag/source/languagetag/languagetagicu.d_
$W/Dep/CxxObject/i18nlangtag/source/languagetag/languagetagicu.d
In file included from
/tera/tmp/libreoffice-5.1.0.3/i18nlangtag/source/languagetag/languagetagicu.cxx:10:0:
/tera/tmp/libreoffice-5.1.0.3/include/i18nlangtag/languagetagicu.hxx:16:27:
fatal error: unicode/locid.h: No such file or directory
compilation terminated.


This is because icu-config --cppflags is not called anywhere and added into
CPPFLAGS or CXXFLAGS. Libreoffice's build system is a bit weird, so I haven't
been able to find where it should be added yet.

$ icu-config --cxxflags

$ icu-config --cppflags
-I/opt/icu/include

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to