make error opencog (no lib logger.so)

54 views
Skip to first unread message

vishnup...@gmail.com

unread,
Sep 14, 2016, 10:41:53 AM9/14/16
to opencog
When i make opencog from build directory, it failed. Something went wrong with logger.so.   

Scanning dependencies of target combo-man
Scanning dependencies of target cogutil
Scanning dependencies of target blopex
Scanning dependencies of target json_spirit
[  1%] Generating eval-table.1.gz
[  3%] Building C object opencog/learning/clustering/blopex/CMakeFiles/blopex.dir/fortran_matrix.c.o
[  3%] Building CXX object lib/json_spirit/CMakeFiles/json_spirit.dir/json_spirit_reader.cpp.o
[  3%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/ansi.cc.o
[  3%] Built target combo-man
Scanning dependencies of target moses_exec
[  3%] Building CXX object opencog/learning/moses/main/CMakeFiles/moses_exec.dir/demo-problems.cc.o
[  3%] Building C object opencog/util/CMakeFiles/cogutil.dir/backtrace-symbols.c.o
[  3%] Building C object opencog/util/CMakeFiles/cogutil.dir/cluster.c.o
[  3%] Building C object opencog/learning/clustering/blopex/CMakeFiles/blopex.dir/lobpcg.c.o
[  3%] Building C object opencog/learning/clustering/blopex/CMakeFiles/blopex.dir/multivector.c.o
[  3%] Building C object opencog/learning/clustering/blopex/CMakeFiles/blopex.dir/temp_multivector.c.o
[  3%] Linking C shared library libblopex.so
[  3%] Built target blopex
Scanning dependencies of target ant_scoring
[  3%] Building CXX object opencog/learning/moses/example-ant/CMakeFiles/ant_scoring.dir/ant_scoring.cc.o
[  3%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/Config.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/exceptions.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/files.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/lazy_normal_selector.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/lazy_random_selector.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/lazy_selector.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/log_prog_name.cc.o
[  5%] Linking CXX static library libant_scoring.a
[  5%] Built target ant_scoring
Scanning dependencies of target moses-man
[  5%] Generating moses.1.gz
[  5%] Built target moses-man
Scanning dependencies of target feature-man
[  5%] Generating feature-selection.1.gz
[  5%] Built target feature-man
Scanning dependencies of target opencog_atom_types
[  5%] Generating opencog types
-- Atom type name: Notype
-- Atom type name: Atom
-- Atom type name: Node
-- Atom type name: Link
-- Atom type name: ConceptNode
-- Atom type name: NumberNode
-- Atom type name: OrderedLink
-- Atom type name: UnorderedLink
-- Atom type name: SetLink
-- Atom type name: ListLink
-- Atom type name: MemberLink
-- Atom type name: SubsetLink
-- Atom type name: AndLink
-- Atom type name: OrLink
-- Atom type name: NotLink
-- Atom type name: SequentialAndLink
-- Atom type name: AbsentLink
-- Atom type name: ContextLink
-- Atom type name: TypeNode
-- Atom type name: TypeChoice
-- Atom type name: VariableNode
-- Atom type name: TypedVariableLink
-- Atom type name: VariableList
-- Atom type name: QuoteLink
-- Atom type name: LambdaLink
-- Atom type name: DefineLink
-- Atom type name: BetaRedex
-- Atom type name: ConcreteLink
-- Atom type name: SatisfactionLink
-- Atom type name: BindLink
-- Custom atom type name specified: "ForAllLink"
-- Atom type name: ForAllLink
-- Atom type name: ExistsLink
-- Atom type name: AverageLink
-- Atom type name: SatisfyingSetLink
-- Atom type name: ScholemLink
-- Atom type name: ImplicationLink
-- Atom type name: EquivalenceLink
-- Atom type name: EvaluationLink
-- Atom type name: AssociativeLink
-- Atom type name: InheritanceLink
-- Atom type name: SimilarityLink
-- Atom type name: AttractionLink
-- Atom type name: ProcedureNode
-- Atom type name: GroundedProcedureNode
-- Atom type name: SchemaNode
-- Atom type name: GroundedSchemaNode
-- Atom type name: PredicateNode
-- Atom type name: GroundedPredicateNode
-- Atom type name: DefinedRelationshipNode
-- Atom type name: SchemaExecutionLink
-- Atom type name: SchemaEvaluationLink
-- Atom type name: ExecutionLink
-- Atom type name: ExecutionOutputLink
-- Atom type name: AnchorNode
-- Atom type name: QuantityLink
-- Atom type name: PlusLink
-- Atom type name: TimesLink
-- Atom type name: VirtualLink
-- Atom type name: GreaterThanLink
[  5%] Built target opencog_atom_types
Scanning dependencies of target embodiment_atom_types
[  5%] Generating opencog types
-- Atom type name: PetNode
-- Atom type name: AvatarNode
-- Atom type name: AccessoryNode
-- Atom type name: HumanoidNode
-- Atom type name: UnknownObjectNode
-- Atom type name: IsAcceptableSecondArgLink
-- Atom type name: OntologicalInheritanceLink
-- Custom atom type name specified: "WRLink"
-- Atom type name: WRLink
-- Atom type name: FrequencyLink
-- Atom type name: FeelingNode
-- Atom type name: PhraseNode
-- Atom type name: SpeechActTriggerNode
-- Atom type name: SpeechActSchemaNode
-- Atom type name: DialogNode
-- Atom type name: UtteranceNode
-- Atom type name: DefinedFrameNode
-- Atom type name: DefinedFrameElementNode
-- Atom type name: FrameElementLink
-- Atom type name: SimultaneousEquivalenceLink
[  5%] Built target embodiment_atom_types
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/Logger.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/misc.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/mt19937ar.cc.o
[  5%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/oc_assert.cc.o
[  7%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/oc_omp.cc.o
[  7%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/octime.cc.o
[  7%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/platform.cc.o
[  7%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/StringManipulator.cc.o
[  7%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/StringTokenizer.cc.o
[  7%] Building CXX object opencog/learning/moses/main/CMakeFiles/moses_exec.dir/problem.cc.o
[  7%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/tree.cc.o
Scanning dependencies of target spacetime_atom_types
[  7%] Generating opencog types
-- Atom type name: SpaceMapNode
-- Atom type name: ObjectNode
-- Atom type name: BlockEntityNode
-- Atom type name: StructureNode
-- Atom type name: ImaginaryStructureNode
-- Atom type name: TimeNode
-- Atom type name: AtTimeLink
-- Atom type name: LatestLink
-- Atom type name: BeforeLink
-- Atom type name: OverlapsLink
-- Atom type name: DuringLink
-- Atom type name: MeetsLink
-- Atom type name: StartsLink
-- Atom type name: FinishesLink
-- Atom type name: EqualsLink
-- Atom type name: AfterLink
-- Atom type name: OverlappedByLink
-- Atom type name: ContainsLink
-- Atom type name: MetByLink
-- Atom type name: StartedByLink
-- Atom type name: FinishedByLink
[  7%] Built target spacetime_atom_types
[  7%] Building CXX object opencog/learning/moses/main/CMakeFiles/moses_exec.dir/problem-params.cc.o
[  7%] Linking CXX shared library libcogutil.so
[  7%] Built target cogutil
Scanning dependencies of target pln_atom_types
[  7%] Generating opencog types
-- Atom type name: PredictiveImplicationLink
-- Atom type name: TailPredictiveImplicationLink
-- Atom type name: PredictiveAttractionLink
-- Atom type name: SimultaneousAndLink
-- Custom atom type name specified: "EventualSequentialAND"
-- Atom type name: EventualSequentialAND
-- Custom atom type name specified: "EventualSequentialImplication"
-- Atom type name: EventualSequentialImplication
-- Atom type name: ExtensionalSimilarityLink
-- Atom type name: IntensionalSimilarityLink
-- Atom type name: IntensionalInheritanceLink
-- Atom type name: AtTimeLink
-- Atom type name: OntologicalInheritanceLink
[  7%] Built target pln_atom_types
[  9%] Building CXX object opencog/learning/moses/main/CMakeFiles/moses_exec.dir/moses_exec.cc.o
[  9%] Building CXX object opencog/learning/moses/main/CMakeFiles/moses_exec.dir/moses_exec_def.cc.o
[  9%] Building CXX object opencog/learning/moses/main/CMakeFiles/moses_exec.dir/table-problems.cc.o
[  9%] Building CXX object lib/json_spirit/CMakeFiles/json_spirit.dir/json_spirit_value.cpp.o
[ 10%] Building CXX object lib/json_spirit/CMakeFiles/json_spirit.dir/json_spirit_writer.cpp.o
Scanning dependencies of target nlp_atom_types
[ 10%] Generating opencog types
-- Atom type name: WordNode
-- Atom type name: AnyNode
-- Atom type name: ReferenceLink
-- Atom type name: DocumentNode
-- Atom type name: SentenceNode
-- Atom type name: SentenceLink
-- Atom type name: ParseNode
-- Atom type name: ParseLink
-- Atom type name: WordInstanceNode
-- Atom type name: WordInstanceLink
-- Atom type name: SequenceLink
-- Atom type name: WordSequenceLink
-- Atom type name: SentenceSequenceLink
-- Atom type name: DocumentSequenceLink
-- Atom type name: FeatureNode
-- Atom type name: FeatureLink
-- Atom type name: LinkGrammarRelationshipNode
-- Atom type name: LinkGrammarDisjunctNode
-- Atom type name: DefinedLinguisticConceptNode
-- Atom type name: DefinedLinguisticRelationshipNode
-- Atom type name: PrepositionalRelationshipNode
-- Atom type name: WordSenseNode
-- Atom type name: WordSenseLink
-- Atom type name: PartOfSpeechNode
-- Atom type name: PartOfSpeechLink
-- Atom type name: LemmaNode
-- Atom type name: LemmaLink
-- Atom type name: HolonymLink
-- Atom type name: CosenseLink
-- Atom type name: SemeNode
-- Atom type name: SemanticRelationNode
-- Atom type name: InterpretationNode
-- Atom type name: InterpretationLink
-- Atom type name: SpecificEntityNode
-- Atom type name: LgConnectorNode
-- Atom type name: LgConnMultiNode
-- Atom type name: LgConnDirNode
-- Atom type name: LgConnector
-- Custom atom type name specified: "MSTConnector"
-- Atom type name: MSTConnector
-- Atom type name: LgSeq
-- Atom type name: LgAnd
-- Atom type name: LgOr
-- Atom type name: LgWordCset
-- Atom type name: LgLinkInstanceNode
-- Atom type name: LgLinkInstanceLink
-- Custom atom type name specified: "MSTLinkNode"
-- Atom type name: MSTLinkNode
-- Custom atom type name specified: "MSTDisjunctNode"
-- Atom type name: MSTDisjunctNode
[ 10%] Built target nlp_atom_types
Scanning dependencies of target attention_atom_types
[ 10%] Generating opencog types
-- Atom type name: HebbianLink
-- Atom type name: AsymmetricHebbianLink
-- Atom type name: SymmetricHebbianLink
-- Atom type name: InverseHebbianLink
-- Atom type name: SymmetricInverseHebbianLink
[ 10%] Built target attention_atom_types
Scanning dependencies of target spacetime-types
[ 10%] Building CXX object opencog/spacetime/CMakeFiles/spacetime-types.dir/atom_types_init.cc.o
Scanning dependencies of target cogita
[ 10%] Building CXX object opencog/nlp/chatbot/CMakeFiles/cogita.dir/CogitaConfig.cc.o
[ 10%] Building CXX object opencog/nlp/chatbot/CMakeFiles/cogita.dir/IRC.cc.o
[ 10%] Building CXX object opencog/nlp/chatbot/CMakeFiles/cogita.dir/go-irc.cc.o
[ 10%] Building CXX object opencog/nlp/chatbot/CMakeFiles/cogita.dir/whirr-sockets.cc.o
[ 10%] Linking CXX executable cogita
[ 10%] Built target cogita
Scanning dependencies of target viterbi_atom_types
[ 12%] Generating opencog types
-- Atom type name: LgStatePair
[ 12%] Built target viterbi_atom_types
Scanning dependencies of target savable
[ 12%] Building CXX object opencog/persist/file/CMakeFiles/savable.dir/CoreUtils.cc.o
[ 12%] Linking CXX shared library libspacetime-types.so
[ 12%] Built target spacetime-types
[ 12%] Cythonizing logger.pyx
Scanning dependencies of target logger_cython
[ 12%] Building CXX object opencog/cython/opencog/CMakeFiles/logger_cython.dir/logger.cpp.o
[ 12%] Linking CXX static library libmoses_exec.a
[ 12%] Built target moses_exec
Scanning dependencies of target TangentBug
[ 12%] Building CXX object opencog/spatial/CMakeFiles/TangentBug.dir/TangentBugCommons.cc.o
[ 12%] Building CXX object opencog/persist/file/CMakeFiles/savable.dir/SavingLoading.cc.o
[ 12%] Linking CXX shared library logger.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
opencog/cython/opencog/CMakeFiles/logger_cython.dir/build.make:104: recipe for target 'opencog/cython/opencog/logger.so' failed
make[2]: *** [opencog/cython/opencog/logger.so] Error 1
CMakeFiles/Makefile2:5722: recipe for target 'opencog/cython/opencog/CMakeFiles/logger_cython.dir/all' failed
make[1]: *** [opencog/cython/opencog/CMakeFiles/logger_cython.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Building CXX object opencog/persist/file/CMakeFiles/savable.dir/SpaceServerSavable.cc.o
[ 12%] Building CXX object opencog/spatial/CMakeFiles/TangentBug.dir/TangentBug.cc.o
[ 12%] Building CXX object opencog/persist/file/CMakeFiles/savable.dir/TimeServerSavable.cc.o
[ 12%] Linking CXX static library libjson_spirit.a
[ 12%] Built target json_spirit
[ 14%] Building CXX object opencog/persist/file/CMakeFiles/savable.dir/TemporalTableFile.cc.o
[ 14%] Linking CXX static library libTangentBug.a
[ 14%] Built target TangentBug
[ 14%] Linking CXX shared library libsavable.so
[ 14%] Built target savable
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2



 there is no logger.so in the directory. How to solve this?

Thanks in advance ,
Vishnu

Jerold Haas

unread,
Sep 14, 2016, 10:52:15 AM9/14/16
to opencog

 there is no logger.so in the directory. How to solve this?

Thanks in advance ,
Vishnu


You don't see logger.so because it isn't compiling. This is the relevant line.


On Wednesday, September 14, 2016 at 10:41:53 AM UTC-4, vishnup...@gmail.com wrote:

[ 12%] Linking CXX shared library logger.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: error adding symbols: Bad value

 
Cursory search yields this as a possible solution: http://stackoverflow.com/a/23875752

Linas Vepstas

unread,
Sep 14, 2016, 12:54:00 PM9/14/16
to opencog, vishnupriya kumar
Hi,

You appear to be compiling some stunningly ancient version of opencog.  I don't know how you did that.  Where did you find this beast?  How did you find it?

You should go to github, and follow the instructions there.

--linas

vishnup...@gmail.com

unread,
Sep 14, 2016, 2:59:13 PM9/14/16
to opencog, vishnup...@gmail.com, linasv...@gmail.com
Hey Linas,

I cloned PatternMinerEmbodiment branch and ran it ;-).   Since you told shujinkge has made changes and no one imported it.   Just trying whether i can run patternminer without segmentation fault with this.


--Vishnu

Linas Vepstas

unread,
Sep 14, 2016, 4:55:03 PM9/14/16
to vishnupriya kumar, opencog
On Wed, Sep 14, 2016 at 1:59 PM, <vishnup...@gmail.com> wrote:
Hey Linas,

I cloned PatternMinerEmbodiment branch and ran it ;-).   Since you told shujinkge has made changes and no one imported it.   Just trying whether i can run patternminer without segmentation fault with this.

Ahh! OK, that makes sense. You best bet would be to copy the contents of the PatternMiner directory there, into the current tree, and try to fix up whatever breakages there are. 

The more difficult but more correct way to do this would be to cherry-pick her commits ...

--linas

vishnup...@gmail.com

unread,
Sep 15, 2016, 5:37:42 AM9/15/16
to opencog, vishnup...@gmail.com, linasv...@gmail.com
Thanks Linas for the reply.

 yeah!!!  i can copy the contents of pattern miner from older branch to the current and can build opencog. 

The more difficult but more correct way to do this would be to cherry-pick her commits ...

 i think i could also try git rebase --onto instead of cherry picking. I read somewhere, when it comes to range of commits, cherry picking is not practical ?!


--Vishnu

vishnup...@gmail.com

unread,
Sep 15, 2016, 5:41:35 AM9/15/16
to opencog
Thanks Jerold for the reply.

Yeah you were right!!!  I tried adding -fPIC, but other nasty errors also popped up.  Going to try as Linas said. 

Linas Vepstas

unread,
Sep 15, 2016, 2:06:10 PM9/15/16
to vishnupriya kumar, opencog
Yes, git-rebase sounds like it could work. If you manage to get it to work, please create a pull request. I'd like to review and merge it.

--linas

vishnup...@gmail.com

unread,
Sep 17, 2016, 11:39:51 AM9/17/16
to opencog, vishnup...@gmail.com, linasv...@gmail.com
Yeah !! Sure..
Reply all
Reply to author
Forward
0 new messages