Skip to content

Cannot build wxPython 4.2.3 against wxWidgets 3.3 #2764

@jmaibaum

Description

@jmaibaum

Operating system: Linux
wxPython version & source: wxPython 4.2.3, self-built for KiCad flatpak
Python version & source: Python 3.12.10, from org.freedesktop.Sdk//24.08

Description of the problem:

We are building wxPython for the KiCad flatpak on flathub 1 using

pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} wxPython --no-build-isolation

with WXPYTHON_BUILD_ARGS="--use_syswx --nodoc" 2

Trying to build against the newly released wxWidgets 3.3, we are seing build errors during SIP build step:

2025-06-06T21:20:40.6696935Z   running bdist_wheel
2025-06-06T21:20:40.6711043Z   running build
2025-06-06T21:20:40.8321175Z   Will build using: "/usr/bin/python"
2025-06-06T21:20:40.8493084Z   3.12.10 (main, Nov 10 2011, 15:00:00) [GCC 14.3.0]
2025-06-06T21:20:40.8776566Z   Python's architecture is 64bit
2025-06-06T21:20:40.8776807Z   cfg.VERSION: 4.2.3
2025-06-06T21:20:40.8779296Z 
2025-06-06T21:20:40.8779828Z   Running command: build
2025-06-06T21:20:40.8781183Z   Running command: build_wx
2025-06-06T21:20:40.8781763Z   use_syswx option specified, skipping wxWidgets build
2025-06-06T21:20:40.8783870Z   Finished command: build_wx (0.0s)
2025-06-06T21:20:40.8784368Z   Running command: build_py
2025-06-06T21:20:40.8785053Z   Checking for /tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568/bin/waf-2.1.5...
2025-06-06T21:20:40.8785949Z   "/usr/bin/python" /tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568/bin/waf-2.1.5 --wx_config=wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.12/gtk3 configure build
2025-06-06T21:20:41.1225128Z   Setting top to                           : /tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568
2025-06-06T21:20:41.1226187Z   Setting out to                           : /tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568/build/waf/3.12/gtk3
2025-06-06T21:20:41.1462911Z   Checking for 'gcc' (C compiler)          : /run/ccache/bin/gcc
2025-06-06T21:20:41.1651375Z   Checking for 'g++' (C++ compiler)        : /run/ccache/bin/g++
2025-06-06T21:20:41.1651835Z   Checking for program 'python'            : /usr/bin/python
2025-06-06T21:20:41.2317636Z   Checking for python version >= 3.7.0     : 3.12.10
2025-06-06T21:20:41.4326121Z   python-config                            : /usr/bin/python3.12-config
2025-06-06T21:20:41.4488255Z   Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
2025-06-06T21:20:41.7853040Z   Testing pyext configuration                                      : yes
2025-06-06T21:20:41.9704049Z   Finding libs for WX                                              : yes
2025-06-06T21:20:41.9937771Z   Finding libs for WXADV                                           : yes
2025-06-06T21:20:42.0175433Z   Finding libs for WXSTC                                           : yes
2025-06-06T21:20:42.0414592Z   Finding libs for WXHTML                                          : yes
2025-06-06T21:20:42.0661171Z   Finding libs for WXGL                                            : yes
2025-06-06T21:20:42.0896101Z   Finding libs for WXWEBVIEW                                       : yes
2025-06-06T21:20:42.1140974Z   Finding libs for WXXML                                           : yes
2025-06-06T21:20:42.1392700Z   Finding libs for WXXRC                                           : yes
2025-06-06T21:20:42.1630869Z   Finding libs for WXRICHTEXT                                      : yes
2025-06-06T21:20:42.1869726Z   Finding libs for WXMEDIA                                         : yes
2025-06-06T21:20:42.2119381Z   Finding libs for WXRIBBON                                        : yes
2025-06-06T21:20:42.2352646Z   Finding libs for WXPROPGRID                                      : yes
2025-06-06T21:20:42.2585760Z   Finding libs for WXAUI                                           : yes
2025-06-06T21:20:42.2641599Z   'configure' finished successfully (1.148s)
2025-06-06T21:20:42.2668183Z   Waf: Entering directory `/tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568/build/waf/3.12/gtk3'
2025-06-06T21:20:42.3823971Z   **** Compiler: gcc --version
2025-06-06T21:20:42.3824300Z        gcc (GCC) 14.3.0
2025-06-06T21:20:42.3827828Z        Copyright (C) 2024 Free Software Foundation, Inc.
2025-06-06T21:20:42.3828233Z        This is free software; see the source for copying conditions.  There is NO
2025-06-06T21:20:42.3828657Z        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2025-06-06T21:20:42.4614266Z   [  1/939] Compiling sip/siplib/siplib.c
2025-06-06T21:20:42.4625118Z   [  2/939] Compiling sip/siplib/int_convertors.c
2025-06-06T21:20:42.4639891Z   [  3/939] Compiling sip/siplib/apiversions.c
2025-06-06T21:20:42.4672778Z   [  4/939] Compiling sip/siplib/sip_array.c
2025-06-06T21:20:42.7062945Z   [  5/939] Compiling sip/siplib/qtlib.c
2025-06-06T21:20:42.7866609Z   [  6/939] Compiling sip/siplib/descriptors.c
2025-06-06T21:20:42.7920881Z   [  7/939] Compiling sip/siplib/objmap.c
2025-06-06T21:20:42.9927902Z   [  8/939] Compiling sip/siplib/voidptr.c
2025-06-06T21:20:43.0284597Z   [  9/939] Compiling sip/siplib/threads.c
2025-06-06T21:20:43.1070182Z   [ 10/939] Compiling sip/cpp/sip_corewxCollapsiblePane.cpp
2025-06-06T21:20:43.2444209Z   [ 11/939] Compiling sip/cpp/sip_corewxWrapSizer.cpp
2025-06-06T21:20:43.2682727Z   [ 12/939] Compiling sip/cpp/sip_corewxListCtrl.cpp
2025-06-06T21:20:46.1968467Z   ../../../../sip/cpp/sip_corewxCollapsiblePane.cpp:88:16: error: ‘wxBorder sipwxCollapsiblePane::GetDefaultBorderForControl() const’ marked ‘override’, but does not override
2025-06-06T21:20:46.1970644Z      88 |     ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
2025-06-06T21:20:46.1971451Z         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-06-06T21:20:46.1972375Z   ../../../../sip/cpp/sip_corewxCollapsiblePane.cpp: In member function ‘wxBorder sipwxCollapsiblePane::GetDefaultBorderForControl() const’:
2025-06-06T21:20:46.1973990Z   ../../../../sip/cpp/sip_corewxCollapsiblePane.cpp:223:63: warning: ‘wxBorder wxWindowBase::GetDefaultBorderForControl() const’ is deprecated: Just use wxBORDER_THEME instead [-Wdeprecated-declarations]
2025-06-06T21:20:46.1978359Z     223 |         return ::wxCollapsiblePane::GetDefaultBorderForControl();
2025-06-06T21:20:46.1998318Z         |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
2025-06-06T21:20:46.2002832Z   In file included from /app/include/wx-3.3/wx/wx.h:36,
2025-06-06T21:20:46.2007614Z                    from ../../../../wx/include/wxPython/wxpy_api.h:41,
2025-06-06T21:20:46.2011089Z                    from ../../../../sip/cpp/sipAPI_core.h:22096,
2025-06-06T21:20:46.2014736Z                    from ../../../../sip/cpp/sip_corewxCollapsiblePane.cpp:10:
2025-06-06T21:20:46.2017994Z   /app/include/wx-3.3/wx/window.h:1887:14: note: declared here
2025-06-06T21:20:46.2021559Z    1887 |     wxBorder GetDefaultBorderForControl() const { return wxBORDER_THEME; }
2025-06-06T21:20:46.2024968Z         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-06-06T21:20:46.2029672Z   ../../../../sip/cpp/sip_corewxCollapsiblePane.cpp: In member function ‘wxBorder sipwxCollapsiblePane::sipProtectVirt_GetDefaultBorderForControl(bool) const’:
2025-06-06T21:20:46.2034115Z   ../../../../sip/cpp/sip_corewxCollapsiblePane.cpp:863:76: warning: ‘wxBorder wxWindowBase::GetDefaultBorderForControl() const’ is deprecated: Just use wxBORDER_THEME instead [-Wdeprecated-declarations]
2025-06-06T21:20:46.2037976Z     863 |     return (sipSelfWasArg ? ::wxCollapsiblePane::GetDefaultBorderForControl() : GetDefaultBorderForControl());
2025-06-06T21:20:46.2040986Z         |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
2025-06-06T21:20:46.2044218Z   /app/include/wx-3.3/wx/window.h:1887:14: note: declared here
2025-06-06T21:20:46.2047709Z    1887 |     wxBorder GetDefaultBorderForControl() const { return wxBORDER_THEME; }
2025-06-06T21:20:46.2051009Z         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-06-06T21:20:46.2053912Z 
2025-06-06T21:20:46.4731672Z   ../../../../sip/cpp/sip_corewxListCtrl.cpp:232:16: error: ‘wxBorder sipwxListCtrl::GetDefaultBorderForControl() const’ marked ‘override’, but does not override
2025-06-06T21:20:46.4734850Z     232 |     ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
2025-06-06T21:20:46.4740310Z         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-06-06T21:20:46.4744501Z   ../../../../sip/cpp/sip_corewxListCtrl.cpp: In member function ‘wxBorder sipwxListCtrl::GetDefaultBorderForControl() const’:
2025-06-06T21:20:46.4748844Z   ../../../../sip/cpp/sip_corewxListCtrl.cpp:442:56: warning: ‘wxBorder wxWindowBase::GetDefaultBorderForControl() const’ is deprecated: Just use wxBORDER_THEME instead [-Wdeprecated-declarations]
2025-06-06T21:20:46.4752032Z     442 |         return ::wxListCtrl::GetDefaultBorderForControl();
2025-06-06T21:20:46.4754747Z         |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
2025-06-06T21:20:46.4757981Z   In file included from /app/include/wx-3.3/wx/wx.h:36,
2025-06-06T21:20:46.4761463Z                    from ../../../../wx/include/wxPython/wxpy_api.h:41,
2025-06-06T21:20:46.4765202Z                    from ../../../../sip/cpp/sipAPI_core.h:22096,
2025-06-06T21:20:46.4768493Z                    from ../../../../sip/cpp/sip_corewxListCtrl.cpp:10:
2025-06-06T21:20:46.4771896Z   /app/include/wx-3.3/wx/window.h:1887:14: note: declared here
2025-06-06T21:20:46.4775608Z    1887 |     wxBorder GetDefaultBorderForControl() const { return wxBORDER_THEME; }
2025-06-06T21:20:46.4778881Z         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-06-06T21:20:46.4783285Z   ../../../../sip/cpp/sip_corewxListCtrl.cpp: In member function ‘wxBorder sipwxListCtrl::sipProtectVirt_GetDefaultBorderForControl(bool) const’:
2025-06-06T21:20:46.4788605Z   ../../../../sip/cpp/sip_corewxListCtrl.cpp:1082:69: warning: ‘wxBorder wxWindowBase::GetDefaultBorderForControl() const’ is deprecated: Just use wxBORDER_THEME instead [-Wdeprecated-declarations]
2025-06-06T21:20:46.4791484Z    1082 |     return (sipSelfWasArg ? ::wxListCtrl::GetDefaultBorderForControl() : GetDefaultBorderForControl());
2025-06-06T21:20:46.4794404Z         |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
2025-06-06T21:20:46.4797556Z   /app/include/wx-3.3/wx/window.h:1887:14: note: declared here
2025-06-06T21:20:46.4801267Z    1887 |     wxBorder GetDefaultBorderForControl() const { return wxBORDER_THEME; }
2025-06-06T21:20:46.4804316Z         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-06-06T21:20:46.4807163Z 
2025-06-06T21:20:46.9306296Z   Waf: Leaving directory `/tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568/build/waf/3.12/gtk3'
2025-06-06T21:20:46.9312288Z   Build failed
2025-06-06T21:20:46.9313399Z    -> task in '_core' failed with exit status 1 (run with -v to display more information)
2025-06-06T21:20:46.9317478Z    -> task in '_core' failed with exit status 1 (run with -v to display more information)
2025-06-06T21:20:46.9637844Z   Command '"/usr/bin/python" /tmp/pip-install-6d2eeu21/wxpython_f50c262014e1459b8f65395f29bae568/bin/waf-2.1.5 --wx_config=wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.12/gtk3 configure build ' failed with exit code 1.
2025-06-06T21:20:46.9639356Z   Finished command: build_py (0m6.85s)
2025-06-06T21:20:46.9639602Z   Finished command: build (0m6.86s)

Full build log: 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions