MacOS ARM: fails to build in Github actions (Issue #25793)

46 views
Skip to first unread message

Stovent

unread,
Sep 12, 2025, 11:47:45 AM (5 days ago) Sep 12
to wx-...@googlegroups.com, Subscribed
Stovent created an issue (wxWidgets/wxWidgets#25793)

Build System Used

I build wxWidgets and/or my application using:

  • CMake
  • configure
  • mingw32-make with makefile.gcc
  • MSBuild (Microsoft Visual Studio solution file)
  • nmake with makefile.vc
  • Xcode

brew install wxwidgets dylibbundler create-dmg

      - name: Generate Makefile
        run: cmake . -DCMAKE_BUILD_TYPE=Release
        env:
          CXX: g++-15

Description

I don't know if you are managing the homebrew package, but when installing and linking against wxWidgets in github actions (runner MacOS 15.5 ARM64), linking fails with the following error:

[100%] Linking CXX executable ../CeDImu
Undefined symbols for architecture arm64:
  "non-virtual thunk to wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)", referenced from:
      vtable for GenericList in CPUViewer.cpp.o
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status

The run job that failed: https://github.com/Stovent/CeDImu/actions/runs/17665398427/job/50206068864
my GenericList file that references the function: GenericList.hpp

Platform and version information

  • wxWidgets version you are building: 3.3.1
  • wxWidgets port you are building: wxOSX
  • OS and its version: macOS 15.5 24F74
  • Compiler being used: GCC-15
  • Non-default compiler options, if any : -std=c++26 -O3 -flto


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25793@github.com>

VZ

unread,
Sep 13, 2025, 8:45:49 AM (4 days ago) Sep 13
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25793)

We don't maintain any packages, including Homebrew ones, so I'm not sure what's going on here. The "missing" function should indeed be part of the library, normally, please run objdump (or whatever is its equivalent under macOS) to check what's going on with it.

Also try building without LTO just in case it's a bug related to it.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25793/3288308073@github.com>

Stovent

unread,
Sep 13, 2025, 11:40:15 PM (4 days ago) Sep 13
to wx-...@googlegroups.com, Subscribed
Stovent left a comment (wxWidgets/wxWidgets#25793)

Thanks, unfortunately removing LTO doesn't fix it. In which library is the GenericCtrlList compiled in? Maybe I haven't linked the correct libraries.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25793/3289153228@github.com>

Maarten

unread,
Sep 14, 2025, 6:54:39 AM (3 days ago) Sep 14
to wx-...@googlegroups.com, Subscribed
MaartenBent left a comment (wxWidgets/wxWidgets#25793)

Based on your GitHub action history, this seems to be caused by using GCC instead of AppleClang, and/or different compile options (c++26?). It is probably incompatible with the libraries built by homebrew.

You could also try adding a destructor to your class and/or implement all non-pure functions, see the last chapter in https://gcc.gnu.org/faq.html#vtables


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25793/3289442048@github.com>

Stovent

unread,
Sep 15, 2025, 11:23:12 PM (2 days ago) Sep 15
to wx-...@googlegroups.com, Subscribed
Stovent left a comment (wxWidgets/wxWidgets#25793)

After a few discussions on homebrew's github, it seemed this was because homebrew uses AppleClang to compile, which may not be totally compatible with GCC. I switched to LLVM clang to build my code on mac and I successfully linked against AppleClangs compiled wxWidgets


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25793/3294711033@github.com>

Stovent

unread,
Sep 15, 2025, 11:23:14 PM (2 days ago) Sep 15
to wx-...@googlegroups.com, Subscribed

Closed #25793 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25793/issue_event/19714715613@github.com>

Reply all
Reply to author
Forward
0 new messages