Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943697 - www-client/chromium-132 pdfium_api_wrappers.cc failed compile
Summary: www-client/chromium-132 pdfium_api_wrappers.cc failed compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-17 20:52 UTC by Daiajo Tibdixious
Modified: 2024-12-15 05:28 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info chromium (emerge-info-chromium-132.txt,6.47 KB, text/plain)
2024-11-17 20:52 UTC, Daiajo Tibdixious
Details
partial build log (chromium-132-build-tail.log,130.52 KB, text/x-log)
2024-11-17 21:02 UTC, Daiajo Tibdixious
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daiajo Tibdixious 2024-11-17 20:52:34 UTC
Created attachment 908906 [details]
emerge --info chromium

Getting a mysterious (to me) compile error when upgrading to chromium-132.
Comment 1 Daiajo Tibdixious 2024-11-17 21:02:17 UTC
Created attachment 908907 [details]
partial build log

The build.log is 188M, even gzipped is 3.5M which is too big to attach. I have put instead "tail --lines=50".
Comment 2 Matt Jolly gentoo-dev 2024-11-18 19:58:55 UTC
Looks like this is an LLVM19+ feature:

https://github.com/llvm/llvm-project/issues/106839
Comment 3 Daiajo Tibdixious 2024-11-22 03:58:51 UTC
../../pdf/pdfium/pdfium_api_wrappers.cc:150:32: error: alias template 'PDFiumAPIStringBufferAdapter' requires template arguments; argument deduction only allowed for class templates
  150 |   PDFiumAPIStringBufferAdapter adapter(&name, expected_size,
      |                                ^
../../pdf/pdfium/pdfium_api_string_buffer_adapter.h:173:1: note: template is declared here
  173 | using PDFiumAPIStringBufferAdapter =
      | ^
1 error generated.
Comment 4 Daiajo Tibdixious 2024-11-22 04:00:13 UTC
I attempted the install again today, it fell over with the same error.
Comment 5 Matt Jolly gentoo-dev 2024-11-22 05:53:41 UTC
Yes, I have not yet looked into this, but it will likely require a new patch - stay tuned. I am not hitting it with either llvm 18 or 19 in testing.

As a workaround until I patch the ebuild, you could try setting `USE="-llvm_slot_18 llvm_slot_19" which should use a later llvm that will work with this code.
Comment 6 Daiajo Tibdixious 2024-11-22 10:05:40 UTC
It's trying to rebuild media-libs/mesa which is blocked on LLVM_SLOT. I'll look into it tomorrow.
Comment 7 Daiajo Tibdixious 2024-11-22 22:05:51 UTC
I didn't realize 132 is masked. I've been looking into https://bugs.gentoo.org/942844 thinking a later version of chromium might not have the problem, however it's looking like a pulseaudio bug, although I'm having a tough time proving it.
You could just close this one.
Comment 8 Matt Jolly gentoo-dev 2024-11-23 03:42:50 UTC
132 is keyworded ~arch on amd64 and arm64 - It's supposed to be available for users who wish to opt-in. The 'beta' subslot will never be keyworded stable for those arches. You can select the '0/stable' subslot if you never wish to opt into beta releases but would like to see earlier stable channel packages.

133 (current 'dev' channel) is not keyworded, and dev channel releases (at this time) will never be keyworded; that's reserved for beta. There's nothing wrong with using the dev channel - upstream's CI is "pretty good"
Comment 9 Matt Jolly gentoo-dev 2024-11-23 04:24:51 UTC
It sounds like we're going to stablereq llvm/clang 19 and drop clang 18 for Chromium; the change that causes this is non-trivial to revert / do in a way that clang18 will tolerate.
Comment 10 Matt Jolly gentoo-dev 2024-12-15 05:28:30 UTC
And that's done - profiles should be on 19 by now. I'll make sure 18 is dropped from ebuilds over the next week or so.