Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905778 - www-client/chromium-113.0.5672.63 error: ‘snprintf’ was not declared in this scope
Summary: www-client/chromium-113.0.5672.63 error: ‘snprintf’ was not declared in this ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL: https://github.com/KhronosGroup/Vulka...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-05-05 16:38 UTC by anna
Modified: 2023-05-05 23:49 UTC (History)
1 user (show)

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


Attachments
build log (chromiumbuildlog.7z,230.45 KB, application/x-7z-compressed)
2023-05-05 16:41 UTC, anna
Details
emerge --info (chromiumemergeinfo.txt,8.68 KB, text/plain)
2023-05-05 16:49 UTC, anna
Details
Patch (vk-fix.patch,410 bytes, patch)
2023-05-05 23:32 UTC, Mike Lothian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description anna 2023-05-05 16:38:08 UTC
Trying to update chromium and I am getting this message, I am using an nvidia graphics card with the proprietary driver and wayland. I am unsure of the inner workings of chromium and do not know if it is indeed still impossible for chromium to use wayland and nvidia drivers, or if this is a regression.

 * Messages for package www-client/chromium-113.0.5672.63:

 * Proprietary nVidia driver does not work with Wayland. You can disable
 * Wayland by setting DISABLE_OZONE_PLATFORM=true in /etc/chromium/default.
 * ERROR: www-client/chromium-113.0.5672.63::gentoo failed (compile phase):
 *   ninja -v -j33 -l0 -C out/Release chrome chromedriver failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4538:  Called chromium_compile
 *   environment, line 1679:  Called eninja '-C' 'out/Release' 'chrome' 'chromedriver'
 *   environment, line 2241:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=www-client/chromium-113.0.5672.63::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-113.0.5672.63::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-113.0.5672.63/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-113.0.5672.63/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63'
 * S: '/var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63'
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2023-05-05 16:41:02 UTC
This is only a warning and maybe is not true anymore. The error is somewhere else. Please attach emerge --info and the full build.log (compressed if too big).
Comment 2 anna 2023-05-05 16:41:03 UTC
Created attachment 861203 [details]
build log
Comment 3 anna 2023-05-05 16:49:20 UTC
Created attachment 861205 [details]
emerge --info
Comment 4 Ionen Wolkens gentoo-dev 2023-05-05 16:52:21 UTC
../../third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h: In function ‘void VmaUint32ToStr(char*, size_t, uint32_t)’:
../../third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h:2859:9: error: ‘snprintf’ was not declared in this scope
 2859 |         snprintf(outStr, strLen, "%u", static_cast<unsigned int>(num));
      |         ^~~~~~~~
../../third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h:2685:1: note: ‘snprintf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
 2684 |     #include <mutex>
  +++ |+#include <cstdio>

I used this at the time for a quick fix:
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/commit/29d492b60c8
Comment 5 anna 2023-05-05 16:59:30 UTC
My apologies, I am unsure how to use that as it is not a patch for chromium and I'm not sure what it is a patch for.
Comment 6 Larry the Git Cow gentoo-dev 2023-05-05 23:27:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea9fdbdfa608bbf3968f2b45f91bed951a771b52

commit ea9fdbdfa608bbf3968f2b45f91bed951a771b52
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-05-05 23:25:52 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-05-05 23:25:52 +0000

    www-client/chromium: fix build with gcc-13
    
    Closes: https://bugs.gentoo.org/905778
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/chromium-113.0.5672.63.ebuild              |  1 +
 .../files/chromium-113-gcc-13-0001-vulkanmemoryallocator.patch | 10 ++++++++++
 2 files changed, 11 insertions(+)
Comment 7 Mike Lothian 2023-05-05 23:32:47 UTC
Created attachment 861210 [details, diff]
Patch

This gets it going for me
Comment 8 Mike Gilbert gentoo-dev 2023-05-05 23:49:47 UTC
(In reply to Mike Lothian from comment #7)

You're about 5 minutes late. ;)