-
Notifications
You must be signed in to change notification settings - Fork 423
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
Compiling on Gentoo #92
Comments
Same issue on Arch x64. |
same error under ubuntu 14 64bit: |
Same stuff Arch x64 |
@ShreiderWalter Try this: bkaradzic/bgfx#304 (comment) |
See commit e480701 of open PR #91. And / or see diff in this issue on the zz85 fork (omit the hacks in |
Hi there,
I have trouble with compiling on Gentoo, I will probably do a fork and just fix this but also want to share.
[ 98%] Building CXX object CMakeFiles/glsl_compiler.dir/src/glsl/main.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DNDEBUG -O2 -pipe -march=corei7-avx -fno-omit-frame-pointer -Os -DNDEBUG -I/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999/include -I/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999/src/mesa -I/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999/src/mapi -I/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999/src/glsl -I/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999/src -o CMakeFiles/glsl_compiler.dir/src/glsl/main.cpp.o -c /tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999/src/glsl/main.cpp
Linking CXX executable glsl_compiler
/usr/bin/cmake -E cmake_link_script CMakeFiles/glsl_compiler.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=corei7-avx -fno-omit-frame-pointer -Os -DNDEBUG CMakeFiles/glsl_compiler.dir/src/glsl/main.cpp.o -o glsl_compiler -rdynamic libglsl_optimizer.a libglcpp-library.a libmesa.a
libglsl_optimizer.a(standalone_scaffolding.cpp.o): In function
_mesa_error_no_memory': standalone_scaffolding.cpp:(.text+0xf): 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
make[2]: *** [glsl_compiler] Error 1
make[2]: Leaving directory
/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999_build' make[1]: *** [CMakeFiles/glsl_compiler.dir/all] Error 2 make[1]: Leaving directory
/tmp/portage/gfx-tools/glsl-optimizer-9999/work/glsl-optimizer-9999_build'make: *** [all] Error 2
Looks like the _mesa_error_no_memory function is defined in
src/glsl/main.cpp and in
src/glsl/standalone_scaffolding.cpp
and that causes an error while linking.
Regards,
Iegor
The text was updated successfully, but these errors were encountered: