Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Problem during Godi bootstrap_stage2 (Windows mingw)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-19 (07:02)
From: Alan Schmitt <alan.schmitt@p...>
Subject: Problem during Godi bootstrap_stage2 (Windows mingw)

I sent the following to the godi list, but as it occurs during the  
compilation of OCaml itself, someone might know what is going on here...

I had to reinstall my environment to develop OCaml applications under  
Windows (using mingw), and I'm having some problem during  
bootstrap_stage2. Here are the last few lines before the problem occurs:

cp ../byterun/meta.c meta.c
gcc -mno-cygwin -I../byterun -DNATIVE_CODE -DTARGET_i386 -DSYS_mingw - 
O -mms-bitfields -Wall -Wno-unused -c meta.c
cp ../byterun/dynlink.c dynlink.c
gcc -mno-cygwin -I../byterun -DNATIVE_CODE -DTARGET_i386 -DSYS_mingw - 
O -mms-bitfields -Wall -Wno-unused -c dynlink.c
make[8]: Leaving directory `/home/Administrateur/godi/build/godi/godi- 
boot/ocamlrun ./ocamlopt -I stdlib  -o ocamlc.opt utils/misc.cmx utils/ 
tbl.cmx utils/config.cmx utils/clflags.cmx utils/terminfo.cmx utils/ 
ccomp.cmx utils/warnings.cmx utils/consistbl.cmx parsing/linenum.cmx  
parsing/location.cmx parsing/longident.cmx parsing/syntaxerr.cmx  
parsing/parser.cmx parsing/lexer.cmx parsing/parse.cmx parsing/ 
printast.cmx typing/unused_var.cmx typing/ident.cmx typing/path.cmx  
typing/primitive.cmx typing/types.cmx typing/btype.cmx typing/ 
oprint.cmx typing/subst.cmx typing/predef.cmx typing/datarepr.cmx  
typing/env.cmx typing/typedtree.cmx typing/ctype.cmx typing/ 
printtyp.cmx typing/includeclass.cmx typing/mtype.cmx typing/ 
includecore.cmx typing/includemod.cmx typing/parmatch.cmx typing/ 
typetexp.cmx typing/stypes.cmx typing/typecore.cmx typing/typedecl.cmx  
typing/typeclass.cmx typing/typemod.cmx bytecomp/lambda.cmx bytecomp/ 
printlambda.cmx bytecomp/typeopt.cmx bytecomp/switch.cmx bytecomp/ 
matching.cmx bytecomp/translobj.cmxbytecomp/translcore.cmx bytecomp/ 
translclass.cmx bytecomp/translmod.cmx bytecomp/simplif.cmx bytecomp/ 
runtimedef.cmx bytecomp/meta.cmx bytecomp/instruct.cmx bytecomp/ 
bytegen.cmx bytecomp/printinstr.cmx bytecomp/opcodes.cmx bytecomp/ 
emitcode.cmx bytecomp/bytesections.cmx bytecomp/dll.cmx bytecomp/ 
symtable.cmx bytecomp/bytelink.cmx bytecomp/bytelibrarian.cmx bytecomp/ 
bytepackager.cmx driver/pparse.cmx driver/errors.cmx driver/ 
compile.cmx driver/main_args.cmx driver/main.cmx asmrun/meta.o asmrun/ 
'gcc' n'est pas reconnu en tant que commande interne ou externe, un  
programme exécutable ou un fichier de commandes.
Error during linking
make[7]: *** [ocamlc.opt] Error 2
make[7]: Leaving directory `/home/Administrateur/godi/build/godi/godi- 
Error: Exec error: File /home/Administrateur/godi/build/godi/godi- 
ocaml/./../../mk/, line 1039: Command returned with non-zero  
exit code
Error: Exec error: File /home/Administrateur/godi/build/godi/godi- 
ocaml/./../../mk/, line 1378: Command returned with non-zero  
exit code
Error: Command fails with code 1: godi_console

It tells me that "gcc" is not recognized, but it's been used till then  
to build everything! (And it's not gcc that is called, but ocamlrun...)

I am using a cygwin shell to build this, running under windows, and I  
did a
.../bootstrap -prefix /home/Administrateur/godi -w32port mingw
as first bootstrap stage.

Is there something obvious I'm missing?

Thanks a lot,

Alan Schmitt