Windows Installation - "make" failing with syntax error


#1

I am following the setup guide for Windows.
Everything executed fine until last step.

Below is the log message when executing “make”:
sutir@MYPC MINGW64 ~/meta/build
$ make
[ 1%] Performing build step for ‘ExternalICU’
Note: rebuild with "make VERBOSE=1 " to show all compiler parameters.
make[3]: Making all' instubdata’
make[3]: Making all' incommon’
make[3]: Making all' ini18n’
make[3]: Making all' inio’
make[3]: Making all' intools’
make[4]: Making all' intoolutil’
make[4]: Making all' inctestfw’
make[4]: Making all' inmakeconv’
make[4]: Making all' ingenrb’
make[4]: Making all' ingenbrk’
make[4]: Making all' ingencnval’
make[4]: Making all' ingensprep’
make[4]: Making all' inicuinfo’
make[4]: Making all' ingenccode’
make[4]: Making all' ingencmn’
make[4]: Making all' inicupkg’
make[4]: Making all' inpkgdata’
make[4]: Making all' ingentest’
make[4]: Making all' ingennorm2’
make[4]: Making all' ingencfu’
make[4]: Making all' ingendict’
make[3]: Making all' indata’
/bin/sh: -c: line 0: syntax error near unexpected token (' /bin/sh: -c: line 0:PATH=…/stubdata:…/tools/ctestfw:…/lib:$PATH …/bin/pkgdata -O …/data/icupkg.inc -q -c -s Microsoft Windows [Version 10.0.17134.829] © 2018 Microsoft Corporation. All rights reserved. C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU-build/data>/out/build/icudt58l -d …/lib -e icudt58 -T ./out/tmp -p icudt58l -m static -r 58 -L icudt ./out/tmp/icudata.lst’
make[4]: *** [Makefile:193: packagedata] Error 1
make[3]: *** [Makefile:143: all-recursive] Error 2
make[2]: *** [CMakeFiles/ExternalICU.dir/build.make:115: deps/icu-58.2/src/ExternalICU-stamp/ExternalICU-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/ExternalICU.dir/all] Error 2
make: *** [Makefile:130: all] Error 2


#2

I deleted “meta” directory and trying to reinstall and followed setup guide. Other errors which were noticed below. Can anyone help diagnose what could be going wrong.
generating dependency information for C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/errorcode.cpp
generating …/common/svchook.mk
config.status: creating common/Makefile
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/putil.cpp: In function ‘void u_setDataDirectory_58(const char*)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/putil.cpp:1222:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1222 | while(p = uprv_strchr(newDataDir, U_FILE_ALT_SEP_CHAR)) {
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/putil.cpp: In function ‘void setTimeZoneFilesDir(const char*, UErrorCode&)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/putil.cpp:1352:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1352 | while (p = uprv_strchr(p, U_FILE_ALT_SEP_CHAR)) {
In file included from C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/umutex.cpp:23:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/umutex.h:354:52: warning: missing initializer for member ‘UMutex::fCS’ [-Wmissing-field-initializers]
354 | #define U_MUTEX_INITIALIZER {U_INITONCE_INITIALIZER}
| ^
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/umutex.cpp:31:31: note: in expansion of macro ‘U_MUTEX_INITIALIZER’
31 | static UMutex globalMutex = U_MUTEX_INITIALIZER;
| ^~~~~~~~~~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/umutex.cpp: In function ‘void umtx_condSignal_58(UConditionVar*)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/umutex.cpp:135:32: warning: unused parameter ‘condition’ [-Wunused-parameter]
135 | umtx_condSignal(UConditionVar condition) {
| ~^
In file included from C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/mutex.h:27,
from C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_bld.cpp:32:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/umutex.h:354:52: warning: missing initializer for member ‘UMutex::fCS’ [-Wmissing-field-initializers]
354 | #define U_MUTEX_INITIALIZER {U_INITONCE_INITIALIZER}
| ^
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_bld.cpp:197:31: note: in expansion of macro ‘U_MUTEX_INITIALIZER’
197 | static UMutex cnvCacheMutex = U_MUTEX_INITIALIZER; /* Mutex for synchronizing cnv cache access. */
| ^
~~~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp: In function 'void _Bocu1FromUnicodeWithOffsets(UConverterFromUnicodeArgs
, UErrorCode*)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:553:35: warning: this statement may fall through [-Wimplicit-fallthrough=]
553 | offsets++=sourceIndex;
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:555:21: note: here
555 | case 3:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:557:35: warning: this statement may fall through [-Wimplicit-fallthrough=]
557 | offsets++=sourceIndex;
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:559:21: note: here
559 | case 2:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:587:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
587 | charErrorBuffer++=(uint8_t)(diff>>16);
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:589:21: note: here
589 | case 2:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:590:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
590 | charErrorBuffer++=(uint8_t)(diff>>8);
| ^
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:592:21: note: here
592 | case 1:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:607:35: warning: this statement may fall through [-Wimplicit-fallthrough=]
607 | offsets++=sourceIndex;
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:609:21: note: here
609 | case 2:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:611:35: warning: this statement may fall through [-Wimplicit-fallthrough=]
611 | offsets++=sourceIndex;
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:613:21: note: here
613 | case 1:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp: In function 'void _Bocu1FromUnicode(UConverterFromUnicodeArgs
, UErrorCode
)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:790:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
790 | *target++=(uint8_t)(diff>>24);
| ~^~~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:792:21: note: here
792 | case 3:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:819:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
819 | charErrorBuffer++=(uint8_t)(diff>>16);
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:821:21: note: here
821 | case 2:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:822:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
822 | charErrorBuffer++=(uint8_t)(diff>>8);
| ^
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:824:21: note: here
824 | case 1:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:838:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
838 | *target++=(uint8_t)(diff>>16);
| ~^~~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:840:21: note: here
840 | case 2:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:841:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
841 | *target++=(uint8_t)(diff>>8);
| ~^~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnvbocu.cpp:843:21: note: here
843 | case 1:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_ext.cpp: In function 'void ucnv_extWriteFromU(UConverter
, const int32_t
, uint32_t, char
, const char
, int32_t
*, int32_t, UErrorCode*)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_ext.cpp:694:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
694 | *p++=(uint8_t)(value>>16);
| ^~~~~~~~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_ext.cpp:696:9: note: here
696 | case 2:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_ext.cpp:697:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
697 | *p++=(uint8_t)(value>>8);
| ^~~~~~~~~~~~~~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv_ext.cpp:699:9: note: here
699 | case 1:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv2022.cpp: In function ‘void changeState_2022(UConverter*, const char**, const char*, Variant2022, UErrorCode*)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv2022.cpp:981:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
981 | if(myData2022->version==0) {
| ^~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv2022.cpp:986:17: note: here
986 | case GB2312_1:
| ^~~~
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv2022.cpp: In function ‘void UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC(UConverterToUnicodeArgs*, UErrorCode*)’:
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv2022.cpp:2180:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
2180 | pToU2022State->g = 0;
| ~~~~~~~~~~~~~~~^
C:/msys64/home/sutir/meta/build/deps/icu-58.2/src/ExternalICU/source/common/ucnv2022.cpp:2182:13: note: here
2182 | default: