Debian Bug report logs - #642835
sexplib310: FTBFS: E: Command /usr/bin/ocamlbuild terminated with error code 10

version graph

Package: ocamlbuild; Maintainer for ocamlbuild is Debian OCaml Maintainers <[email protected]>; Source for ocamlbuild is src:ocamlbuild (PTS, buildd, popcon).

Affects: src:bin-prot, src:sexplib310

Reported by: Mònica Ramírez Arceda <[email protected]>

Date: Sun, 25 Sep 2011 11:18:02 UTC

Severity: important

Tags: upstream

Merged with 642706

Found in version 0.10.1-1

Blocking fix for 436466: dash: Please optimise single command given to -c to exec it, 604993: dash as /bin/sh causes $PPID to be wrong in child when invoked via system() call

Forwarded to https://github.com/ocaml/ocamlbuild/issues/164

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 25 Sep 2011 11:18:10 GMT) (full text, mbox, link).


Acknowledgement sent to Mònica Ramírez Arceda <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 25 Sep 2011 11:18:14 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Mònica Ramírez Arceda <[email protected]>
To: [email protected]
Subject: sexplib310: FTBFS: E: Command /usr/bin/ocamlbuild terminated with error code 10
Date: Sun, 25 Sep 2011 13:11:37 +0200
Source: sexplib310
Version: 5.2.1-1
Severity: serious
Tags: wheezy sid
User: [email protected]
Usertags: qa-ftbfs-20110923 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> make[1]: Entering directory `/build/sexplib310-thKNHg/sexplib310-5.2.1'
> ocaml setup.ml -build
> I: Running command '/usr/bin/ocamlbuild lib/sexplib.cma lib/sexplib.cmxa lib/sexplib.a syntax/pa_sexp_conv.cma lib_test/conv_test.byte -tag debug'
> /usr/bin/ocamlopt -I /usr/lib/ocaml/ocamlbuild unix.cmxa /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
> ocamlfind ocamldep -package unix -package num -package bigarray -modules lib/type.ml > lib/type.ml.depends
> /usr/bin/ocamlyacc lib/parser.mly
> ocamlfind ocamldep -package unix -package num -package bigarray -modules lib/parser.mli > lib/parser.mli.depends
> ocamlfind ocamlc -c -g -package unix -package num -package bigarray -I lib -I syntax -o lib/type.cmo lib/type.ml
> ocamlfind ocamlc -c -g -package unix -package num -package bigarray -I lib -I syntax -o lib/parser.cmi lib/parser.mli
> ocamlfind ocamldep -package unix -package num -package bigarray -modules lib/parser.ml > lib/parser.ml.depends
> /usr/bin/ocamllex -q lib/lexer.mll
> ocamlfind ocamldep -package unix -package num -package bigarray -modules lib/lexer.ml > lib/lexer.ml.depends
> ocamlfind ocamldep -package unix -package num -package bigarray -pp cpp -modules lib/pre_sexp.ml > lib/pre_sexp.ml.depends
> + ocamlfind ocamldep -package unix -package num -package bigarray -pp cpp -modules lib/pre_sexp.ml > lib/pre_sexp.ml.depends
> Command exited with code 2.
> E: Command '/usr/bin/ocamlbuild lib/sexplib.cma lib/sexplib.cmxa lib/sexplib.a syntax/pa_sexp_conv.cma lib_test/conv_test.byte -tag debug' terminated with error code 10
> make[1]: *** [override_dh_auto_build] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/09/23/sexplib310_5.2.1-1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.




Information forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 25 Sep 2011 13:42:05 GMT) (full text, mbox, link).


Acknowledgement sent to Stéphane Glondu <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 25 Sep 2011 13:42:06 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Stéphane Glondu <[email protected]>
To: [email protected]
Cc: [email protected], Mònica Ramírez Arceda <[email protected]>
Subject: Re: Bug#642706: bin-prot: FTBFS: Command '/usr/bin/ocamlbuild syntax/pa_bin_prot.cma syntax/pa_bin_prot.cmxa syntax/pa_bin_prot.a lib/libbin_prot.a lib/dllbin_prot.so lib/bin_prot.cma lib/bin_prot.cmxa lib/bin_prot.a lib_test/test_runner.native -tag debug' terminated with error code 10
Date: Sun, 25 Sep 2011 15:38:06 +0200
Le 25/09/2011 00:00, Eric Cooper a écrit :
> I get the same error.  Here's what I did to reproduce it.
> 
> $ apt-get source libbin-prot-camlp4-dev
> $ cd bin-prot-1.3.1/
> $ DIST=sid ARCH=amd64 git-pbuilder update
> $ pdebuild --pbuilder cowbuilder -- --basepath /var/cache/pbuilder/base-sid-amd64.cow

Well... this is very strange. The same steps (except that my chroot is
in /var/cache/pbuilder/base.cow) do not produce any error on amd64. But
I get the error on i386 and armel.

Same symptoms with bug #642835. Investigating...


Cheers,

-- 
Stéphane





Information forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 25 Sep 2011 16:06:10 GMT) (full text, mbox, link).


Acknowledgement sent to Stéphane Glondu <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 25 Sep 2011 16:06:10 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Stéphane Glondu <[email protected]>
To: [email protected]
Cc: [email protected], Mònica Ramírez Arceda <[email protected]>, [email protected]
Subject: Re: Bug#642706: bin-prot: FTBFS: Command '/usr/bin/ocamlbuild syntax/pa_bin_prot.cma syntax/pa_bin_prot.cmxa syntax/pa_bin_prot.a lib/libbin_prot.a lib/dllbin_prot.so lib/bin_prot.cma lib/bin_prot.cmxa lib/bin_prot.a lib_test/test_runner.native -tag debug' terminated with error code 10
Date: Sun, 25 Sep 2011 17:59:30 +0200
tags 642706 - unreproducible
thanks

Le 25/09/2011 15:38, Stéphane Glondu a écrit :
>> I get the same error.  Here's what I did to reproduce it.
>>
>> $ apt-get source libbin-prot-camlp4-dev
>> $ cd bin-prot-1.3.1/
>> $ DIST=sid ARCH=amd64 git-pbuilder update
>> $ pdebuild --pbuilder cowbuilder -- --basepath /var/cache/pbuilder/base-sid-amd64.cow
> 
> Well... this is very strange. The same steps (except that my chroot is
> in /var/cache/pbuilder/base.cow) do not produce any error on amd64. But
> I get the error on i386 and armel.

In my amd64 sid chroot, /bin/sh was symlinked to bash. After linking it
to dash, I can reproduce the error. The error disappears if I downgrade
dash to 0.5.5.1-7.4. I'm not yet sure who's to blame here... I'm putting
dash maintainers in the loop.


Cheers,

-- 
Stéphane





Information forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 25 Sep 2011 17:45:48 GMT) (full text, mbox, link).


Acknowledgement sent to Stéphane Glondu <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 25 Sep 2011 17:45:48 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Stéphane Glondu <[email protected]>
To: [email protected]
Cc: Jonathan Nieder <[email protected]>, [email protected], [email protected]
Subject: Re: Bug#642922: regression: "sh -c" change causes FTBFS
Date: Sun, 25 Sep 2011 19:41:30 +0200
block 642835 by 642922
block 642706 by 642922
severity 642922 serious
thanks

Le 25/09/2011 19:28, Stéphane Glondu a écrit :
> Bugs #642706 (bin-prot FTBFS) and #642835 (sexplib310 FTBFS) can be
> fixed by reverting the patch submitted at [1]. I don't understand why.
> 
> [1] http://thread.gmane.org/gmane.comp.shells.dash/556
> 
> While investigating #642706, in the failing case, I observed that a
> cpp process called with "sh -c" gets SIGPIPE while writing to
> stderr. In the succeeding case, the write is successful, and is read
> by the ocamlbuild process that started "sh -c cpp ...".

Raising severity, since it blocks serious bugs.


Cheers,

-- 
Stéphane





Added blocking bug(s) of 642835: 642922 Request was from Stéphane Glondu <[email protected]> to [email protected]. (Sun, 25 Sep 2011 17:45:52 GMT) (full text, mbox, link).


Information forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 25 Sep 2011 18:43:20 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 25 Sep 2011 18:43:20 GMT) (full text, mbox, link).


Message #27 received at [email protected] (full text, mbox, reply):

From: Jonathan Nieder <[email protected]>
To: Stéphane Glondu <[email protected]>
Cc: [email protected], [email protected], [email protected]
Subject: Re: regression: "sh -c" change causes FTBFS
Date: Sun, 25 Sep 2011 13:39:44 -0500
severity 642922 important
quit

Stéphane Glondu wrote:
> Le 25/09/2011 19:28, Stéphane Glondu a écrit :

>> Bugs #642706 (bin-prot FTBFS) and #642835 (sexplib310 FTBFS) can be
>> fixed by reverting the patch submitted at [1]. I don't understand why.
>>
>> [1] http://thread.gmane.org/gmane.comp.shells.dash/556
[...]
> Raising severity, since it blocks serious bugs.

Thanks for letting me know.  This is important (and a regression), but
it should be possible to work around in ocamlbuild as easily as using
"bash", so I don't see why that would make it release-critical.

I'll investigate further to see if the underlying problem is an
assumption in the relevant scripts that would be violated by ksh93,
too, or just a dash bug.

Thanks,
Jonathan




Information forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 16 Oct 2011 11:09:48 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 16 Oct 2011 11:10:16 GMT) (full text, mbox, link).


Message #32 received at [email protected] (full text, mbox, reply):

From: Jonathan Nieder <[email protected]>
To: [email protected]
Cc: Stéphane Glondu <[email protected]>, [email protected]
Subject: Re: bin-prot: FTBFS: Command '/usr/bin/ocamlbuild syntax/pa_bin_prot.cma syntax/pa_bin_prot.cmxa syntax/pa_bin_prot.a lib/libbin_prot.a lib/dllbin_prot.so lib/bin_prot.cma lib/bin_prot.cmxa lib/bin_prot.a lib_test/test_runner.native -tag debug' terminated with error code 10
Date: Sun, 16 Oct 2011 06:04:42 -0500
Hi,

Mònica Ramírez Arceda wrote:

> During a rebuild of all packages in sid, your package failed to build on
> amd64.
[...]
>> + ocamlfind ocamldep -pp 'cpp -DARCH_SIXTYFOUR' -package unix -package bigarray -modules lib/unsafe_read_c.mli > lib/unsafe_read_c.mli.depends
>> Command exited with code 2.
>> E: Command '/usr/bin/ocamlbuild syntax/pa_bin_prot.cma syntax/pa_bin_prot.cmxa syntax/pa_bin_prot.a lib/libbin_prot.a lib/dllbin_prot.so lib/bin_prot.cma lib/bin_prot.cmxa lib/bin_prot.a lib_test/test_runner.native -tag debug' terminated with error code 10

Thanks again for all your work in tracking these down!  I assume
bin-prot/sid and sexplib310 build correctly again against dash
0.5.7-2.

So what should be done with these bugs?  I am tempted to say:

 - lower severity to important, since we have a workaround
 - reassign to current ocaml-nox
 - merge and mark as forwarded to
   http://caml.inria.fr/mantis/view.php?id=5371

Does that sound reasonable?

Jonathan
who is looking forward to having a few fewer RC bugs on his radar :)




Information forwarded to [email protected], Debian OCaml Maintainers <[email protected]>:
Bug#642835; Package src:sexplib310. (Sun, 16 Oct 2011 13:00:19 GMT) (full text, mbox, link).


Acknowledgement sent to Stéphane Glondu <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <[email protected]>. (Sun, 16 Oct 2011 13:00:24 GMT) (full text, mbox, link).


Message #37 received at [email protected] (full text, mbox, reply):

From: Stéphane Glondu <[email protected]>
To: Jonathan Nieder <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: bin-prot: FTBFS: Command '/usr/bin/ocamlbuild syntax/pa_bin_prot.cma syntax/pa_bin_prot.cmxa syntax/pa_bin_prot.a lib/libbin_prot.a lib/dllbin_prot.so lib/bin_prot.cma lib/bin_prot.cmxa lib/bin_prot.a lib_test/test_runner.native -tag debug' terminated with error code 10
Date: Sun, 16 Oct 2011 14:07:11 +0200
merge 642706 642835
severity 642706 important
reassign 642706 ocaml-nox
found 642706 3.12.0-7
retitle 642706 ocamlbuild: questionable job control
forwarded 642706 http://caml.inria.fr/mantis/view.php?id=5371
affects 642706 src:bin-prot src:sexplib310
thanks

Le 16/10/2011 13:04, Jonathan Nieder a écrit :
> So what should be done with these bugs?  I am tempted to say:
> 
>  - lower severity to important, since we have a workaround
>  - reassign to current ocaml-nox
>  - merge and mark as forwarded to
>    http://caml.inria.fr/mantis/view.php?id=5371
> 
> Does that sound reasonable?

Agreed.


-- 
Stéphane





Bug reassigned from package 'src:sexplib310' to 'ocaml-nox'. Request was from Stéphane Glondu <[email protected]> to [email protected]. (Sun, 16 Oct 2011 13:39:14 GMT) (full text, mbox, link).


Bug No longer marked as found in versions sexplib310/5.2.1-1. Request was from Stéphane Glondu <[email protected]> to [email protected]. (Sun, 16 Oct 2011 13:39:15 GMT) (full text, mbox, link).


Forcibly Merged 642706 642835. Request was from Stéphane Glondu <[email protected]> to [email protected]. (Sun, 16 Oct 2011 16:48:09 GMT) (full text, mbox, link).


Added tag(s) upstream; removed tag(s) sid and wheezy. Request was from Jonathan Nieder <[email protected]> to [email protected]. (Sun, 27 Nov 2011 01:48:04 GMT) (full text, mbox, link).


Added indication that bug 642835 blocks 436466,604993 Request was from Jonathan Nieder <[email protected]> to [email protected]. (Sun, 27 Nov 2011 01:48:16 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from [email protected] to [email protected]. (Thu, 02 Mar 2017 17:45:28 GMT) (full text, mbox, link).


Bug reassigned from package 'ocaml-nox' to 'ocamlbuild'. Request was from Ximin Luo <[email protected]> to [email protected]. (Sat, 04 Mar 2017 15:51:07 GMT) (full text, mbox, link).


No longer marked as found in versions ocaml/3.12.0-7. Request was from Ximin Luo <[email protected]> to [email protected]. (Sat, 04 Mar 2017 15:51:07 GMT) (full text, mbox, link).


Marked as found in versions 0.10.1-1. Request was from Ximin Luo <[email protected]> to [email protected]. (Sat, 04 Mar 2017 15:51:08 GMT) (full text, mbox, link).


Removed tag(s) fixed-upstream. Request was from Ximin Luo <[email protected]> to [email protected]. (Sat, 04 Mar 2017 15:51:10 GMT) (full text, mbox, link).


Changed Bug forwarded-to-address to 'https://github.com/ocaml/ocamlbuild/issues/164' from 'http://caml.inria.fr/mantis/view.php?id=5371'. Request was from Ximin Luo <[email protected]> to [email protected]. (Sat, 04 Mar 2017 15:51:12 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 15:45:30 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.