[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#973181: camljava: FTBFS: Please specify at most one of -pack, -a, -c, -output-obj



Source: camljava
Version: 0.3-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>/lib'
> rm -f jni.ml
> sed -e 's|%PATH%|'`ocamlc -where`/camljava/camljava.jar'|' \
>                 jni.mlp > jni.ml
> chmod -w jni.ml
> ocamlc -g -c jni.mli
> ocamlc -g -c jni.ml
> gcc -c -O -g -Wall -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I`ocamlc -where` jnistubs.c
> jnistubs.c: In function ‘check_java_exception’:
> jnistubs.c:99:32: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>    99 |       camljava_raise_exception = caml_named_value("camljava_raise_exception");
>       |                                ^
> jnistubs.c: In function ‘check_non_null’:
> jnistubs.c:114:27: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   114 |     camljava_null_pointer = caml_named_value("camljava_null_pointer");
>       |                           ^
> In file included from jnistubs.c:4:
> jnistubs.c: In function ‘extract_java_string’:
> /usr/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   265 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> jnistubs.c:546:10: note: in expansion of macro ‘String_val’
>   546 |   memcpy(String_val(res), chrs, len);
>       |          ^~~~~~~~~~
> In file included from jnistubs.c:2:
> /usr/include/string.h:43:39: note: expected ‘void * restrict’ but argument is of type ‘const char *’
>    43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
>       |                      ~~~~~~~~~~~~~~~~~^~~~~~
> rm -f libcamljni.a
> ar rcs libcamljni.a jnistubs.o
> ocamlc -g -linkall -a -o jni.cma -custom jni.cmo \
>             -ccopt "-L/usr/lib/jvm/default-java/jre/lib// -L/usr/lib/jvm/default-java/jre/lib//server -Wl,-rpath,/usr/lib/jvm/default-java/jre/lib// -Wl,-rpath,/usr/lib/jvm/default-java/jre/lib//server -Wl,-rpath,/usr/lib/jvm/default-java/jre/lib//native_threads" -cclib -lcamljni -cclib "-ljvm"
> Please specify at most one of -pack, -a, -c, -output-obj
> make[3]: *** [Makefile:18: jni.cma] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/camljava_0.3-3_unstable.log

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 EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.


Reply to: