Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Stéphane Glondu" <steph@glondu.net>
To: OCaml mailing list <caml-list@inria.fr>
Subject: [Caml-list] Options -c and -o are incompatible when compiling C files
Date: Tue, 18 Jul 2017 14:22:17 +0200	[thread overview]
Message-ID: <546b87d1-9f90-684a-b048-c8ffb279ff7b@glondu.net> (raw)

Hello,

kalzium (in Debian) fails to build with ocaml 4.05.0 because of the 
following error:
> [ 55%] Generating modwrap.o
> cd /tmp/kalzium-16.08.3/obj-x86_64-linux-gnu/src && /usr/bin/ocamlopt -I /usr/lib/ocaml/facile -c /tmp/kalzium-16.08.3/src/solver/modwrap.c -o /tmp/kalzium-16.08.3/obj-x86_64-linux-gnu/src/modwrap.o
> Options -c and -o are incompatible when compiling C files
> src/CMakeFiles/kalzium.dir/build.make:107: recipe for target 'src/modwrap.o' failed
> make[4]: *** [src/modwrap.o] Error 2
> make[4]: Leaving directory '/tmp/kalzium-16.08.3/obj-x86_64-linux-gnu'
> CMakeFiles/Makefile2:305: recipe for target 'src/CMakeFiles/kalzium.dir/all' failed
> make[3]: *** [src/CMakeFiles/kalzium.dir/all] Error 2

I am surprised by this error message: what is the rationale?

Investigating this, I bumped into:

   https://github.com/ocaml/ocaml/pull/761

Fabrice says: "In 4.04.0+beta1, ocamlc -c test.c -o subdir/test.o does 
not produce subdir/test.o but test.o.". But in ocaml 4.02.3, -c and -o 
used to work properly together (kalzium was building successfully). This 
looks like a regression to me.

-- 
Stéphane

                 reply	other threads:[~2017-07-18 12:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=546b87d1-9f90-684a-b048-c8ffb279ff7b@glondu.net \
    --to=steph@glondu.net \
    --cc=caml-list@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