This is related to my problem. I temporarily fixed the problem with this command-line: CC='' CXX='' make ...
On Tue, Jun 14, 2022 at 1:26 PM John Marriott <[email protected]> wrote: > > On 14-June-2022 21:31, Bram Moolenaar wrote: > > Patch 8.2.5087 > > Problem: Cannot build with clang on MS-Windows. > > Solution: Add support for building with clang. (Yegappan Lakshmanan, > > closes #10557) > > Files: src/GvimExt/Make_ming.mak, src/INSTALLpc.txt, > > src/Make_cyg_ming.mak > > > > > After this patch mingw64 (gcc 12.1) is spitting out lots of errors, one > for each source file: > <snip> > make > --directory=D:/Users/John/Documents/software/Utility/Vim/git/vim/src > FEATURES=NORMAL OPTIMIZE=MAXSPEED DIRECTX=no ICONV= GETTEXT= IME=no > DYNAMIC_IME=no POSTSCRIPT=no OLE=no WINVER=0x0603 CSCOPE=no NETBEANS=no > CHANNEL=no TERMINAL=no SOUND=no ARCH=native XPM=no GUI=yes CFLAGS=-I. > -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF > -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe > -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -fpie > -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD > LFLAGS=-Wl,-nxcompat,-dynamicbase -municode -s -mwindows > --environment-overrides --jobs=9 --keep-going --output-sync > --no-print-directory --makefile=Make_ming.mak gvim.exe > process_begin: CreateProcess(NULL, cc -c -I. -Iproto -DWIN32 > -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL > -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe -march=native -Wall -O3 > -fomit-frame-pointer -freg-struct-return -fpie -fPIE -DFEAT_GUI_MSWIN > -DFEAT_CLIPBOARD alloc.c -o gobjnative/alloc.o, ...) failed. > make (e=2): The system cannot find the file specified. > make: *** [Make_cyg_ming.mak:1215: gobjnative/alloc.o] Error 2 > cc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 > -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO > -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return > -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD alloc.c -o gobjnative/alloc.o > process_begin: CreateProcess(NULL, cc -c -I. -Iproto -DWIN32 > -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL > -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe -march=native -Wall -O3 > -fomit-frame-pointer -freg-struct-return -fpie -fPIE -DFEAT_GUI_MSWIN > -DFEAT_CLIPBOARD arabic.c -o gobjnative/arabic.o, ...) failed. > make (e=2): The system cannot find the file specified. > make: *** [Make_cyg_ming.mak:1215: gobjnative/arabic.o] Error 2 > cc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 > -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO > -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return > -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD arabic.c -o > gobjnative/arabic.o > process_begin: CreateProcess(NULL, cc -c -I. -Iproto -DWIN32 > -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL > -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe -march=native -Wall -O3 > -fomit-frame-pointer -freg-struct-return -fpie -fPIE -DFEAT_GUI_MSWIN > -DFEAT_CLIPBOARD arglist.c -o gobjnative/arglist.o, ...) failed. > make (e=2): The system cannot find the file specified. > make: *** [Make_cyg_ming.mak:1215: gobjnative/arglist.o] Error 2 > ... > </snip> > > I don't have the command "cc", only gcc. > > I think line problem is in lines 220 to 222 in Make_cyg_ming.mak: > <snip> > ifeq ($(CC),) > CC := $(CROSS_COMPILE)gcc > endif > </snip> > > Checking if $CC is empty won't work for gnu make because it predefines > it to have the value "cc". So for me, $CC remains with the value "cc" > and not "gcc". > > Cheers > John > > -- > -- > You received this message from the "vim_dev" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_dev/69fba827-41da-68d8-9e4f-044e75f431e8%40internode.on.net > . > -- Christian J. Robinson <[email protected]> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAK14FZJzbuDwb%3DvW7H-1YKvZ_cbPX12ixZg-tbBHM%3D8wh3s9Ww%40mail.gmail.com.
