Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on Windows: syntax error near unexpected token `(' #36

Closed
bbigras opened this issue Dec 6, 2014 · 2 comments
Closed

Can't build on Windows: syntax error near unexpected token `(' #36

bbigras opened this issue Dec 6, 2014 · 2 comments

Comments

@bbigras
Copy link

bbigras commented Dec 6, 2014

I did cargo build in curl-sys.

I wonder if it may be because I'm using sh.exe from Git.

running: make '-j4'
CDPATH="${ZSH_VERSION+.}:" && cd /c/dev/curl-rust/curl-sys/curl && C:/Program Files (x86)/Git/bin/sh.exe "/c/dev/curl-ru
st/curl-sys/curl/missing" --run autoconf
Makefile:738: recipe for target '/c/dev/curl-rust/curl-sys/curl/Makefile.in' failed
Makefile:766: recipe for target '/c/dev/curl-rust/curl-sys/curl/configure' failed

--- stderr
configure: WARNING: disabling built-in manual
"C:/Program Files (x86)/Git/bin/sh.exe": -c: line 4: syntax error near unexpected token `('
"C:/Program Files (x86)/Git/bin/sh.exe": -c: line 4: `      CDPATH="${ZSH_VERSION+.}:" && cd /c/dev/curl-rust/curl-sys/curl && C:/Program Files (x86)/Git/bin/sh.exe "/c/dev/curl-rust/curl-sys/curl/missing" --run automake-1.14 --foreign \'
"C:/Program Files (x86)/Git/bin/sh.exe": -c: line 0: syntax error near unexpected token `('
"C:/Program Files (x86)/Git/bin/sh.exe": -c: line 0: `CDPATH="${ZSH_VERSION+.}:" && cd /c/dev/curl-rust/curl-sys/curl &&
 C:/Program Files (x86)/Git/bin/sh.exe "/c/dev/curl-rust/curl-sys/curl/missing" --run autoconf'
make: *** [/c/dev/curl-rust/curl-sys/curl/Makefile.in] Error 258
make: *** Waiting for unfinished jobs....
make: *** [/c/dev/curl-rust/curl-sys/curl/configure] Error 258
task '<main>' panicked at 'assertion failed: cmd.stdout(InheritFd(1)).stderr(InheritFd(2)).status().unwrap().success()',
 build.rs:122
@mfibrahim
Copy link

You must set \ before each space, ( or )

@carllerche
Copy link
Contributor

I'm going to close this for now as we haven't been able to reproduce. If there is more information and / or steps to fix, please open the ticket again. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants