Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565062 - www-client/chromium fails to build - FontPlatformData.cpp:277:67: error: ‘hb_ot_layout_table_get_lookup_count’ was not declared in this scope
Summary: www-client/chromium fails to build - FontPlatformData.cpp:277:67: error: ‘hb_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-07 09:24 UTC by Trog
Modified: 2016-01-13 22:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log + emerge --info + emerge -pqv (chromium-bug.7z,201.44 KB, application/octet-stream)
2015-11-07 09:24 UTC, Trog
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Trog 2015-11-07 09:24:56 UTC
Created attachment 416218 [details]
build.log + emerge --info + emerge -pqv

Any version of chromium starting at 46 doesn't compile and gives this error. I'm attaching full build.log 7zipped as it's 14M, but here is the excerpt:

./../third_party/WebKit/Source/platform/fonts/SegmentedFontData.cpp -o obj/third_party/WebKit/Source/platform/fonts/blink_platform.SegmentedFontData.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
[7146/18208] x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/WebKit/Source/platform/fonts/blink_platform.SimpleFontData.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_HANGOUT_SERVICES_EXTENSION=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DBLINK_PLATFORM_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU -DENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_INPUT_MULTIPLE_FIELDS_UI=1 -DENABLE_WEB_AUDIO=1 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DSK_SUPPORT_GPU=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DU_USING_ICU_NAMESPACE=0 -DENABLE_WEBP -DUSE_SYSTEM_LIBJPEG -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -Igen/shim_headers/harfbuzz-ng/target -Igen/shim_headers/libpng/target -Igen/shim_headers/libevent/target -Igen/shim_headers/zlib/target -Igen/shim_headers/icuuc/target -Igen/shim_headers/icui18n/target -Igen -I../../third_party/angle/include -Igen/blink -I../../third_party/ffmpeg -I../.. -I../../skia/config -I../../third_party/WebKit/Source -I../../third_party/khronos -I../../gpu -I../../third_party/WebKit -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/ots/include -I../../third_party/qcms/src -I../../v8/include -I../../third_party/iccjpeg -I../../third_party/ffmpeg/chromium/config/Chrome/linux/x64 -I../../third_party/ffmpeg -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -I/usr/include/libpng15 -I/usr/include/harfbuzz -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -march=core2 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -Wno-c++0x-compat -std=gnu++11 -Wno-narrowing -Wno-literal-suffix  -c ../../third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp -o obj/third_party/WebKit/Source/platform/fonts/blink_platform.SimpleFontData.o
FAILED: x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/WebKit/Source/platform/fonts/blink_platform.FontPlatformData.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_HANGOUT_SERVICES_EXTENSION=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DBLINK_PLATFORM_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU -DENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_INPUT_MULTIPLE_FIELDS_UI=1 -DENABLE_WEB_AUDIO=1 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DSK_SUPPORT_GPU=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DU_USING_ICU_NAMESPACE=0 -DENABLE_WEBP -DUSE_SYSTEM_LIBJPEG -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -Igen/shim_headers/harfbuzz-ng/target -Igen/shim_headers/libpng/target -Igen/shim_headers/libevent/target -Igen/shim_headers/zlib/target -Igen/shim_headers/icuuc/target -Igen/shim_headers/icui18n/target -Igen -I../../third_party/angle/include -Igen/blink -I../../third_party/ffmpeg -I../.. -I../../skia/config -I../../third_party/WebKit/Source -I../../third_party/khronos -I../../gpu -I../../third_party/WebKit -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/ots/include -I../../third_party/qcms/src -I../../v8/include -I../../third_party/iccjpeg -I../../third_party/ffmpeg/chromium/config/Chrome/linux/x64 -I../../third_party/ffmpeg -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -I/usr/include/libpng15 -I/usr/include/harfbuzz -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -march=core2 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -Wno-c++0x-compat -std=gnu++11 -Wno-narrowing -Wno-literal-suffix  -c ../../third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp -o obj/third_party/WebKit/Source/platform/fonts/blink_platform.FontPlatformData.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
../../third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp: In function ‘bool blink::tableHasSpace(hb_face_t*, hb_set_t*, hb_tag_t, hb_codepoint_t)’:
../../third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp:277:67: error: ‘hb_ot_layout_table_get_lookup_count’ was not declared in this scope
     unsigned count = hb_ot_layout_table_get_lookup_count(face, tag);
                                                                   ^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
ninja: build stopped: subcommand failed.
 * ERROR: www-client/chromium-48.0.2552.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 5079:  Called die
 * The specific snippet of code:
 *       eninja -C out/Release ${ninja_targets} || die;
 * 
 * If you need support, post the output of `emerge --info '=www-client/chromium-48.0.2552.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-48.0.2552.0::gentoo'`.
 * 
 * MemTotal:       16378420 kB
 * SwapTotal:       1048572 kB
 * 
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-48.0.2552.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-48.0.2552.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-48.0.2552.0/work/chromium-48.0.2552.0'
 * S: '/var/tmp/portage/www-client/chromium-48.0.2552.0/work/chromium-48.0.2552.0'


I've tried on all these versions:
chromium-46.0.2490.71.ebuild
chromium-47.0.2526.16.ebuild
chromium-47.0.2526.6.ebuild
chromium-48.0.2547.0.ebuild
chromium-48.0.2552.0.ebuild

and each time the error is identical. Looks like sth. wrong within the embedded webkit.
Comment 1 Trog 2016-01-08 21:55:48 UTC
In the ebuild there is this RDEP:
media-libs/harfbuzz:=[icu(+)]

This is not correct as the minimum required version of harfbuzz is: 0.9.41.
I had 0.9.12 and this caused the error as this function:
hb_ot_layout_table_get_lookup_count
is undefined prior to that version.

Now, the RDEP without version passed the check and the compilation failed later.
Comment 2 Trog 2016-01-09 05:50:32 UTC
Yes, that was the issue. I've reinstalled harfbuzz to 0.9.41 and verified on:
www-client/chromium-49.0.2612.0::gentoo
All has compiled.
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-01-12 06:12:30 UTC
Re-opening until dependency is updated in the ebuilds.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-01-13 22:01:07 UTC
Fixed now, thanks for the report!