Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849005 - dev-libs/nss-3.79-r1: databuffer.h:20:20: error: 'uint8_t' does not name a type
Summary: dev-libs/nss-3.79-r1: databuffer.h:20:20: error: 'uint8_t' does not name a type
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://github.com/nss-dev/nss/commit...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-06-01 12:27 UTC by Marco Scardovi (scardracs)
Modified: 2022-06-01 19:37 UTC (History)
0 users

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


Attachments
build.log (compressed) (build.tar.gz,27.98 KB, application/gzip)
2022-06-01 12:27 UTC, Marco Scardovi (scardracs)
Details
emerge.info (emerge.info,5.97 KB, text/plain)
2022-06-01 12:28 UTC, Marco Scardovi (scardracs)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Scardovi (scardracs) 2022-06-01 12:27:25 UTC
Created attachment 781976 [details]
build.log (compressed)

Hi there, I've compiled this with gcc-13 but actually happens with gcc-11 too. My OS is non-multilib.

I'm adding also logs and info for more completeness
Comment 1 Marco Scardovi (scardracs) 2022-06-01 12:28:08 UTC
Created attachment 781979 [details]
emerge.info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-01 18:56:35 UTC
Please don't CC manually.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-01 18:57:36 UTC
databuffer.h:48:17: error: 'uint8_t' does not name a type
   48 |     data_ = new uint8_t[l ? l : 1]();  // Don't depend on new [0].
      |                 ^~~~~~~
databuffer.h:48:17: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-01 19:06:42 UTC
Fixed already upstream: https://github.com/nss-dev/nss/commit/edf5cb12af8a4668997b7edb65c7add4a1390b09.

I don't see this with GCC 12. I suspect it's GCC 13 only. I doubt it happens w/ 11.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-01 19:17:08 UTC
The bug has been closed via the following commit(s):

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

commit 1309e3bab51ba812641509a623ab288235ea64f9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-01 19:16:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-01 19:17:01 +0000

    dev-libs/nss: fix build with GCC 13
    
    Closes: https://bugs.gentoo.org/849005
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/nss/files/nss-3.79-gcc-13.patch | 33 ++++++++++++++++++++++++++++++++
 dev-libs/nss/nss-3.79-r1.ebuild          |  1 +
 2 files changed, 34 insertions(+)
Comment 6 Marco Scardovi (scardracs) 2022-06-01 19:37:28 UTC
Thanks, I can confirm it works now