Skip to content

Cannot build 3.0.5 on macOS with system clang #1247

Description

@fxcoudert

Operating system: macOS 10.14.5
wxPython version & source: 4.0.6, trying to self-build
Python version & source: Python 3.7.3 from Homebrew

Description of the problem:

I am trying to update the version shipped in Homebrew (of which I am a maintainer) to the latest (we currently ship 3.0.2.0). The configuration finishes successfully with:

    Configured wxWidgets 3.0.5 for `x86_64-apple-darwin18.6.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.6      no
                                           wxWidgets 2.8      yes
      Which libraries should wxWidgets use?
                                           STL                no
                                           jpeg               sys
                                           png                sys
                                           regex              builtin
                                           tiff               sys
                                           zlib               sys
                                           expat              sys
                                           libmspack          no
                                           sdl                no

but the build fails with:

    clang: error: cannot specify -o when generating multiple output files
    make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 1
    make: *** Waiting for unfinished jobs....
    clang: error: cannot specify -o when generating multiple output files
    make: *** [.pch/wxprec_netdll/wx/wxprec.h.gch] Error 1
    clang: error: cannot specify -o when generating multiple output files
    make: *** [.pch/wxprec_coredll/wx/wxprec.h.gch] Error 1
    Error building
    ERROR: failed building wxWidgets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions