[
https://issues.apache.org/jira/browse/THRIFT-5328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17256794#comment-17256794
]
Zezeng Wang commented on THRIFT-5328:
-------------------------------------
The possible reason is this.
*The compiler is generating debugging information using Dwarf version 4, but
your linker (/usr/bin/ld) only understands Dwarf version 2.*
Try the way in the link might help you:
[getting-a-dwarf-error-version-4|https://stackoverflow.com/questions/27217623/getting-a-dwarf-error-version-4]
> Got linking error when trying to compile in Linux
> -------------------------------------------------
>
> Key: THRIFT-5328
> URL: https://issues.apache.org/jira/browse/THRIFT-5328
> Project: Thrift
> Issue Type: Question
> Components: C++ - Compiler
> Affects Versions: 0.12.0
> Reporter: Boopathi K
> Priority: Major
>
> I had a problem when try to compile apache thrift in linux platform .
> Compilation failed with error "/usr/bin/ld: Dwarf Error: found dwarf version
> '4', this reader only handles version 2 information.
> Release/StartStoreGridServer.o: In function
> `StartThriftBackupMain::StartServer()':
> StartStoreGridServer.cpp:(.text._ZN21StartThriftBackupMain11StartServerEv[_ZN21StartThriftBackupMain11StartServerEv]+0x11d):
> undefined reference to
> `*apache::thrift::concurrency::BoostThreadFactory::BoostThreadFactory(bool)*'"
> Anyone have idea about that? Please help me to solve this issue
>
> Note:For windows it working fine
--
This message was sent by Atlassian Jira
(v8.3.4#803005)