| Summary: | www-client/chromium-59.0.3071.86 FAILED: clang_x64/obj/third_party/brotli/libcommon.a | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | wbrana |
| Component: | Current packages | Assignee: | Chromium Project <chromium> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | build.log.bz2 | ||
there isn't such error with gcc 5.4.0 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++ 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):
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(-) 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.
I will try later. Temperature in my room is between 27C and 29C. |
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"