Skip to content

FTBFS on Arch Linux x86_64 #12

@Leonidas-from-XIV

Description

@Leonidas-from-XIV

I tried building core_extended.114.35+03 from Jane Street's OPAM repository. This fails when building some C code:

Running[9]: (cd _build/default/src && /home/marek/.opam/4.04.0/bin/ocamlc.opt -g -I /home/marek/.opam/4.04.0/lib/base -I /home/marek/.opam/4.04.0/lib/core -I /home/marek/.opam/4.04.0/lib/core_kernel -I /home/marek/.opam/4.04.0/lib/jane-street-headers -ccopt -g -o extended_unix_stubs.o extended_unix_stubs.c)

Command [9] exited with code 2:
$ (cd _build/default/src && /home/marek/.opam/4.04.0/bin/ocamlc.opt -g -I /home/marek/.opam/4.04.0/lib/base -I /home/marek/.opam/4.04.0/lib/core -I /home/marek/.opam/4.04.0/lib/core_kernel -I /home/marek/.opam/4.04.0/lib/jane-street-headers -ccopt -g -o extended_unix_stubs.o extended_unix_stubs.c)
extended_unix_stubs.c: In function ‘quota_query’:
extended_unix_stubs.c:107:15: warning: passing argument 1 of ‘quotactl’ makes integer from pointer without a cast [-Wint-conversion]
      quotactl((device), (cmd), (id), (parg))
               ^
extended_unix_stubs.c:156:7: note: in expansion of macro ‘quota_control’
   if (quota_control(String_val(v_path), cmd, id, (caddr_t)&quota))
       ^~~~~~~~~~~~~
In file included from extended_unix_stubs.c:19:0:
/usr/include/sys/quota.h:130:12: note: expected ‘int’ but argument is of type ‘char *’
 extern int quotactl (int __cmd, const char *__special, int __id,
            ^~~~~~~~
extended_unix_stubs.c:107:25: warning: passing argument 2 of ‘quotactl’ makes pointer from integer without a cast [-Wint-conversion]
      quotactl((device), (cmd), (id), (parg))
                         ^
extended_unix_stubs.c:156:7: note: in expansion of macro ‘quota_control’
   if (quota_control(String_val(v_path), cmd, id, (caddr_t)&quota))
       ^~~~~~~~~~~~~
In file included from extended_unix_stubs.c:19:0:
/usr/include/sys/quota.h:130:12: note: expected ‘const char *’ but argument is of type ‘int’
 extern int quotactl (int __cmd, const char *__special, int __id,
            ^~~~~~~~
extended_unix_stubs.c:109:43: error: ‘struct dqblk’ has no member named ‘dqb_curbytes’; did you mean ‘dqb_curinodes’?
 #  define QUOTA_SPACE_USED(quota) ((quota).dqb_curbytes)
                                           ^
extended_unix_stubs.c:159:55: note: in expansion of macro ‘QUOTA_SPACE_USED’
   bytes_used = QUOTA_BYTES_PER_SPACE_UNIT * (int64_t) QUOTA_SPACE_USED(quota);
                                                       ^~~~~~~~~~~~~~~~
extended_unix_stubs.c: In function ‘quota_modify’:
extended_unix_stubs.c:107:15: warning: passing argument 1 of ‘quotactl’ makes integer from pointer without a cast [-Wint-conversion]
      quotactl((device), (cmd), (id), (parg))
               ^
extended_unix_stubs.c:204:7: note: in expansion of macro ‘quota_control’
   if (quota_control(String_val(v_path), cmd, id, (caddr_t)&quota))
       ^~~~~~~~~~~~~
In file included from extended_unix_stubs.c:19:0:
/usr/include/sys/quota.h:130:12: note: expected ‘int’ but argument is of type ‘char *’
 extern int quotactl (int __cmd, const char *__special, int __id,
            ^~~~~~~~
extended_unix_stubs.c:107:25: warning: passing argument 2 of ‘quotactl’ makes pointer from integer without a cast [-Wint-conversion]
      quotactl((device), (cmd), (id), (parg))
                         ^
extended_unix_stubs.c:204:7: note: in expansion of macro ‘quota_control’
   if (quota_control(String_val(v_path), cmd, id, (caddr_t)&quota))
       ^~~~~~~~~~~~~
In file included from extended_unix_stubs.c:19:0:
/usr/include/sys/quota.h:130:12: note: expected ‘const char *’ but argument is of type ‘int’
 extern int quotactl (int __cmd, const char *__special, int __id,
            ^~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions