Skip to content

MacVim won't build on El Capitan #1342

Closed
@chdiza

Description

@chdiza

Steps to reproduce

Try to build MacVim from HEAD on El Cap like always.

Expected behaviour

I expect it to build, like always. Instead it bombs out in the GUI phase:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -fobjc-exceptions -o objects/MMBackend.o MacVim/MMBackend.m
In file included from MacVim/gui_macvim.m:16:
In file included from MacVim/MMBackend.h:13:
In file included from ./vim.h:290:
./os_mac.h:304:5: error: unknown type name 'clockid_t'; did you mean 'clock_id_t'?
    clockid_t clockid,
    ^~~~~~~~~
    clock_id_t
/usr/include/mach/clock_types.h:53:13: note: 'clock_id_t' declared here
typedef int     clock_id_t;                     /* clock identification type */
                ^
1 error generated.
make[1]: *** [objects/gui_macvim.o] Error 1

Version of Vim and architecture

HEAD

Environment

MacOS El Capitan

How MacVim was installed

clone the repo

Logs and stack traces

No response

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Other conditions

  • The both Homebrew packages "vim" and "macvim" are installed

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