New issue
Advanced search Search tips

Issue 837552 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Feature



Sign in to add a comment

It's not possible to build chrome using only sysroot

Project Member Reported by ckulakow...@opera.com, Apr 27 2018

Issue description

Chrome Version: 	67.0.3396.18
OS: : Linux

I try to set up minimal version of Debian which will be used to compile chrome. I believe sysroot fetched by gclient contains all necessary headers and libraries required to compile chrome. Unfortunately binaries launched via gn_run_binary.py fail to start when necessary libraries are not present in host os:

FAILED: v8_context_snapshot.bin
python ../../build/gn_run_binary.py ./v8_context_snapshot_generator
--output_file=v8_context_snapshot.bin
././v8_context_snapshot_generator: error while loading shared
libraries: libasound.so.2: cannot open shared object file: No such
file or directory
./v8_context_snapshot_generator failed with exit code 127

libasound is part of sysroot and I am able to make full build when I set LD_LIBRARY_PATH to point to sysroot. I believe LD_LIBRARY_PATH should be properly set for binaries launched via gn_run_binary.py when we make build with sysroot.
 
Cc: thestig@chromium.org thomasanderson@chromium.org mmoss@chromium.org
Does the build run to completion with use_v8_context_snapshot=false in args.gn?
Yes, it does. With use_v8_context_snapshot=false chrome builds and links.
Components: Build
Labels: -Type-Bug OS-Linux Type-Feature
Status: WontFix (was: Untriaged)
Closing because with that flag it's possible to build chrome from a minimal environment.

Also you're expected to run install-build-deps.sh to, well, install dependencies required for the build :)

Sign in to add a comment