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 fails on 64-bit arch #3

Closed
cvigano opened this issue May 25, 2014 · 1 comment
Closed

Build fails on 64-bit arch #3

cvigano opened this issue May 25, 2014 · 1 comment

Comments

@cvigano
Copy link

cvigano commented May 25, 2014

When building this project using instructions from the readme, I get the following error:

music_and_sound_openal.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKS2_IbiEjEEE8allocateEjPKv[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKS2_IbiEjEEE8allocateEjPKv]+0x45): undefined reference to `operator new(unsigned int)'
/usr/bin/ld: CMakeFiles/graphics.dir/g_src/basics.cpp.o: file class ELFCLASS32 incompatible with ELFCLASS64
/usr/bin/ld: final link failed: File in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/graphics.dir/build.make:619: recipe for target 'libgraphics.so' failed
make[2]: *** [libgraphics.so] Error 1
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/graphics.dir/all' failed
make[1]: *** [CMakeFiles/graphics.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

System is Arch Linux on x86_64 with all necessary libraries installed in their respective 32-bit variantt

Reverting 10acd34 fixed this error for me. Seems like this is necessary for some libraries to get linked correctly as opposed to what you said in #2.

Do you need more information?

@svenstaro
Copy link
Owner

Solved.

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