caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Options -c and -o are incompatible when compiling C files
@ 2017-07-18 12:22 Stéphane Glondu
  0 siblings, 0 replies; only message in thread
From: Stéphane Glondu @ 2017-07-18 12:22 UTC (permalink / raw)
  To: OCaml mailing list

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-18 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 12:22 [Caml-list] Options -c and -o are incompatible when compiling C files Stéphane Glondu

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).