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

Doesn't do recursive searches #28

Open
Immortalin opened this issue Jul 21, 2016 · 0 comments
Open

Doesn't do recursive searches #28

Immortalin opened this issue Jul 21, 2016 · 0 comments

Comments

@Immortalin
Copy link

Immortalin commented Jul 21, 2016

When I tried to #include headers under the following path: /usr/include/guile/2.0, I received the following error:

libguile.2.0.h not found in:
./
/usr/lib/gcc/x86_64-linux-gnu/5/include/
/usr/local/include/
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/
/usr/include/x86_64-linux-gnu/
/usr/include/
/usr/lib/gcc/x86_64-linux-gnu/5/include/
/usr/local/include/
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/
/usr/include/x86_64-linux-gnu/
/usr/include/
 at 
stack traceback:
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:61: in function 'search_header_file'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:67: in function 'compileFile'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:828: in function 'processLine'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:817: in function '_doWork'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:824: in function </usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:824>
stack traceback:
    [C]: in function '(for generator)'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:1538: in function 'compile'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:290: in function 'parse'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:310: in function 'cdef'
    stdin:1: in main chunk
    [C]: at 0x00404790

This was fixed by explicitly including the path i.e. ffi.cdef("#include <guile/2.0/libguile.h>"), however, this gives the following error:

/usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:1538: /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:1538: /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:61: libguile/__scm.h not found in:
./
/usr/lib/gcc/x86_64-linux-gnu/5/include/
/usr/local/include/
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/
/usr/include/x86_64-linux-gnu/
/usr/include/
/usr/lib/gcc/x86_64-linux-gnu/5/include/
/usr/local/include/
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/
/usr/include/x86_64-linux-gnu/
/usr/include/
 at 
stack traceback:
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:61: in function 'search_header_file'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:67: in function 'compileFile'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:828: in function 'processLine'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:817: in function '_doWork'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:824: in function </usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:824>
stack traceback:
    [C]: in function '(for generator)'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/lcpp.lua:1538: in function 'compile'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:290: in function 'parse'
    /usr/local/share/luajit-2.1.0-beta1/ffiex/init.lua:310: in function 'cdef'
    stdin:1: in mhttps://www.gnu.org/software/guile/docs/guile-tut/tutorial.htmlain chunk
    [C]: at 0x00404790

__scm.h is a header linked in the libguile.h header file. Reference: https://www.gnu.org/software/guile/docs/guile-tut/tutorial.html

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

1 participant