Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910441 - x11-libs/wxGTK-3.0.5.1-r1 fails to build with clang-16.0.6[default-libcxx]: .../scintilla/src/Editor.cxx:5709:7: error: no member named 'auto_ptr' in namespace 'std'
Summary: x11-libs/wxGTK-3.0.5.1-r1 fails to build with clang-16.0.6[default-libcxx]: ....
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-libcxx
  Show dependency tree
 
Reported: 2023-07-17 00:45 UTC by ppw0
Modified: 2023-10-19 10:59 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.log,8.46 KB, text/x-log)
2023-07-17 00:45 UTC, ppw0
Details
build log (failed) (x11-libs:wxGTK-3.0.5.1-r1:20230716-222948.log.gz,12.16 KB, application/x-gz)
2023-07-17 00:48 UTC, ppw0
Details
build log (successful) (x11-libs:wxGTK-3.0.5.1-r1:20230716-234534.log.gz,57.50 KB, application/x-gz)
2023-07-17 00:48 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-07-17 00:45:40 UTC
Created attachment 865626 [details]
emerge --info

Trying to build x11-libs/wxGTK-3.0.5.1-r1 on a clang/libcxx/llvm profile gives the following error:

---
/var/tmp/portage/x11-libs/wxGTK-3.0.5.1-r1/work/wxWidgets-3.0.5.1/src/stc/scintilla/src/Editor.cxx:5709:7: error: no member named 'auto_ptr' in namespace 'std'
        std::auto_ptr<CaseFolder> pcf(CaseFolderForEncoding());
        ~~~~~^
/var/tmp/portage/x11-libs/wxGTK-3.0.5.1-r1/work/wxWidgets-3.0.5.1/src/stc/scintilla/src/Editor.cxx:5709:16: error: 'CaseFolder' does not refer to a value
        std::auto_ptr<CaseFolder> pcf(CaseFolderForEncoding());
                      ^
/var/tmp/portage/x11-libs/wxGTK-3.0.5.1-r1/work/wxWidgets-3.0.5.1/src/stc/scintilla/src/Document.h:158:7: note: declared here
class CaseFolder {
      ^
/var/tmp/portage/x11-libs/wxGTK-3.0.5.1-r1/work/wxWidgets-3.0.5.1/src/stc/scintilla/src/Editor.cxx:5709:28: error: use of undeclared identifier 'pcf'
        std::auto_ptr<CaseFolder> pcf(CaseFolderForEncoding());
                                  ^
/var/tmp/portage/x11-libs/wxGTK-3.0.5.1-r1/work/wxWidgets-3.0.5.1/src/stc/scintilla/src/Editor.cxx:5717:4: error: use of undeclared identifier 'pcf'
                        pcf.get());
                        ^
4 errors generated.
---

Since the package expects features that have been removed from C++17 and libc's stricter adherence to the standards, adding -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES to CPPFLAGS works around this issue, albeit with many "symbol not defined" warnings from ld.lld. I'm attaching both build logs.
Comment 1 ppw0 2023-07-17 00:48:06 UTC
Created attachment 865627 [details]
build log (failed)
Comment 2 ppw0 2023-07-17 00:48:32 UTC
Created attachment 865628 [details]
build log (successful)
Comment 3 Mart Raudsepp gentoo-dev 2023-10-02 07:33:51 UTC
Does wxGTK:3.2 fail like this as well?
Comment 4 ppw0 2023-10-02 07:37:30 UTC
(In reply to Mart Raudsepp from comment #3)
> Does wxGTK:3.2 fail like this as well?

Not like this, no.
Comment 5 Mart Raudsepp gentoo-dev 2023-10-02 08:17:05 UTC
OK, the mid-term goal is to just get rid of wxGTK-3.0, so we should look at its consumers and get them over to 3.2. I hope to get to poedit and wxhexeditor soon - what do you need 3.0 for?
Comment 6 ppw0 2023-10-02 14:45:48 UTC
(In reply to Mart Raudsepp from comment #5)
> OK, the mid-term goal is to just get rid of wxGTK-3.0, so we should look at
> its consumers and get them over to 3.2. I hope to get to poedit and
> wxhexeditor soon - what do you need 3.0 for?

~% emerge -pvc \=x11-libs/wxGTK-3.0.5.1-r1

Calculating dependencies... done!
  x11-libs/wxGTK-3.0.5.1-r1 pulled in by:
    app-arch/p7zip-16.02-r8 requires x11-libs/wxGTK:3.0-gtk3[X]

>>> No packages selected for removal by depclean
Packages installed:   1472
Packages in world:    96
Packages in system:   49
Required packages:    1472
Number to remove:     0
~%
Comment 7 ernsteiswuerfel archtester 2023-10-16 23:16:21 UTC
(In reply to Mart Raudsepp from comment #5)
> [...] what do you need 3.0 for?
I actually need it for net-p2p/amule-2.3.3-r1 which I got in heavy use. ;)