简体   繁体   中英

Error using `make` on cygwin for Windows 64 bit: /usr/bin/sh: -c: line 0: syntax error near unexpected token `('

When attempting to compile this project using make in cygwin64, I encounter this error:

carolyns@ugrpc /cygdrive/c/Program Files (x86)/Discourse_Parser_Dist/bllip-parser-master/bllip-parser-master
$ make
C:/Program Files (x86)/GnuWin32/bin/make -C first-stage/PARSE parseIt
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -C first-stage/PARSE parseIt'
make: *** [PARSE] Error 1

Some sleuthing suggests the issue could be my bash version, but I am using V4 as seems recommended

carolyns@ugrcpc /cygdrive/c/Program Files (x86)/Discourse_Parser_Dist/bllip-parser-master/bllip-parser-master
$ bash --version
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

as well as make V3.81

carolyns@ugrpc /cygdrive/c/Program Files (x86)/Discourse_Parser_Dist/bllip-parser-master/bllip-parser-master
$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

I have also added SHELL := /bin/bash as suggested by this issue

Other sources of this error seem unrelated to my situation ( echo problem ).

I've tried this using MinGW64 as well with the same result. I've also tried moving the folder out of the Program Files directory , with the same result.

Any help would be greatly appreciated.

Fixed

It was unhappy with my make path including Program Files (x86) . I moved make and forced it to use the new path and got a shiny new error.

Hope this helps another windows newbie.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM