libocelo

128 views
Skip to first unread message

Bharath Krishna

unread,
Sep 30, 2015, 5:18:35 PM9/30/15
to gpuocelot
After lots of errors and workarounds I finally ended up with this error. How to fix this?please help
---------------------------------------------
scons -Q install=true
Build rules for Ocelot....
Ocelot will be installed at /usr/local
config_h_build([".release_build/configure.h"], ["configure.h.in"])
g++ -o .release_build/OcelotConfig -L/usr/local/lib -lz -lpthread -ltinfo -ldl -lm .release_build/ocelot/tools/OcelotConfig.o -L/usr/lib -L/usr/local/lib -locelot -lboost_system -lboost_filesystem -lboost_thread -lGLEW -ldl -lrt -lpthread -lLLVMAsmParser -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
/usr/local/lib/libocelot.so: undefined reference to `setupterm'
/usr/local/lib/libocelot.so: undefined reference to `tigetnum'
/usr/local/lib/libocelot.so: undefined reference to `set_curterm'
/usr/local/lib/libocelot.so: undefined reference to `del_curterm'
collect2: error: ld returned 1 exit status
scons: *** [.release_build/OcelotConfig] Error 1
Build failed...

Andrew Kerr

unread,
Oct 1, 2015, 9:35:53 AM10/1/15
to gpuo...@googlegroups.com
It looks like there may be a dependency on libcurses. Try adding '-lcurses' to the g++ command building OcelotConfig.


--
You received this message because you are subscribed to the Google Groups "gpuocelot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gpuocelot+...@googlegroups.com.
To post to this group, send email to gpuo...@googlegroups.com.
Visit this group at http://groups.google.com/group/gpuocelot.
For more options, visit https://groups.google.com/d/optout.

Si Li

unread,
Oct 1, 2015, 9:36:57 AM10/1/15
to gpuocelot
It looks like a mismatch in llvm version where they changed the capitalization of some functions. The easiest change is to change the capitalization of those undefined references in ocelot.

Andrew L

unread,
Oct 15, 2015, 10:11:35 AM10/15/15
to gpuocelot
I edited Ocelot/Sconscript to add ['-ltinfo'] to ocelot_libs based on this StackOverflow post
Reply all
Reply to author
Forward
0 new messages