Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile test files on Linux #110

Open
samsapti opened this issue Feb 10, 2023 · 1 comment
Open

Unable to compile test files on Linux #110

samsapti opened this issue Feb 10, 2023 · 1 comment

Comments

@samsapti
Copy link

samsapti commented Feb 10, 2023

I'm unable to compile Oblic-C files on Linux. I receive the following error:

$ cd test/oblivc/editdist/
$ ../../../bin/oblivcc -c editdist.c editdist.oc -I .
/usr/include/stdlib.h:565:12: error: 'reallocarray' undeclared here (not in a function)
  565 |      __attribute_alloc_size__ ((2, 3))
      |            ^~~~~~~~~~~~

I tested this on Fedora 36 and additionally in an Ubuntu Docker image by following the instructions in README.md. I'm using GCC version 11.3.0 in the Ubuntu image and 12.2.1 on Fedora, and OCaml version 4.06.0.

Compilation of Obliv-C itself works fine on both platforms, no errors thrown by Make.

(Also, I figured out how to install this on Fedora 36 :D)

@mcocartsy
Copy link

Hi @samsapti have you ever solved this? I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants