-
Notifications
You must be signed in to change notification settings - Fork 234
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
Can't make guile example work #2
Comments
The "file not found" message is misleading. it's failing because of this: ldd -d libsmob.so
so why does scheme depend on PythonEval? |
partial work-around for bug opencog#2
try again, there was a constellation of bugs, mostly install and python init issues, that I fixed over the last week. |
It is fixed. |
I've built atomspace with nix package manager and when trying to follow the |
The easeist work-around would be to just say The unit tests can be run without install; special efforts were made to assure that. I'm not surprised that the examples won't work, without install. |
@linas yes I've done For example, to make the atomspace build pass I've had to patch function buildPhase() {
sed -i '1i INCLUDE_DIRECTORIES(${GMP_INCLUDE_DIR})' ../opencog/**/CMakeLists.txt
cmake \
-DCMAKE_PREFIX_PATH:PATH="$GMP_LIBRARY;$GMP_INCLUDE_DIR;$GUILE_LIBRARY;$GUILE_INCLUDE_DIR" \
-DCMAKE_INSTALL_PREFIX:PATH=$out ..
make
}
function installPhase() {
make install
cd ..
mv build $build
} If I understand correctly, opencog.scm#L33 should I did provide that path: shellHook = ''
export LTDL_LIBRARY_PATH="${atomspace_build}/opencog/guile" # has libsmob.so
guile -L ${atomspace_src}/opencog/scm # has opencog.scm
''; But am still getting the error Can you explain more about how you concluded this:
? I'm looking for a way to do similar debug to pinpoint the root of the issue and make appropriate patch for |
This seems to have been fixed; it no longer occurs for me. "file not found" is a standard error string, returned by "In procedure" is something that guile is printing; I'm now searching through the guile source to see where ... it seems to show up in "dynamic-link" would be another guile string (giveaway: no one else uses dashes in names) and it seems to be defined in Now: here's the only part I don't understand: |
anyway, this should be a distinct issue, instead of piggy-backing on an old closed issue. |
One possible way of debugging might be this: create a very short C file, and see what happens:
If this prints "aok", then I'm stumped. As I read |
p.s I'm now reading Eelco Dolstra's PhD thesis -- its pretty exciting, so thanks for that reference! I'd never quite understood what this was about, before. |
This helped me solve an obscure linker bug in Mac OS. Thank you! |
I'm trying to follow what is described in
but I'm getting the following error
The text was updated successfully, but these errors were encountered: