Skip to content

Bugfix: xgboost</lib/native/libhdfs.a: could not read symbols: Bad value#2

Closed
loadingvx wants to merge 1 commit intodmlc:masterfrom
loadingvx:master
Closed

Bugfix: xgboost</lib/native/libhdfs.a: could not read symbols: Bad value#2
loadingvx wants to merge 1 commit intodmlc:masterfrom
loadingvx:master

Conversation

@loadingvx
Copy link
Copy Markdown
Contributor

For Hadoop_CDH distribution (yum installed), there exists no libhdfs.so(dynamic lib) just libhdfs.a(static lib).
A switch "HADOOP_CDH_BINARY" is added for this situation, it enables static compiling, so xgboost
wil not search for libhdfs.so anymore while running.

…lue> for Hadoop_CDH distribution (yum installed)
@tqchen
Copy link
Copy Markdown
Member

tqchen commented Apr 22, 2015

As another comment in the xgboost repo. It would be great if this can be resolved in just dmlc.mk by configuring DMLC_LDFLAGS that xgboost will include.

I think we can do -Wl,static followed by lhdfs. Also as I recalled correctly, -lhdfs indeed will search for libhdfs.a while libhdfs.so do not exist in search path, can you clarify this?

Thanks

@loadingvx
Copy link
Copy Markdown
Contributor Author

ok. I will try fix it like this. -Wl,static is really more better than my patch.

@loadingvx loadingvx closed this Apr 22, 2015
andrewlawhh added a commit to andrewlawhh/dmlc-core that referenced this pull request Oct 22, 2019
* Add SSH logic

* Debug logging

* Revert some stuff

* Revert inadvertent line subtractions

* Random space

* Add star topology for federated setting.

* Add star topology for federated setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants