Comments (8)
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.
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.
that's interesting, I used install_macos.txt guide
from pfff.
I am also having issues compiling on OS X Sierra.
ml_glib.c:165:3: error: use of undeclared identifier 'caml__frame'
from pfff.
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.
@maxbeutel I encountered the same error in macOS Sierra.
from pfff.
me too, but I'm not sure how to fix it
from pfff.
It's seems to be related to ocaml 4.04. The same issue (facebook/hhvm#7560) exists in hhvm.
Workarounds :
- Downgrade ocaml facebook/hhvm#7560 (comment)
- Use this commit (at your own risks xD) petitchevalroux@10a3991 based from
facebook/hhvm@28eefc4
from pfff.
Related Issues (20)
- failed to build on MacOSX 10.10 on file 'utils_js.cmi' HOT 1
- scheck complains about "No such file or directory" for php files being tested HOT 1
- make fails on mac OS X Yosemite HOT 3
- Codegraph unknown option -lang HOT 2
- Issue compiling within Homebrew formula HOT 2
- [spatch] Meta variables reformatted during patching HOT 6
- [sgrep] Support for parseable reports HOT 2
- zlibstubs.c:171:33: error: use of undeclared identifier 'uint32' HOT 8
- Trying to build on macOS 10.12 HOT 2
- OSX Yosemite 10.10.5 + make error HOT 5
- OSX Yosemite 10.10.5 + make error - php_vs_php.cmo HOT 2
- Error while running codegraph on Mac OS X 10.11.3 HOT 2
- No support for local variable in `codegraph`?
- OPAM installation failed HOT 1
- How command pfff output store in a file? HOT 2
- codegraph -lang java -build "path/to/source/code" error
- Can't build on Mac HOT 7
- [spatch] Replacing "||" doesn't work
- Fatal error: exception Common.Todo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pfff.