Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887871 - [guru] net-p2p/feather-2.1.0 fails to compile (CLANG-STRICTER-SYSTEM): threadpool.h:92:10: error: no template named deque in namespace std
Summary: [guru] net-p2p/feather-2.1.0 fails to compile (CLANG-STRICTER-SYSTEM): thread...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Adam
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-22 08:16 UTC by Agostino Sarubbo
Modified: 2022-12-27 08:05 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,260.75 KB, text/plain)
2022-12-22 08:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-22 08:16:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-p2p/feather-2.1.0 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-22 08:16:38 UTC
Created attachment 844647 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-22 08:16:39 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  Could not find a package configuration file provided by "Qt6" with any of
  lrelease program not found, translation files not built
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Could NOT find HIDAPI (missing: HIDAPI_LIBRARY HIDAPI_INCLUDE_DIR) 
-- Could NOT find zlib (missing: zlib_DIR)
-- Could not find DEVELOPER_LOCAL_TOOLS in env (not required)
-- Could not find HIDAPI
-- Could not find libunwind (missing: LIBUNWIND_INCLUDE_DIR) 
FAILED: monero/src/common/CMakeFiles/obj_common.dir/dns_utils.cpp.o 
fatal: not a git repository (or any parent up to mount point /var/tmp)
/var/tmp/portage/net-p2p/feather-2.1.0/work/feather-2.1.0/monero/src/common/threadpool.h:92:10: error: no template named 'deque' in namespace 'std'
Comment 3 Adam 2022-12-25 18:22:58 UTC
Related: https://bugs.gentoo.org/887873

Sounds like monero may be using some c++ std features (like std::deque) that clang hasn't implemented yet
Comment 4 Adam 2022-12-25 20:34:56 UTC
Actually, it seems like clang should support std::deque, but it isn't included in the file for whatever reason. I will ask their IRC.
Comment 5 Adam 2022-12-25 20:38:09 UTC
Monero IRC mentions this: https://github.com/monero-project/monero/pull/8682
Comment 6 Adam 2022-12-25 21:00:57 UTC
I've added the patch. It should be fixed now.
Comment 7 Larry the Git Cow gentoo-dev 2022-12-27 08:05:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58e53411880115ea269c4b017b97be7c8ba1df5f

commit 58e53411880115ea269c4b017b97be7c8ba1df5f
Author:     Adam Pimentel <adam.pimentel@protonmail.com>
AuthorDate: 2022-12-25 20:59:37 +0000
Commit:     Adam Pimentel <adam.pimentel@protonmail.com>
CommitDate: 2022-12-25 20:59:37 +0000

    net-p2p/feather: add some extra includes for monero
    
    Closes: https://bugs.gentoo.org/887871
    Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>

 net-p2p/feather/feather-2.1.0.ebuild               |  3 +++
 .../feather/files/monero_add_some_includes.patch   | 25 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)