From: Matthieu Dubuget <matthieu.dubuget@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Pre-processor sub-process
Date: Sun, 27 Sep 2009 22:58:28 +0200 [thread overview]
Message-ID: <4ABFD1F4.8080606@gmail.com> (raw)
Hello,
I'm trying to have bin-prot compiled with mingw version of OCaml with
the original OCamlMakefile.
This fails on my computer.
I reproduced the problem here:
On linux, there is no problem:
$ uname
Linux
$ echo $BIN_PROT_CPP
cpp
$ echo $pp
$BIN_PROT_CPP $ARCH_FLAGS
$ ocamlc -c -verbose -pp "echo $pp && $pp" write_ml.ml
+ echo $BIN_PROT_CPP $ARCH_FLAGS && $BIN_PROT_CPP $ARCH_FLAGS
'write_ml.ml' > /tmp/camlppf6e35a
cpp
File "write_ml.ml", line 33, characters 0-11:
Error: Unbound module Common
Ok. If I cat /tmp/camlppf6e35a, I can check that write_ml.ml was
actually pre-processed by cpp.
On cygwin:
$ uname
CYGWIN_NT-5.1
$ echo $BIN_PROT_CPP
cpp
$ echo $pp
$BIN_PROT_CPP $ARCH_FLAGS
$ ocamlc -c -verbose -pp "echo $pp && $pp" write_ml.ml
+ echo $BIN_PROT_CPP $ARCH_FLAGS && $BIN_PROT_CPP $ARCH_FLAGS
"write_ml.ml" > c:\DOCUME~1\matt\LOCALS~1\Temp\camlpp8a6978
$BIN_PROT_CPP $ARCH_FLAGS
'$BIN_PROT_CPP' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.
File "write_ml.ml", line 1, characters 0-1:
Error: Preprocessor error
It seems that when the pre-processor is called, the environment is not
given to the sub-process?
Can anybody reproduce this problem (or better: provide a solution), or
did I something bad?
P.S. Both tests are with a Godi installed 3.11.1 ocaml.
Thanks
Matt
next reply other threads:[~2009-09-27 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-27 20:58 Matthieu Dubuget [this message]
2009-09-28 8:33 ` [Caml-list] " Olivier Andrieu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ABFD1F4.8080606@gmail.com \
--to=matthieu.dubuget@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).