[gambit-list] gcc.exe: error: _io.c: No such file or directory [Latest MinGW on Win7 x64]

Marc Feeley feeley at iro.umontreal.ca
Tue Apr 16 11:06:10 EDT 2013


I don't know what is the problem you are experiencing.  All I can say is that the following sequence works fine for me on Windows with MinGW:

    git clone http://github.com/feeley/gambit.git
    cd gambit
    ./configure
    make bootstrap

This is with Gambit's current repo (commit 66f120e1560ebc8f6f851ea453a1610b9ea160d1), Windows 7, gcc v3.4.5, MinGW v5.1.4 and git version 1.7.11.msysgit.0 .

Could you please verify your versions?  I don't think the versions matter much (except for Gambit and git), but who knows.

Marc

On 2013-04-15, at 4:52 PM, Ralph Moritz <ralph.moeritz at outlook.com> wrote:

> I just cloned the Gambit GitHub repo & tried to build according to the
> instructions in INSTALL.txt but got errors running `make', after `make
> bootclean'. Please see details below. (Output has been truncated for
> brevity)
> 
> This reminds me of the issue Bradley Lucifer reported, albeit for Mac
> OS X: http://article.gmane.org/gmane.lisp.scheme.gambit/5876
> 
> $ ./configure --enable-single-host --enable-c-opt --enable-gcc-opts --
> prefix=/c/gambc && make bootstrap
> $ git status
> # Untracked files:
> #       gsc-boot.exe
> #       libgambc.a
> #       libgambcgsc.a
> #       libgambcgsi.a
> $ make bootclean
> $ git status
> # Changes not staged for commit:
> #       deleted:    gsc/_asm.c
> #       deleted:    gsc/_assert.c
> #       deleted:    gsc/_back.c
> #       deleted:    gsc/_codegen.c
> #       deleted:    gsc/_env.c
> #       deleted:    gsc/_front.c
> #       deleted:    gsc/_gambcgsc.c
> #       deleted:    gsc/_gsc.c
> #       deleted:    gsc/_gsc_.c
> #       deleted:    gsc/_gsclib.c
> #       deleted:    gsc/_gvm.c
> #       deleted:    gsc/_host.c
> #       deleted:    gsc/_parms.c
> #       deleted:    gsc/_prims.c
> #       deleted:    gsc/_ptree1.c
> #       deleted:    gsc/_ptree2.c
> #       deleted:    gsc/_source.c
> #       deleted:    gsc/_t-c-1.c
> #       deleted:    gsc/_t-c-2.c
> #       deleted:    gsc/_t-c-3.c
> #       deleted:    gsc/_t-univ.c
> #       deleted:    gsc/_utils.c
> #       deleted:    gsc/_x86.c
> #       deleted:    gsi/_gambcgsi.c
> #       deleted:    gsi/_gsi.c
> #       deleted:    gsi/_gsi_.c
> #       deleted:    gsi/_gsilib.c
> #       deleted:    lib/_eval.c
> #       deleted:    lib/_gambc.c
> #       deleted:    lib/_io.c
> #       deleted:    lib/_kernel.c
> #       deleted:    lib/_nonstd.c
> #       deleted:    lib/_num.c
> #       deleted:    lib/_repl.c
> #       deleted:    lib/_std.c
> #       deleted:    lib/_system.c
> #       deleted:    lib/_thread.c
> #
> # Untracked files:
> #       gsc-boot.exe
> #       libgambc.a
> #       libgambcgsc.a
> #       libgambcgsi.a
> $ make
> rm -f gsc-boot
> cp gsc-boot.unix gsc-boot
> chmod +x gsc-boot
> if test ".bat" != ""; then \
>          rm -f gsc-boot.bat; \
>          cp gsc-boot.bat.windows gsc-boot.bat; \
>        fi
> making all in include
> make[1]: Entering directory `/f/ralph/temp/src/gambit/include'
> major=`echo v4.6.7 | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
>        minor=`echo v4.6.7 | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
>        revision=`echo v4.6.7 | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
>        version_num=`eval expr "\( 100000 \\* $major \) + \( 1000 \\* 
> $minor \)
> + $revision"`; \
>        echo "#error \"The version indicated in ___VERSION is not supported 
> by g
> ambit.h\"" > gambit-not$version_num.h; \
>        echo "#error \"You are probably compiling C code generated by a 
> Gambit c
> ompiler earlier or later than v4.6.7\"" >> gambit-not$version_num.h; \
>        echo "#error \"___VERSION will be set to $version_num to reduce 
> other er
> rors\"" >> gambit-not$version_num.h; \
>        echo "#undef ___VERSION" >> gambit-not$version_num.h; \
>        echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; 
> \
>        echo "#include \"gambit.h\"" >> gambit-not$version_num.h
> make[1]: Leaving directory `/f/ralph/temp/src/gambit/include'
> making all in lib
> make[1]: Entering directory `/f/ralph/temp/src/gambit/lib'
> ../gsc-boot -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c  -check 
> _io.s
> cm
> gcc -D_WINDOWS  -Wno-unused -Wno-write-strings -O2 -fno-math-errno -
> fschedule-in
> sns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-keep-inline-
> dllexport
> -fmodulo-sched -freschedule-modulo-scheduled-loops -fno-common -mieee-fp   -
> I"..
> /include" -c -o "_io.o" -I. -DHAVE_CONFIG_H -D___GAMBCDIR="\"/c/gambc\"" -
> D___SY
> S_TYPE_CPU="\"i686\"" -D___SYS_TYPE_VENDOR="\"pc\"" -
> D___SYS_TYPE_OS="\"mingw32\
> "" -D___CONFIGURE_COMMAND="\"./configure '--enable-single-host' '--enable-c-
> opt'
> '--enable-gcc-opts' '--prefix=/c/gambc'"\" -D___OBJ_EXTENSION="\".o\"" -
> D___EXE
> _EXTENSION="\".exe\"" -D___BAT_EXTENSION="\".bat\"" -D___PRIMAL _io.c -
> D___LIBRA
> RY
> gcc.exe: error: _io.c: No such file or directory
> gcc.exe: fatal error: no input files
> compilation terminated.
> make[1]: *** [_io.o] Error 1
> make[1]: Leaving directory `/f/ralph/temp/src/gambit/lib'
> make: *** [all-recursive] Error 1
> $ git status
> ...
> # Untracked files:
> #       gsc-boot
> #       gsc-boot.bat
> #       gsc-boot.exe
> #       libgambc.a
> #       libgambcgsc.a
> #       libgambcgsi.a
> 
> 
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list




More information about the Gambit-list mailing list