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

Missing library on compile opening_hours -lc++abi #2129

Open
frodrigo opened this issue Mar 4, 2016 · 6 comments
Open

Missing library on compile opening_hours -lc++abi #2129

frodrigo opened this issue Mar 4, 2016 · 6 comments

Comments

@frodrigo
Copy link
Contributor

frodrigo commented Mar 4, 2016

Building PC native with default configuration, just with tools/unix/build_omim.sh raise this error:

make[2]: Entering directory '/home/fred/u/omim-build-release/3party/opening_hours/opening_hours_integration_tests'
clang++ -ccc-gcc-name g++ -stdlib=libc++ -Wl,--gc-sections -Wl,-Bsymbolic-functions -o ../../../out/release/opening_hours_integration_tests ../../../out/release/tmp/opening_hours_integration_tests/opening_hours_integration_tests.o   -L../../../out/release -lopening_hours -lz -lpthread 
/usr/bin/ld: ../../../out/release/tmp/opening_hours_integration_tests/opening_hours_integration_tests.o: undefined reference to symbol '_ZTISt11range_error'
/usr/lib/libc++abi.so.1: error adding symbols: DSO missing from command line
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:145: recipe for target '../../../out/release/opening_hours_integration_tests' failed

Adding -lc++abi on Makefile fix the problem.

QMake version 3.0
clang version 3.7.1
OS: Archlinux

@biodranik
Copy link
Contributor

That's strange. Does it fail with opening_hours_integration_tests only or with other tests too?
It can be a qmake Linux mkspec issue, or internal linker library order issue.

@utack
Copy link

utack commented Mar 5, 2016

Adding -lc++abi on Makefile fix the problem.

Where exactly would this need to be added?

@frodrigo
Copy link
Contributor Author

frodrigo commented Mar 5, 2016

Yes, others tests fail too. To continue compiling I need apend -lc++abi to LIBS on Makefile/

@biodranik
Copy link
Contributor

You can add it into QMAKE_LFLAGS linux section in common.pri.
But I suppose this issue is Archlinux-only...

On 5.3.2016, at 13.04, Frédéric Rodrigo notifications@github.com wrote:

Yes, others tests fail too. To continue compiling I need apend -lc++abi to LIBS on Makefile/


Reply to this email directly or view it on GitHub #2129 (comment).

@utack
Copy link

utack commented Mar 5, 2016

It compiles now, thanks for the help.
(also on Arch)

@frodrigo
Copy link
Contributor Author

frodrigo commented Mar 5, 2016

With this trick, it compile for me too. I will try to report this problem to Archlinux.

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

3 participants