gotranspile / cxgo

Tool for transpiling C to Go.
https://gotranspile.dev
MIT License
328 stars 22 forks source link

fail with cygwin #51

Open jilieryuyi opened 2 years ago

jilieryuyi commented 2 years ago

cxgo 2022/02/17 07:31:29 clonning https://github.com/skyrpex/potrace.git to C:\cygwin 64\tmp\potrace Cloning into 'C:\cygwin64\tmp\potrace'... remote: Enumerating objects: 151, done. remote: Counting objects: 100% (151/151), done. remote: Compressing objects: 100% (123/123), done. remote: Total 151 (delta 28), reused 69 (delta 26), pack-reused 0 Receiving objects: 100% (151/151), 648.91 KiB | 1.03 MiB/s, done. Resolving deltas: 100% (28/28), done. Note: switching to 'd32fc5acc2b53b14d0b682cee8c641320fb1ef44'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

2022/02/17 07:31:31 writing to D:\code\cxgo-main.examples\potrace-go 2022/02/17 07:31:31 auxiliary.h Error: auxiliary.h: parsing failed: C:\cygwin64\tmp\potrace\src\auxiliary.h:15:1 : include file not found: stdlib.h (wd D:\code\cxgo-main\examples\potrace) search paths: C:\cygwin64\tmp\potrace\src\includes C:\cygwin64\tmp\potrace\src\include /_cxgo_overrides cxgo_predef.h:2:1: include file not found: cxgo_builtin.h (wd D:\code\cxgo-main\ examples\potrace) search paths: C:\cygwin64\tmp\potrace\src\includes C:\cygwin64\tmp\potrace\src\include /_cxgo_overrides Usage: cxgo [flags] cxgo [command]

Available Commands: completion Generate the autocompletion script for the specified shell file transpile a single C file to Go help Help about any command version print cxgo version

Flags: -c, --config string config file path (default "cxgo.yml") -h, --help help for cxgo

Use "cxgo [command] --help" for more information about a command.

auxiliary.h: parsing failed: C:\cygwin64\tmp\potrace\src\auxiliary.h:15:1: inclu de file not found: stdlib.h (wd D:\code\cxgo-main\examples\potrace) search paths: C:\cygwin64\tmp\potrace\src\includes C:\cygwin64\tmp\potrace\src\include /_cxgo_overrides cxgo_predef.h:2:1: include file not found: cxgo_builtin.h (wd D:\code\cxgo-main\ examples\potrace) search paths: C:\cygwin64\tmp\potrace\src\includes C:\cygwin64\tmp\potrace\src\include /_cxgo_overrides

dennwc commented 2 years ago

I don't think it's specific to cygwin, looks like the _cxgo_overrides might not work properly on Windows :thinking: