ungoogled-chromium: Various problems building linux_portable with linux_simple
ungoogled-chromium version: Current 69.0.3497.81
Configuration and/or platform(s): linux_simple portable
Configuration and/or platform(s): Google-cloud-computing VM Opensuse v42.3
Problem description
On ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn i have this error can you please give some advice on how can i solve this
[171/171] LINK gn
ERROR at //build/config/sysroot.gni:57:5: Assertion failed.
assert(
^-----
Missing sysroot (//build/linux/debian_sid_amd64-sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
See //build/config/sysroot.gni:58:9:
exec_script("//build/dir_exists.py",
^-----------------------------------
Detailed Error
osuse-leap-42-3-2018:/home/intika/chromlast/ungoogled-chromium/build/src # ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn
ninja: Entering directory `/home/intika/chromlast/ungoogled-chromium/build/src/out/Release/gn_build'
[171/171] LINK gn
ERROR at //build/config/sysroot.gni:57:5: Assertion failed.
assert(
^-----
Missing sysroot (//build/linux/debian_sid_amd64-sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
See //build/config/sysroot.gni:58:9:
exec_script("//build/dir_exists.py",
^-----------------------------------
This is where it was set.
See //chrome/installer/BUILD.gn:7:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //BUILD.gn:67:5: which caused the file to be included.
"//chrome/installer",
^-------------------
Traceback (most recent call last):
File "./tools/gn/bootstrap/bootstrap.py", line 101, in <module>
sys.exit(main(sys.argv[1:]))
File "./tools/gn/bootstrap/bootstrap.py", line 96, in main
'--args=%s' % gn_gen_args, "--root=" + SRC_ROOT
File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['out/Default/gn', 'gen', '/home/intika/chromlast/ungoogled-chromium/build/src/out/Release', '--args= is_debug=false', '--root=/home/intika/chromlast/ungoogled-chromium/build/src']' returned non-zero exit status 1
osuse-leap-42-3-2018:/home/intika/chromlast/ungoogled-chromium/build/src # ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn
ninja: Entering directory `/home/intika/chromlast/ungoogled-chromium/build/src/out/Release/gn_build'
ninja: no work to do.
ERROR at //build/config/sysroot.gni:57:5: Assertion failed.
assert(
^-----
Missing sysroot (//build/linux/debian_sid_amd64-sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
See //build/config/sysroot.gni:58:9:
exec_script("//build/dir_exists.py",
^-----------------------------------
This is where it was set.
See //chrome/installer/BUILD.gn:7:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //BUILD.gn:67:5: which caused the file to be included.
"//chrome/installer",
^-------------------
Traceback (most recent call last):
File "./tools/gn/bootstrap/bootstrap.py", line 101, in <module>
sys.exit(main(sys.argv[1:]))
File "./tools/gn/bootstrap/bootstrap.py", line 96, in main
'--args=%s' % gn_gen_args, "--root=" + SRC_ROOT
File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['out/Default/gn', 'gen', '/home/intika/chromlast/ungoogled-chromium/build/src/out/Release', '--args= is_debug=false', '--root=/
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- docs/building: Update LLVM for version 69 LLVM 6.0 is now too old to build linux_portable for version 69. See #494 — committed to ungoogled-software/ungoogled-chromium by Eloston 6 years ago
I didn’t know that kind of metadata was available. Thanks for showing me 👍
@intika I just pushed a new tag for
69.0.3497.100-1. You may submit a PR to ungoogled-chromium-binaries for that tag.I see… then I suppose the features Google is using are present only in LLVM 8. That’s unfortunate, considering LLVM 7 was just released 😦
Right, there are a different set of fixes needed to work with GCC. Also, the configuration is different too (e.g. not using newer optimizations like CFI, LTO, etc.). I’m not sure why you’re bringing this up since you’re using
linux_portablevialinux_simple.I realized the problem was here:
i.e. the args aren’t being read from
out/gn_build/args.gnas I thought they would due to the forced usage of--args. It should be fixed now.Thanks for the detailed steps and output. I’m not sure why this is happening; I’ll need to investigate.
If you need more help, have a look through the linux_simple build scripts and also the documentation under
docs/. You should also have a look through the official Chromium building instructions.