Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error with folly : gflags invalid #13

Closed
xuxilei opened this issue May 22, 2017 · 3 comments
Closed

Compiler error with folly : gflags invalid #13

xuxilei opened this issue May 22, 2017 · 3 comments

Comments

@xuxilei
Copy link

xuxilei commented May 22, 2017

my OS is CENTOS 7
I download folly-2017.04.10.00.zip , but some wrong with folly
[root@localhost folly]# ./configure --prefix=/usr/local/mapd-deps
then "checking for main in -lgflags... yes

checking for gflags viability... no

configure: error: "gflags invalid, see config.log for details"

I am make gflags as compiler: /usr/local/lib/libgflags.a , is a static lib
vi config.log , said:

/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::(anonymous namespace)::FlagRegistry::GlobalRegistry()':

gflags.cc:(.text+0xe96): undefined reference to `pthread_rwlock_wrlock'

gflags.cc:(.text+0xeae): undefined reference to `pthread_rwlock_unlock'

gflags.cc:(.text+0xf47): undefined reference to `pthread_rwlock_init'

@asuhan
Copy link
Contributor

asuhan commented May 22, 2017

We haven't tried to build on CentOS 7 as far as I know, looks like Folly doesn't build on that platform. You can build MapD without Folly, by passing -DENABLE_FOLLY=OFF to cmake or try to fix the Folly build on CentOS 7 on your own. It looks like a missing or misplaced -pthread.

@dwayneberry
Copy link
Contributor

Please follow these instructions here for centos 7

https://github.com/mapd/mapd-core#centos-7

We have a set of prebuild dependencies which should work for you and save you building them yourself.

@randyzwitch
Copy link
Contributor

Closing, as instructions given for building Centos7 show how to make this work

fexolm referenced this issue in fexolm/omniscidb Dec 20, 2019
prutskov added a commit to prutskov/omniscidb that referenced this issue May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants