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

Link fails on Mac OS X w/clang #123

Open
asmaloney opened this issue Mar 10, 2016 · 1 comment
Open

Link fails on Mac OS X w/clang #123

asmaloney opened this issue Mar 10, 2016 · 1 comment

Comments

@asmaloney
Copy link
Contributor

duplicate symbol __mesa_error_no_memory in:
    CMakeFiles/glsl_compiler.dir/src/glsl/main.cpp.o
    libglsl_optimizer.a(standalone_scaffolding.cpp.o)
ld: 1 duplicate symbol for architecture x86_64
$ clang -v
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
@cpcdoy
Copy link

cpcdoy commented Jul 24, 2016

I confirm this happens on ubuntu 16.04 with clang++ 3.8 and g++ 6.1.1.

Here's the log:

[ 98%] Linking CXX executable glslopt
[ 99%] Linking CXX executable glsl_compiler
[ 99%] Built target glslopt
libglsl_optimizer.a(standalone_scaffolding.cpp.o): In function `_mesa_error_no_memory':
standalone_scaffolding.cpp:(.text+0x5): multiple definition of `_mesa_error_no_memory'
CMakeFiles/glsl_compiler.dir/src/glsl/main.cpp.o:main.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
CMakeFiles/glsl_compiler.dir/build.make:97: recipe for target 'glsl_compiler' failed
make[2]: *** [glsl_compiler] Error 1
CMakeFiles/Makefile2:259: recipe for target 'CMakeFiles/glsl_compiler.dir/all' failed
make[1]: *** [CMakeFiles/glsl_compiler.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable glsl_test
[100%] Built target glsl_test

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