qtwebengine is using gcc of the host
Description
Environment
Activity
Jan-Simon Moeller July 2, 2018 at 7:15 PM
Installing / using gcc6 is the option for now.
--> Upstream bug.
Dominig ar Foll February 6, 2018 at 2:42 PM
I did not fix the issue but used a work around that I did publish in the mailing list.
Here is a copy of the mail.
-------- Forwarded Message --------
Subject: | Master broken : gcc6 required on compiling host: meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile) failed with exit code '1' |
---|---|
Date: | Fri, 15 Dec 2017 03:09:04 +0100 |
From: | Dominig Ar Foll <dominig.arfoll@fridu.net> |
To: | Stéphane Desneux (Iot.bzh) <stephane.desneux@iot.bzh> |
CC: | automotive-discussions@lists.linuxfoundation.org |
Stéphane
either we are compiling native tools with unrequired switches and then it's a bug, either we have a "silent" direct requirement for a given compiler release and then it's a bug as well. In the mean time, I went around the issue by forcing the use of gcc6 by default on my pc. After installing gcc6 and g++-6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
sudo update-alternatives --set gcc /usr/bin/gcc-6 # g++
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 20
sudo update-alternatives --set g++ /usr/bin/g++-6
Walt Miner February 6, 2018 at 2:38 PM
@Dominig ar Foll to add some notes for his workaround. Assigned to @Jan-Simon Moeller
Stephane Desneux January 30, 2018 at 10:35 AM
Reassigning to @Walt Miner for triage during devmeeting
When the host is Ubuntu 14.04, qtwebengine build will fail. This problem is because the build of qtwebengine does not use native-gcc, but uses host-gcc.
*The gcc version of Ubuntu 14.04 is 4.8.x.
FAILED: protoc
g++ -Wl,-O1 Wl,-hash-style=gnu Wl,-as-needed -fstack-protector-strong -Wl,-z,relro,-z,now -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -pthread -Wl,-z,noexecstack -fPIC Wl,-disable-new-dtags -Wl,-O1 Wl,-as-needed Wl,-gc-sections Wl,-no-as-needed -lpthread Wl,-as-needed -o protoc Wl,-start-group obj.host/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/compiler/protoc.main.o obj.host/src/3rdparty/chromium/third_party/protobuf/libprotoc_lib.a obj.host/src/3rdparty/chromium/third_party/protobuf/libprotobuf_full_do_not_use.a Wl,-end-group
g++: error: unrecognized command line option ‘-fstack-protector-strong’