Issue metadata
Sign in to add a comment
|
chromeos-chrome build fails with unrecognized -nostdlib++ flags |
||||||||||||||||||||||||
Issue descriptionThe chromeos-chrome package just failed to build amd64-generic on my local machine the failure message: chromeos-chrome-62.0.3176.0_rc-r1: [27/26273] LINK host/minidump_stackwalk chromeos-chrome-62.0.3176.0_rc-r1: FAILED: host/minidump_stackwalk chromeos-chrome-62.0.3176.0_rc-r1: python "../../../../../../../home/dshwang/chrome_root/src/build/toolchain/gcc_link_wrapper.py" --output="host/minidump_stackwalk" -- x86_64-pc-linux-gnu-g++ -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B../../../../../../../home/dshwang/chrome_root/src/third_party/binutils/Linux_x64/Release/bin -m64 -Wl,-O1 -Wl,--gc-sections -Wl,--gdb-index -nostdlib++ -Wl,-rpath-link=host -Wl,--disable-new-dtags -o "host/minidump_stackwalk" -Wl,--start-group @"host/minidump_stackwalk.rsp" -Wl,--end-group -ldl -lpthread -lrt chromeos-chrome-62.0.3176.0_rc-r1: x86_64-pc-linux-gnu-g++.real: error: unrecognized command line option '-nostdlib++' chromeos-chrome-62.0.3176.0_rc-r1:
,
Aug 14 2017
Are you trying to build a new version of chrome? This error was seen only in not-yet uprev chrome versions. Meanwhile, you can make a local change as this CL to fix this (https://chromium-review.googlesource.com/c/610520/2/chromeos-base/chromeos-chrome/chromeos-chrome-9999.ebuild )
,
Aug 14 2017
,
Aug 14 2017
Yes, it looks like duplicated to issue 754025 BTW, the following chromium change resolves this issue, while it looks not right solution. > git diff diff --git a/build/config/posix/BUILD.gn b/build/config/posix/BUILD.gn index 6609290..aa33645 100644 --- a/build/config/posix/BUILD.gn +++ b/build/config/posix/BUILD.gn @@ -44,7 +44,6 @@ config("runtime_library") { cflags += [ "-fno-builtin-abs" ] } cflags_cc += [ - "-nostdinc++", "-isystem" + rebase_path("$libcxx_prefix/include", root_build_dir), "-isystem" + rebase_path("$libcxxabi_prefix/include", root_build_dir), ] @@ -56,9 +55,6 @@ config("runtime_library") { cflags_cc += [ "-isystem" + rebase_path("$libunwind_prefix/include", root_build_dir) ] } - - # Make sure we don't link against libc++ or libstdc++. - ldflags += [ "-nostdlib++" ] } if (!is_mac && !is_ios && sysroot != "") {
,
Aug 14 2017
You can workaround this by using the change in #4. As Manoj said, you can cherry pick the change https://chromium-review.googlesource.com/c/610520 To your current active chromeos-chrome ebuild file. It is chromeos-chrome-62.0.3176.0_rc-r1.ebuild in this case.
,
Aug 14 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by yunlian@chromium.org
, Aug 14 2017