Giter VIP home page Giter VIP logo

Comments (8)

istana avatar istana commented on August 15, 2024

I was just able to run it. You need to build graph data first. For some reason scheck requires working directory to be the source code of the target. This should work:

mkdir ~/pfff_output
cd ~/phpsource
~/pfff/codegraph -lang php -derived_data -o ~/pfff_output/ -build ~/phpsource
~/pfff/scheck -lang php -with_graph_code ~/pfff_output/graph_code.marshall ~/phpsource

from pfff.

ScottAtGithub avatar ScottAtGithub commented on August 15, 2024

I was able to build pfff yesterday but codegraph was not there, so I downloaded and installed softwares/plugins like gtk but was failed in building pfff (ml_glib.c:165:3: error: use of undeclared identifier 'caml__frame').

Let me try to see if I can fix it. Thank you very much anyway!

from pfff.

istana avatar istana commented on August 15, 2024

that's interesting, I used install_macos.txt guide

from pfff.

sarcastron avatar sarcastron commented on August 15, 2024

I am also having issues compiling on OS X Sierra.

ml_glib.c:165:3: error: use of undeclared identifier 'caml__frame'

from pfff.

maxbeutel avatar maxbeutel commented on August 15, 2024

Same for me, but on OS X El Capitan.

I followed the build instructions in install_macos.txt, make then dies with

ml_glib.c:165:3: error: use of undeclared identifier 'caml__frame'
  CAMLlocal2(b, msg);
  ^
/usr/local/lib/ocaml/caml/memory.h:309:3: note: expanded from macro 'CAMLlocal2'
  CAMLxparam2 (x, y)
  ^
/usr/local/lib/ocaml/caml/memory.h:236:12: note: expanded from macro 'CAMLxparam2'
    (void) caml__frame, \
           ^
ml_glib.c:348:11: warning: 'g_io_channel_read' is deprecated [-Wdeprecated-declarations]
  switch (g_io_channel_read(GIOChannel_val(io),
          ^
/usr/local/Cellar/glib/2.50.2/include/glib-2.0/glib/giochannel.h:166:13: note: 'g_io_channel_read' has been explicitly marked deprecated here
GIOError    g_io_channel_read   (GIOChannel    *channel,
            ^
1 warning and 1 error generated.
make[3]: *** [ml_glib.o] Error 2
make[2]: *** [all] Error 2
make[1]: *** [rec] Error 2
make: *** [all] Error 2```

Edit: This should probably be reported as a separate issue I suppose?

from pfff.

winnerineast avatar winnerineast commented on August 15, 2024

@maxbeutel I encountered the same error in macOS Sierra.

from pfff.

istana avatar istana commented on August 15, 2024

me too, but I'm not sure how to fix it

from pfff.

petitchevalroux avatar petitchevalroux commented on August 15, 2024

It's seems to be related to ocaml 4.04. The same issue (facebook/hhvm#7560) exists in hhvm.

Workarounds :

  1. Downgrade ocaml facebook/hhvm#7560 (comment)
  2. Use this commit (at your own risks xD) petitchevalroux@10a3991 based from
    facebook/hhvm@28eefc4

from pfff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.