{"action":"created","issue":{"url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/95","repository_url":"https://api.github.com/repos/mirage/ocaml-cstruct","labels_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/95/comments","events_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/95/events","html_url":"https://github.com/mirage/ocaml-cstruct/pull/95","id":140397063,"number":95,"title":"Remove camlp4: from now on we're ppx only","user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-12T16:30:46Z","updated_at":"2016-03-12T16:34:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/95","html_url":"https://github.com/mirage/ocaml-cstruct/pull/95","diff_url":"https://github.com/mirage/ocaml-cstruct/pull/95.diff","patch_url":"https://github.com/mirage/ocaml-cstruct/pull/95.patch"},"body":"Following discussion on #mirage today, the plan is to release a new\r\ncstruct with ppx only and fix the reverse dependencies.\r\n\r\nSigned-off-by: David Scott <dave.scott@docker.com>"},"comment":{"url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/comments/195769782","html_url":"https://github.com/mirage/ocaml-cstruct/pull/95#issuecomment-195769782","issue_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/95","id":195769782,"user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T16:34:08Z","updated_at":"2016-03-12T16:34:08Z","body":"Unfortunately this doesn't build and I don't know why. The error is:\r\n```\r\nFile \"ppx_test/basic.ml\", line 17, characters 3-10:\r\nUninterpreted extension 'cstruct'.\r\nCommand exited with code 2.\r\n```\r\nIf I run the ppx manually it looks ok:\r\n```\r\n$ ocamlc -dsource -ppx ./_build/ppx/ppx_cstruct.native ppx_test/basic.ml \r\nlet sizeof_foo = 15\r\nlet get_foo_a v = Cstruct.get_uint8 v 0\r\nlet set_foo_a v x = Cstruct.set_uint8 v 0 x\r\n...\r\n```\r\n\r\nIn the _oasis file I have:\r\n```\r\nExecutable test_ppx\r\n  Build$:       flag(tests) && flag(ppx)\r\n  Install:      false\r\n  Path:         ppx_test\r\n  Custom:       true\r\n  CompiledObject: best\r\n  BuildTools:   ppx_cstruct\r\n  BuildDepends: cstruct, unix, oUnit, cstruct.unix\r\n  MainIs:       tests.ml\r\n```\r\n-- I thought I just needed the `BuildTools`. Clearly my _oasis skills are not up to scratch.\r\n\r\nDoes anyone know what I'm doing wrong? This is my first use of ppx. /cc @samoht @hannesm :)"}}