macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.5k stars 681 forks source link

Build of main ae7aaf146 fails #1236

Closed al3xandru closed 2 years ago

al3xandru commented 2 years ago

Steps to reproduce

make clean
make distclean
rm -vf src/auto/config.cache
./configure --with-features=huge --enable-multibyte --enable-terminal --enable-cscope --enable-python3interp=dynamic  --enable-perlinterp=dynamic --enable-rubyinterp=dynamic --enable-luainterp=dynamic --with-lua-prefix=/opt/homebrew --with-macarchs=arm64 --disable-sparkle --with-compiledby="alex@$(date +%Y%m%d%H%M)/$(git rev-parse --short HEAD)" 

Expected behaviour

Compilation to succeed.

Version of Vim and architecture

Main branch ae7aaf146 on arm64

Environment

macOS 12.2.1 arm64

How MacVim was installed

No response

Logs and stack traces

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -I/opt/homebrew/opt/ruby/include -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -arch arm64 -I/opt/homebrew/Cellar/libsodium/1.0.18_1/include -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ex_cmds2.o ex_cmds2.c
ex_cmds.c:3742:10: error: use of undeclared identifier 'e_cannot_use_s_backslash_in_vim9_script'
                emsg(_(e_cannot_use_s_backslash_in_vim9_script));
                       ^
ex_cmds.c:5011:15: error: use of undeclared identifier 'e_pattern_found_in_every_line_str'
                    semsg(_(e_pattern_found_in_every_line_str), pat);
                            ^
2 errors generated.

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

Issue has been tested with no configuration

Other conditions

eirnym commented 2 years ago

This is a part of upstream code. If fix is already in the upstream, it needs to be merged

al3xandru commented 2 years ago

Upstream vim compiles successfully in the same env.

I haven’t tried the exact vim version pulled by macvim, but rather vim head.

ichizok commented 2 years ago

Maybe the state of your repository is incorrect, please try git reset --hard and rebuild.

al3xandru commented 2 years ago

After pulling 656f26b5a, main build again.

eirnym commented 2 years ago

By the way, it always needs to be verified which exact commit has been merged into upstream. It's never "the latest commit".

Merges are done manually as MacVim has numerous changes to the core to make some commands to work properly.