Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621032 - www-client/chromium-59.0.3071.86 FAILED: clang_x64/obj/third_party/brotli/libcommon.a
Summary: www-client/chromium-59.0.3071.86 FAILED: clang_x64/obj/third_party/brotli/lib...
Status: RESOLVED TEST-REQUEST
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: 2017-06-06 14:32 UTC by wbrana
Modified: 2017-06-28 19:01 UTC (History)
1 user (show)

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


Attachments
build.log.bz2 (www-client:chromium-61.0.3141.7:20170628-151758.log.bz2,788.88 KB, application/x-bzip2)
2017-06-28 17:46 UTC, Paweł Hajdan, Jr. (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wbrana 2017-06-06 14:32:40 UTC
build failure with sys-devel/clang-4.0.0-r2

[10585/26350] python "../../build/toolchain/gcc_ar_wrapper.py"  --output=clang_x64/obj/third_party/brotli/libcommon.a --ar="../../../../../../../../usr/bin/llvm-ar"  rcsD @"clang_x64/obj/third_party/brotli/libcommon.a.rsp"
FAILED: clang_x64/obj/third_party/brotli/libcommon.a
python "../../build/toolchain/gcc_ar_wrapper.py"  --output=clang_x64/obj/third_party/brotli/libcommon.a --ar="../../../../../../../../usr/bin/llvm-ar"  rcsD @"clang_x64/obj/third_party/brotli/libcommon.a.rsp"
Traceback (most recent call last):
  File "../../build/toolchain/gcc_ar_wrapper.py", line 66, in <module>
    sys.exit(main())
  File "../../build/toolchain/gcc_ar_wrapper.py", line 62, in main
    return subprocess.call(wrapper_utils.CommandToRun(command))
  File "/usr/lib64/python2.7/subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

[ebuild     U ] www-client/chromium-59.0.3071.86 [58.0.3029.110] USE="(pic) proprietary-codecs suid system-ffmpeg tcmalloc -component-build -cups -custom-cflags -gconf -gnome-keyring -gtk3 -hangouts -kerberos (-neon) -pulseaudio (-selinux) (-system-libvpx) {-test} -widevine" L10N="-am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW" 

/etc/portage/env/www-client/chromium                                                                                                                                                                                                                                                               
CC=clang
CXX=clang++
BUILD_CC=clang
BUILD_CXX=clang++

CFLAGS="-pipe -march=native -mtune=native -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O2 -Wl,--hash-style=gnu  -Wl,--as-needed"
Comment 1 wbrana 2017-06-06 18:49:44 UTC
there isn't such error with gcc 5.4.0
Comment 2 wbrana 2017-06-06 19:15:28 UTC
llvm-ar is called with hard-coded path
build is continuing after creating symlink /usr/bin/llvm-ar
there was similar problem with /usr/bin/clang /usr/bin/clang++
Comment 3 wbrana 2017-06-20 19:50:31 UTC
another error with www-client/chromium-60.0.3112.32

[10526/27540] python "../../build/toolchain/gcc_ar_wrapper.py"  --output=clang_x64/obj/base/libbase_static.a --ar="../../../../../../../../usr/lib64/ccache/bin/llvm-ar"  rcsD @"clang_x64/obj/base/libbase_static.a.rsp"
FAILED: clang_x64/obj/base/libbase_static.a 
python "../../build/toolchain/gcc_ar_wrapper.py"  --output=clang_x64/obj/base/libbase_static.a --ar="../../../../../../../../usr/lib64/ccache/bin/llvm-ar"  rcsD @"clang_x64/obj/base/libbase_static.a.rsp"
Traceback (most recent call last):
  File "../../build/toolchain/gcc_ar_wrapper.py", line 78, in <module>
    sys.exit(main())
  File "../../build/toolchain/gcc_ar_wrapper.py", line 74, in main
    return subprocess.call(wrapper_utils.CommandToRun(command))
  File "/usr/lib64/python2.7/subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
ninja: build stopped: subcommand failed.
 * ERROR: www-client/chromium-60.0.3112.32::gentoo failed (compile phase):
Comment 4 Mike Gilbert gentoo-dev 2017-06-20 21:45:11 UTC
This should be resolved in the masked dev channel releases.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dd4eba091de610ed6621df0b20daedc7c5c44c2

commit 2dd4eba091de610ed6621df0b20daedc7c5c44c2
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Jun 19 00:57:51 2017 -0400

    www-client/chromium: wire-up cross-compile support

    Cross-compiling still does not work, but this gets us closer.

    - Build GN with the host (CBUILD) compiler, skip rebuild after bootstrap.
    - Add a toolchain definition for the host (CBUILD) compiler.
    - Set the host_toolchain option.
    - Set the target_cpu option based on the target arch (CHOST).

    The host_toolchain option is also set for native builds. This makes
    clang work without setting clang_base_path.

    Package-Manager: Portage-2.3.6_p7, Repoman-2.3.2_p75

 www-client/chromium/chromium-61.0.3128.3.ebuild | 47 +++++++++++++++++--------
 www-client/chromium/files/toolchain/BUILD.gn    | 18 ++++++++++
 2 files changed, 50 insertions(+), 15 deletions(-)
Comment 5 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-06-28 17:46:35 UTC
Created attachment 478304 [details]
build.log.bz2

By the way, I'm not sure where ar="../../../../../../../../usr/bin/llvm-ar" comes from in your build.

I tried with www-client/chromium-61.0.3141.7 (with Mike's change), and it worked.

$ CC=clang CXX=clang++ emerge -1av chromium
...
[27370/27372] python "../../build/toolchain/gcc_ar_wrapper.py"  --output=obj/chrome/renderer/librenderer.a --ar="x86
_64-pc-linux-gnu-ar"  rcsD @"obj/chrome/renderer/librenderer.a.rsp"

Full log attached.
Comment 6 wbrana 2017-06-28 19:01:00 UTC
I will try later. Temperature in my room is between 27C and 29C.