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

fixed gcc flags for caml sublibrary #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pveber
Copy link

@pveber pveber commented Sep 14, 2020

I had the following compilation error:

$dune build
         gcc src/caml/struct_stubs.o (exit 1)
(cd _build/default/src/caml && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -fno-strict-aliasing -fwrapv -fPIC -Wall -pedantic -Wextra -Wunused -Werror -Wno-long-long -g -I /home/pveber/.opam/4.11.1/lib/ocaml -I /home/pveber/.opam/4.11.1/lib/base -I /home/pveber/.opam/4.11.1/lib/base/base_internalhash_types -I /home/pveber/.opam/4.11.1/lib/base/caml -I /home/pveber/.opam/4.11.1/lib/base/shadow_stdlib -I /home/pveber/.opam/4.11.1/lib/jane-street-headers -I /home/pveber/.opam/4.11.1/lib/ppx_compare/runtime-lib -I /home/pveber/.opam/4.11.1/lib/ppx_enumerate/runtime-lib -I /home/pveber/.opam/4.11.1/lib/ppx_hash/runtime-lib -I /home/pveber/.opam/4.11.1/lib/ppx_inline_test/config -I /home/pveber/.opam/4.11.1/lib/ppx_inline_test/runtime-lib -I /home/pveber/.opam/4.11.1/lib/ppx_sexp_conv/runtime-lib -I /home/pveber/.opam/4.11.1/lib/sexplib0 -I /home/pveber/.opam/4.11.1/lib/time_now -I ../raw -o struct_stubs.o -c struct_stubs.c)
In file included from struct_stubs.c:11:
../raw/hdf5_caml.h:2:10: fatal error: hdf5.h: Aucun fichier ou dossier de ce type
    2 | #include "hdf5.h"
      |          ^~~~~~~~

This patch adds the -I gcc flag that is generated in the raw directory.

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

Successfully merging this pull request may close these issues.

1 participant