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

build errors with clang on 32bit of ubuntu 16 #6

Open
tongzhipeng opened this issue Sep 16, 2018 · 2 comments
Open

build errors with clang on 32bit of ubuntu 16 #6

tongzhipeng opened this issue Sep 16, 2018 · 2 comments

Comments

@tongzhipeng
Copy link

tongzhipeng commented Sep 16, 2018

my build enviroment: clang3.8 on ubuntu 16.04 32bit

if [[ "$OSTYPE" == "linux-gnu" ]]; then
	export CXX=g++-4.9
fi

need to be commented in libs/build_dependencies.sh.

CMAKE_CXX_FLAGS need to change to

set(CMAKE_CXX_FLAGS "-m32 -std=c++11 -pthread -DBOOST_LOG_DYN_LINK -Wno-deprecated-declarations")

-stdlib=libc++ need libc++-dev to be installed for llvm, but still leads to error: fatal error: '__cxxabi_config.h' file not found, i've googled it, It seems like an ubuntu16 bug for clang3.8, so i just remove -stdlib=libc++.

-pthread need to be added to resove link error:
network_utils.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2

@ivanmejiarocha
Copy link
Owner

Hi Tongshipen,
I'd never tried using clang on linux, only gcc have you have success on this?

Thanks,
Ivan.

@tongzhipeng
Copy link
Author

No, I 'd never tried compiled it with gcc. my problem is resolved by the changing in the issue, this issue is just a information.

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

No branches or pull requests

2 participants