`ungoogled-chromium` infinite build loop

ungoogled-chromium is building since over two hours.
Was working properly before, so it is most likely an update.
I am running channel 20.09.

WARNING: Skipping non-existant path: /build/chromium-90.0.4430.212/third_party/snappy/linux/snappy-stubs-public.h
WARNING: Skipping non-existant path: /build/chromium-90.0.4430.212/third_party/snappy/mac/snappy-stubs-public.h
WARNING: Skipping non-existant path: /build/chromium-90.0.4430.212/third_party/snappy/src/snappy-test.h
WARNING: Skipping non-existant path: /build/chromium-90.0.4430.212/third_party/snappy/win32/snappy-stubs-public.h
WARNING: Skipping non-existant path: /build/chromium-90.0.4430.212/third_party/zlib/deflate.c
INFO: Path has no substitutions: tools/md_browser/base.css
configuring
Done. Made 16134 targets from 2569 files in 8750ms
building
ninja: Entering directory `out/Release'
[1746/1746] LINK ./mksnapshot.stampstampbject-gen.otamp.stamporm_v8.o[K)fault)
ninja: Entering directory `out/Release'
[3/3] LINK ./chrome_sandboxome_sandbox/sandbox.o_linux.o
ninja: Entering directory `out/Release'
[300/46309] CC obj/third_party/libaom/libaom/grain_table.omodulize(//build/toolchain/linux/unbundle:default)ault)ult)Kdefault))t)
../../third_party/libaom/source/libaom/aom_dsp/grain_table.c:108:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
    fscanf(file, "\n\tcY");
    ^~~~~~ ~~~~~~~~~~~~~~
../../third_party/libaom/source/libaom/aom_dsp/grain_table.c:117:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
    fscanf(file, "\n\tcCb");
    ^~~~~~ ~~~~~~~~~~~~~~~
../../third_party/libaom/source/libaom/aom_dsp/grain_table.c:125:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
    fscanf(file, "\n\tcCr");
    ^~~~~~ ~~~~~~~~~~~~~~~
../../third_party/libaom/source/libaom/aom_dsp/grain_table.c:133:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
    fscanf(file, "\n");
    ^~~~~~ ~~~~~~~~~~
4 warnings generated.
[10051/46303] CXX obj/third_party/angle/libANGLE_base/BlobCache.on.o.o[K[KK[Kl.o[K[Kty_flag.oal.oayering.o[Kotocol.o.olt)[Kdefault)[KKory_inspector-meta.jsss
../../third_party/angle/src/libANGLE/BlobCache.cpp:17:9: warning: 'USE_SYSTEM_ZLIB' macro redefined [-Wmacro-redefined]
#define USE_SYSTEM_ZLIB
        ^
<command line>:49:9: note: previous definition is here
#define USE_SYSTEM_ZLIB 1
        ^
1 warning generated.
[10177/46303] CXX obj/third_party/angle/src/libANGLE/renderer/vulkan/angle_vulkan_backend/vk_internal_shaders_autogen.oe_autogen.o
../../third_party/angle/src/libANGLE/renderer/vulkan/vk_internal_shaders_autogen.cpp:13:9: warning: 'USE_SYSTEM_ZLIB' macro redefined [-Wmacro-redefined]
#define USE_SYSTEM_ZLIB
        ^
<command line>:39:9: note: previous definition is here
#define USE_SYSTEM_ZLIB 1
        ^
1 warning generated.
[10206/46303] CC obj/third_party/fontconfig/fontconfig/fcxml.ompstampckend/CompilerVk.or.or.oKtable_autogen.o
../../third_party/fontconfig/src/src/fcxml.c:3609:6: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
            strerror_r (errno_, ebuf, BUFSIZ);
            ^~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Anyone encountered something similar?

1 Like

Check if it is due to an overlay. If you don’t get the same hash with these two invocations, there is an overlay interfering.

$ nix-instantiate -E 'with import <nixpkgs> {}; ungoogled-chromium'
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/239fb8hk16q4wrx5bsniir2lhfribifi-ungoogled-chromium-90.0.4430.212.drv
$ nix-instantiate -E 'with import <nixpkgs> { config = {}; overlays = []; }; ungoogled-chromium'
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/239fb8hk16q4wrx5bsniir2lhfribifi-ungoogled-chromium-90.0.4430.212.drv

On my machine I’m on NixOS 20.09 at 52090c6 and for me ungoogled-chromium is substituted.

I indeed get another hash. Have not setup any overlays on purpose, maybe some config options can do that? Will look into it.

~(master ✗) nix-instantiate -E 'with import <nixpkgs> {}; ungoogled-chromium'
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/kk71y1bbyldbkkmx1qnppz1cjqnba3c9-ungoogled-chromium-90.0.4430.212.drv
~(master ✗) nix-instantiate -E 'with import <nixpkgs> { config = {}; overlays = []; }; ungoogled-chromium'
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/kk71y1bbyldbkkmx1qnppz1cjqnba3c9-ungoogled-chromium-90.0.4430.212.drv

The issue is fixed by an update now.