Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601654 - =www-client/chromium-55.0.2883.75 fails to build with clang 3.9.0
Summary: =www-client/chromium-55.0.2883.75 fails to build with clang 3.9.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 09:22 UTC by Markus Hauschild
Modified: 2016-12-28 17:23 UTC (History)
0 users

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


Attachments
build log (www-client:chromium-55.0.2883.75:20161205-072130.log.xz,266.31 KB, application/x-xz)
2016-12-05 09:22 UTC, Markus Hauschild
Details
emerge --info (ei.log,5.85 KB, text/x-log)
2016-12-05 09:23 UTC, Markus Hauschild
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Hauschild 2016-12-05 09:22:56 UTC
Created attachment 455138 [details]
build log

* ERROR: www-client/chromium-55.0.2883.75::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 115:  Called src_compile
 *   environment, line 5255:  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-55.0.2883.75::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-55.0.2883.75::gentoo'`.
 *
 * MemTotal:       16334392 kB
 * SwapTotal:       8388604 kB
 *
 * The complete build log is located at '/var/log/portage/www-client:chromium-55.0.2883.75:20161205-072130.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/www-client/chromium-55.0.2883.75/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-55.0.2883.75/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75'
 * S: '/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75'
Comment 1 Markus Hauschild 2016-12-05 09:23:24 UTC
Created attachment 455140 [details]
emerge --info
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-12-28 16:45:01 UTC
Confirmed. FWIW the error message from attached log is

FAILED: clang++ -MMD -MF obj/google_apis/google_apis/identity_provider.o.d -DV8_DEPRECATION_WARNINGS -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEP
PER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PDF=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DUSE_UDEV -DUI_
COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_CLIPBOARD_AURAX11=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=
1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DDISABLE_NACL -DENABLE_EXTENSIONS=1 -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENA
BLE_SESSION_SERVICE=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DUSE_PROPRIETARY_CODECS -DENABLE_HANGOUT_SERVICES_EXTENSION=1 -DFULL_SAF
E_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DCR_CLANG_REVISION=282487-1 -D_FILE_OFFSET_BITS=64 -D_
LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGOOGLE_API
_KEY=\"AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc\" -DGOOGLE_DEFAULT_CLIENT_ID=\"329227923882.apps.googleusercontent.com\" -DGOOGLE_DEFAULT_CLIENT_SECRET=\
"vgKG0NNv7GoDpbtoFNLxCUXu\" -DENABLE_WEBSOCKETS -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I../.. -Igen -I/usr/in
clude/glib-2.0 -I/usr/lib64/glib-2.0/include -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -Igen/shim_headers/zlib_shim -I../../third_pa
rty/boringssl/src/include -I/usr/include/libxml2 -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I/usr/include/nss -
I/usr/include/nspr -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -fcolor-diagnostics -fdebug-prefix-map=/
var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75=. -pthread -m64 -march=x86-64 -Wall -Wextra -Wno-missing-field-initializers 
-Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-mis
sing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -O2 -fno-ident -fdata-se
ctions -ffunction-sections -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wno-header-guard -fno-threadsafe-statics -fvisibility-inlines-h
idden -std=gnu++11 -fno-rtti -fno-exceptions -O2 -pipe -march=native -mtune=native -c ../../google_apis/gaia/identity_provider.cc -o obj/google_apis/google_apis/identity_provider.o
warning: unknown warning option '-Wno-address-of-packed-member' [-Wunknown-warning-option]
In file included from ../../google_apis/gaia/identity_provider.cc:5:
In file included from ../../base/profiler/scoped_tracker.h:13:
In file included from ../../base/bind.h:8:
In file included from ../../base/bind_internal.h:10:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/tuple:39:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/array:38:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/stdexcept:39:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/string:40:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/char_traits.h:380:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/cstdint:48:11: error: no member named 'int8_t' in the global namespace; did you mean 'wint_t'?
  using ::int8_t;
        ~~^
/usr/bin/../lib/clang/3.9.0/include/stddef.h:132:23: note: 'wint_t' declared here
typedef __WINT_TYPE__ wint_t;
                      ^
In file included from ../../google_apis/gaia/identity_provider.cc:5:
In file included from ../../base/profiler/scoped_tracker.h:13:
In file included from ../../base/bind.h:8:
In file included from ../../base/bind_internal.h:10:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/tuple:39:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/array:38:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/stdexcept:39:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/string:40:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/char_traits.h:380:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/cstdint:49:11: error: no member named 'int16_t' in the global namespace
  using ::int16_t;
        ~~^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/cstdint:50:11: error: no member named 'int32_t' in the global namespace
  using ::int32_t;
        ~~^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/cstdint:51:11: error: no member named 'int64_t' in the global namespace
  using ::int64_t;
        ~~^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/cstdint:53:11: error: no member named 'int_fast8_t' in the global namespace
  using ::int_fast8_t;
        ~~^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/cstdint:54:9: error: no member named 'int_fast16_t' in the global namespace; did you mean '::std::uint_least16_t'?
  using ::int_fast16_t;
        ^~
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/type_traits:44:33: note: '::std::uint_least16_t' declared here
  typedef __UINT_LEAST16_TYPE__ uint_least16_t;
                                ^
And with current amd64 stable clang-3.7.1-r100 I'm getting this:

x86_64-pc-linux-gnu-clang-3.7: error: unknown argument: '-fdebug-prefix-map=/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75=.'

The build seems to work with clang-3.9.1-r100 .
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-12-28 17:23:19 UTC
Added clang version check in https://gitweb.gentoo.org/repo/gentoo.git/commit/www-client/chromium?id=5999edeb33594fd2c850ad8c93f46e697b8657b6 . Thanks for reporting!