freenode/#clasp - IRC Chatlog
Search
0:42:16
yitzi
drmeister: yitzchak/cando-clj:latest has fixed AMBERHOME. Updated dockerfile at https://github.com/yitzchak/cando-clj/blob/master/Dockerfile
1:22:00
merelystudent
Hi, I've been having the darnedest time getting demo-clasp-cxx-interoperation to run. I keep getting this:
1:22:16
merelystudent
Starting cclasp-boehm-0.4.2-2691-g4ea747326-cst ... loading image...JIT session error: Symbols not found: { _ZTH19my_thread_low_level, __emutls_v.my_thread_low_level }../../src/llvmo/llvmoExpose.cc:4374 could not find symbolCondition of type: SIMPLE-PROGRAM-ERRORCould not find function hello_world_startupNo restarts available.
1:25:07
merelystudent
export LLVM_CONFIG_PATH = /usr/bin/llvm-config-9export CLASP_HOME = /home/hsdl/src/lisp/clasp/export CLASP_RUNTIME = boehmexport GC_INCLUDE = /opt/clasp-support/include/export GMP_INCLUDE = /home/hsdl/apps/gmp-6.2.0/include/export BOOST_INCLUDE = /usr/include/boost/
1:32:28
merelystudent
I'm happy to try again on any Linux distribution, as long as I can see an example clasp/C++ interop working. I'm very excited about your project!
1:36:25
drmeister
Can you capture the output of make test and put it on gist.github.com and post it?
1:41:47
drmeister
I got this working on linux a couple of weeks ago. I don't understand why it's not running.
1:42:10
drmeister
Starting up clasp within hello-world and then evaluating each line to figure out where it fails would be a good idea.
1:44:28
merelystudent
I also followed these instructions: https://github.com/clasp-developers/clasp/wiki/Road-to-clasp-with-lvm@9
1:56:32
merelystudent
Ok, no worries. I will keep trying. I've watched all your videos about CANDO and Clasp, and it's gotten me very excited about Lisp again. I started learning about the language many years ago, but lost interest, until now.
1:57:33
merelystudent
Whatever instructions you can recommend to get a running example going, I will be happy to try.
1:58:07
merelystudent
If it makes a difference, I've been using Virtualbox. The Clasp build took 5 hours, but that's expected. Whatever OS and version you recommend, I can try again with it
1:58:50
drmeister
Well, right now my linux box is dead - I have no idea why - it's kind of distracting.
1:59:34
drmeister
I'll try running the demo on macOS once I build my system again. It'll be about 45 min.
2:55:05
merelystudent
I assume "/usr/local/Cellar/bdw-gc/8.0.4/include/" is that created by your compilation of https://github.com/clasp-developers/clasp-boehm ?
3:01:00
merelystudent
I think I will try it again on macOS, but using High Sierra. I will be sure to pop in again whether it succeeds or fails.Thank you very much for your time! :-)
3:01:40
merelystudent
FYI, would you mind showing what warnings you get when you do "make clean; make"?
7:57:14
kpoeck
::notify merelystudent the missing symbol is defined here: https://github.com/clasp-developers/clasp/blob/master/src/gctools/threadlocal.cc#L18
7:59:03
kpoeck
::notify merelystudent So I wonder whether these 2 line should go to the header file merelystudent (and I forgot to tell you than while the demo works on macosx I get the same error on Ubuntu (and I believe selwyn as well)
11:16:21
merelystudent
@kpoeck, thank you. Which header file do you think they should go to? Plus, I notice that my_thread_low_level is not even used in threadlocal.cc
11:16:21
Colleen
merelystudent: kpoeck said 3 hours, 19 minutes ago: Your local config on linux is fine
11:16:21
Colleen
merelystudent: kpoeck said 3 hours, 19 minutes ago: the missing symbol is defined here: https://github.com/clasp-developers/clasp/blob/master/src/gctools/threadlocal.cc#L18
11:16:21
Colleen
merelystudent: kpoeck said 3 hours, 17 minutes ago: So I wonder whether these 2 line should go to the header file merelystudent (and I forgot to tell you than while the demo works on macosx I get the same error on Ubuntu (and I believe selwyn as well)
11:18:41
merelystudent
@kpoeck, nvm about my comment about threadlocal.cc not using it. This makes a stronger case for it to be in a header file
11:41:47
Bike
you shouldn't copy those lines out of threadlocal.cc into a header. in a header they should probably have extern
11:42:05
Bike
the declaration of my_thread seems to be in memoryManagement.h instead of threadlocal.fwd.h? bizarre
12:09:42
kpoeck
it compiles fine, but at startup says (copying this from irc) error: Symbols not found: { _ZTH19my_thread_low_level, __emutls_v.my_thread_low_level }
12:10:20
kpoeck
In memoryManagement.h there is extern THREAD_LOCAL core::ThreadLocalState *my_thread;
12:11:45
Bike
a linker error won't be solved by putting things in headers. but i don't know why definitions from threadlocal.cc wouldn't be around