osx 12.2.1: error during make (Issue #22418)

5 views
Skip to first unread message

7stud

unread,
May 10, 2022, 8:18:32 PM5/10/22
to wx-...@googlegroups.com, Subscribed

Describe the problem

I got the following error in response to the make command:

/src/common/dcbase.cpp:1415:21: error: too many arguments to function call, expected 2, have 4
                    drawobject->MaxX(),drawobject->MaxY());
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wx/dc.h:896:10: note: 'CalcBoundingBox' declared here
    void CalcBoundingBox(wxCoord x, wxCoord y)
         ^
1 error generated.
make: *** [coredll_dcbase.o] Error 1

Describe how exactly do you build wxWidgets, including the full configure
command line and/or make command line if relevant.

~% git clone g...@github.com:wxWidgets/wxWidgets.git 
Cloning into 'wxWidgets'...
remote: Enumerating objects: 848587, done.
remote: Counting objects: 100% (130/130), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 848587 (delta 76), reused 79 (delta 35), pack-reused 848457
Receiving objects: 100% (848587/848587), 347.19 MiB | 13.95 MiB/s, done.
Resolving deltas: 100% (706313/706313), done.

~% cd wxWidgets 
wxWidgets% git submodule update --init src/png
...
...

wxWidgets% git submodule update --init src/tiff
....
...

wxWidgets% git submodule update --init 3rdparty/catch
...
...


wxWidgets% ./configure --with-cocoa --prefix=/usr/local --enable-webview --enable-compat28 --with-macosx-version-min=11.3
...
...
Configured wxWidgets 3.1.7 for `aarch64-apple-darwin21.3.0'

  Which GUI toolkit should wxWidgets use?                 osx_cocoa
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.8      yes
                                       wxWidgets 3.0      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               builtin
                                       png                builtin
                                       regex              builtin
                                       tiff               builtin
                                       lzma               no
                                       zlib               sys
                                       expat              sys
                                       libmspack          no
                                       sdl                no

wxWidgets% make
IC   ./src/stc/scintilla/lexers/LexCOBOL.cxx
/Users/7stud/wxWidgets/bk-deps g++ -std=gnu++11 -mmacosx-version-min=11.3 -c -o wxscintilla_LexCoffeeScript.o -I/Users/7stud/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I./include -D_FILE_OFFSET_BITS=64  -DNDEBUG -

...
...

I./src/stc/scintilla/include -I./src/stc/scintilla/lexlib -I./src/stc/scintilla/src -D__WX__ -DSCI_LEXER -DNO_CXX11_REGEX -DLINK_LEXERS -DWXUSINGDLL -D__WXOSX_COCOA__   -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wno-deprecated-declarations -O2 -fno-common  -fvisibility=hidden -fvisibility-inlines-hidden -dynamic -fPIC -DPIC   ./src/stc/scintilla/lexers/LexCoffeeScript.cxx
/Users/7stud/wxWidgets/bk-deps g++ -std=gnu++11 -mmacosx-version-min=11.3 -c -o wxscintilla_LexConf.o -
/Users/7stud/wxWidgets/bk-deps g++ -std=gnu++11 -mmacosx-version-min=11.3 -c -o coredll_dcbase.o  -I/Users/7stud/wxWidgets/src/tiff/libtiff -I./src/tiff/libtiff -I./src/jpeg -I./src/png  -I./3rdparty/pcre/src/wx  -I/Users/7stud/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I./include -D_FILE_OFFSET_BITS=64  -D__WXOSX_COCOA__      -DWXBUILDING -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic -fPIC -DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wno-deprecated-declarations -O2 -fno-common  -fvisibility=hidden -fvisibility-inlines-hidden   ./src/common/dcbase.cpp
./src/common/dcbase.cpp:1415:21: error: too many arguments to function call, expected 2, have 4
                    drawobject->MaxX(),drawobject->MaxY());
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wx/dc.h:896:10: note: 'CalcBoundingBox' declared here
    void CalcBoundingBox(wxCoord x, wxCoord y)
         ^
1 error generated.
make: *** [coredll_dcbase.o] Error 1

Please attach the full build log, but feel free to quote the relevant parts of
it here.

Got error saying it's too long.

When using configure, please also attach config.log file.

Got error saying it's too long.

Platform and version information

Macbook Pro/ OXS 12.2.1 / Apple M1 Pro

  • wxWidgets version you use: [e.g. 3.1.6]

The configure output says 3.1.7.

  • wxWidgets port you use: [e.g. wxMSW, wxGTK, wxOSX]

???

  • OS and its version: [e.g. Windows 10.0.19042.867, Ubuntu 22.10, macOS 15]

Macbook Pro/ OSX 12.2.1 / Apple M1 Pro

  • Compiler being used: [e.g. MSVS 2022, gcc 12.1]

From the command line output:

  C compiler:                         gcc -mmacosx-version-min=11.3  -Wall -W
  C++ compiler:                     g++ -std=gnu++11 -mmacosx-version-min=11.3 


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/22418@github.com>

VZ

unread,
May 10, 2022, 8:26:30 PM5/10/22
to wx-...@googlegroups.com, Subscribed

Oops, thanks for reporting this, this is due to using --enable-compat28, so if you need a fix right now you should just rerun configure without this option, but I'll fix it a.s.a.p. to work with it too.


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/22418/1123042675@github.com>

VZ

unread,
May 10, 2022, 8:38:25 PM5/10/22
to wx-...@googlegroups.com, Subscribed

Closed #22418 via cf841aa.


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/22418/issue_event/6586016817@github.com>

Reply all
Reply to author
Forward
0 new messages