I'm building Chrome on Linux using GN with the following options:
is_component_build = false
use_goma = true
goma_dir = "/usr/local/ssd/cros/chromium/.cros_cache/common/goma+2/"
use_ozone = true
I'm getting the following error:
In file included from ../../chrome/browser/password_manager/native_backend_libsecret.cc:5:
In file included from ../../chrome/browser/password_manager/native_backend_libsecret.h:17:
In file included from ../../components/os_crypt/libsecret_util_linux.h:8:
../../third_party/libsecret/libsecret/secret.h:18:10: fatal error: 'glib.h' file not found
#include <glib.h>
See full command and error here: http://pastebin.com/atUJZkCt
I see that this error was fixed in http://crrev.com/1934193002, and the GN file (components/os_crypt/BUILD.gn) has been changed since then. The glib dependency is now behind a "if (use_glib)" conditional.
use_glib is set to false if use_ozone = true (see GN args), which is probably the cause of this error:
https://cs.chromium.org/chromium/src/build/common.gypi?q=%5Cbuse_glib%5Cb&sq=package:chromium&l=761&dr=C
But setting use_ozone = true shouldn't break the build.
Comment 1 by thestig@chromium.org
, Sep 9 2016Labels: -Pri-1 Pri-2