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

Get CompilerException when trying to load sysfs impl ns #4

Open
metasoarous opened this issue Nov 24, 2014 · 4 comments
Open

Get CompilerException when trying to load sysfs impl ns #4

metasoarous opened this issue Nov 24, 2014 · 4 comments
Labels

Comments

@metasoarous
Copy link
Member

I get the following:

user=> (require 'clj-bots.gpio.impl.sysfs)

CompilerException java.lang.RuntimeException: Unable to resolve symbol: when-err in this context, compiling:(net/n01se/clojure_jna/libc_utils.clj:58:5) 

Any idea what this might be related to? I'm wondering if this is what's keeping bonejure from compiling (it's complaining about not finding the impl.sysfs ns).

@zeroem
Copy link
Contributor

zeroem commented Nov 24, 2014

Not certain, I'll look into it tonight. Do you have libjna installed? It's required to use JNA.

@zeroem
Copy link
Contributor

zeroem commented Nov 24, 2014

Found the issue, there is definitely an error in the library, when-err is used without being imported or referred, See:

https://github.com/Chouser/clojure-jna/blob/master/src/net/n01se/clojure_jna/libc_utils.clj

@zeroem
Copy link
Contributor

zeroem commented Nov 24, 2014

AAAAnd there's already a PR to fix it: Chouser/clojure-jna#7

@metasoarous
Copy link
Member Author

Ah! Lovely. I actually didn't have jna installed... We'll have to make sure the project still loads and operates in non-JNA/sysfs mode if the user hasn't installed JNA. Again, looking at core.matrix may be instructive here, as one of the matrix implementations requires BLAS, though core.matrix operates fine without it given you stick to the other implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants