Subject: Re: bug#28754: [email-masked]: WebCore/HysteresisActivity.h: No such file or directory

From: Leo Famulari <[email-masked]>
Date: Mon, 9 Oct 2017 15:33:08 -0400

On Sun, Oct 08, 2017 at 11:07:02PM -0300, Adonay Felipe Nogueira wrote:
> It seems that packages depending on [email-masked] might fail to be
> built.
> 
> What should we do?
> 
> See the log below:
> 
> --8<---------------cut here---------------start------------->8---
> In file included from /tmp/guix-build-webkitgtk-2.18.0.drv-0/webkitgtk-2.18.0/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp:21:0:
> /tmp/guix-build-webkitgtk-2.18.0.drv-0/webkitgtk-2.18.0/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.h:23:40: fatal error: WebCore/HysteresisActivity.h: No such file or directory
> compilation terminated.
> make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:51129: Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp.o] Error 1
> make[2]: Leaving directory '/tmp/guix-build-webkitgtk-2.18.0.drv-0/build'
> make[1]: *** [CMakeFiles/Makefile2:1062: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
> make[1]: Leaving directory '/tmp/guix-build-webkitgtk-2.18.0.drv-0/build'
> make: *** [Makefile:153: all] Error 2
> phase `build' failed after 14890.9 seconds
> builder for `/gnu/store/p80x4bmdf1j9dn3p9jgyx0hq33kxynr9-webkitgtk-2.18.0.drv' failed with exit code 1
> cannot build derivation `/gnu/store/qx8b9gl2ljynzrbd1aqwrdgr7glngabn-wxwidgets-3.0.3.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/19f2y83qi65qkz46dnmh4c145gngpw85-0ad-0.0.22-alpha.drv': 1 dependencies couldn't be built
> guix package: error: build failed: build of `/gnu/store/19f2y83qi65qkz46dnmh4c145gngpw85-0ad-0.0.22-alpha.drv' failed
> --8<---------------cut here---------------end--------------->8---

This is strange. I get an x86_64 substitute for webkitgtk as of the
latest revision of Guix (commit
4c4f1871ae7005debf172edc66f80fcd98e35a90).

What is the result of `guix --version` in the environment where you get
this error? Are you working with some special variant of webkitgtk?

BTW, the code that requires the missing header is wrapped in a
USE(CAIRO) preprocessor block:

------
#if USE(CAIRO)
#include "BackingStoreBackendCairo.h"
#include <WebCore/HysteresisActivity.h>
[...]
------