[gambit-list] gcc.exe: error: _io.c: No such file or directory [Latest MinGW on Win7 x64]
Ralph Moritz
ralph.moeritz at outlook.com
Mon Apr 15 16:52:18 EDT 2013
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
More information about the Gambit-list
mailing list