Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI build fails on iOS and MacOS: pdf_compositor.mojom.h not found. #8756

Open
mkarolin opened this issue Mar 19, 2020 · 0 comments
Open

CI build fails on iOS and MacOS: pdf_compositor.mojom.h not found. #8756

mkarolin opened this issue Mar 19, 2020 · 0 comments

Comments

@mkarolin
Copy link
Contributor

@mkarolin mkarolin commented Mar 19, 2020

11:19:55  In file included from ../../headless/lib/utility/headless_content_utility_client.cc:16:
11:19:55  ../../components/services/pdf_compositor/pdf_compositor_impl.h:21:10: fatal error: 'components/services/pdf_compositor/public/mojom/pdf_compositor.mojom.h' file not found
11:19:55  #include "components/services/pdf_compositor/public/mojom/pdf_compositor.mojom.h"
11:19:55           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11:19:55  1 error generated.

Looks like an upstream bug. In https://chromium.googlesource.com/chromium/src/+/4d4bd27f36db6c5d994c55cea90ae363a5593a01 headless_content_utility_client.cc/h were added to the headless_renderer build target but the deps weren't.

@mkarolin mkarolin self-assigned this Mar 19, 2020
mkarolin added a commit to brave/brave-core that referenced this issue Mar 19, 2020
Fixes brave/brave-browser#8756

This appears to be an upstream bug. The Chromium change below added
headless_content_utility_client.cc/h to the headless_renderer target but
didn't add deps to pdf_compositor (like headless_non_renderer target
does).

Something else must have been building those targets earlier on iOS and
MacOS (since the below change has been present since cr78), but not any
longer.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/4d4bd27f36db6c5d994c55cea90ae363a5593a01

commit 4d4bd27f36db6c5d994c55cea90ae363a5593a01
Author: Chris Davis <chrdavis@microsoft.com>
Date:   Tue Aug 13 04:58:45 2019 +0000

    Link headless_renderer for chrome.dll when is_multi_dll_chrome=false

    A recent change made to enable is_multi_dll_chrome = false caused a
    regression for component builds where the crash export thunks were
    getting linked into chrome.dll instead of chrome_elf. Chrome.dll pulls
    in headless_shell_lib which on Windows depends on crash_export_thunks.
    This has the side-effect of statically linking these thunks into
    chrome.dll instead of having them be imported from chrome_elf.dll. The
    result of which is that the crash report database in chrome_elf.dll is
    never initialized. The bug only impacts component builds where
    is_multi_dll_chrome is set to false.

    Regression caused by: http://crrev.com/c/1697368

    Bug: 991886
@mkarolin mkarolin mentioned this issue Mar 19, 2020
0 of 32 tasks complete
@NejcZdovc NejcZdovc mentioned this issue Mar 19, 2020
6 of 32 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.