gcc fails with spawn: No such file or directory

后端 未结 7 2355
醉梦人生
醉梦人生 2021-02-13 13:41

I downloaded Ruben’s build of Cygwin GCC.

However upon running it seems unable to compile any files

$ touch foo.c

$ gcc foo.c
gcc: error: spawn: No such file         


        
7条回答
  •  孤街浪徒
    2021-02-13 14:03

    I had the same error when I tried to extract a couple of executables from cygwin installation dirctory and copied them into another location.

    strace shows me the file which was not found by spawn:

    /lib/gcc/x86_64-pc-cygwin/6.4.0/cc1.exe
    

    When I copied cc1.exe into the location relative to

    /../lib/gcc/x86_64-pc-cygwin/6.4.0/cc1.exe
    

    it works fine.

提交回复
热议问题