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

Most upvoted comments

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 tried to use LLVM 7 etc. but i got some build error with it. (it could be because of the package being in a beta repo)

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 😦

Thus said v69 src package from opensuse does not require clang8 nor clang7 i think the package from suse is using gcc to build

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_portable via linux_simple.

I realized the problem was here:

subprocess.CalledProcessError: Command '['out/Default/gn', 'gen', '/home/intika/chrome/69/ungoogled-chromium/build/src/out/gn_build', '--args= is_debug=false', '--root=/home/intika/chrome/69/ungoogled-chromium/build/src']' returned non-zero exit status 1

i.e. the args aren’t being read from out/gn_build/args.gn as 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.

having fun lol … i am learning chromium backward

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.