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

make linker error compiling on arm64 macos #1693

Closed
emilyinure opened this issue Oct 4, 2024 · 2 comments
Closed

make linker error compiling on arm64 macos #1693

emilyinure opened this issue Oct 4, 2024 · 2 comments
Labels
area: buildsystem Related to our cmake/python buildsystem bug Behaving differently as it should behave os: macos macOS-specific issue

Comments

@emilyinure
Copy link

make output

[ 88%] Linking CXX shared library libopenage.dylib
ld: warning: -undefined error is deprecated
Undefined symbols for architecture arm64:
  "openage::util::consteval_::strip_prefix(char const*, char const*)", referenced from:
      openage::renderer::opengl::GlShaderProgram::GlShaderProgram(std::__1::shared_ptr<openage::renderer::opengl::GlContext> const&, std::__1::vector<openage::renderer::resources::ShaderSource, std::__1::allocator<openage::renderer::resources::ShaderSource>> const&) in shader_program.cpp.o
      openage::datastructure::ConstMap<unsigned int, unsigned long, 28ul>::get(unsigned int const&) const in uniform_buffer.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [libopenage/libopenage.0.dylib] Error 1
make[2]: *** [libopenage/CMakeFiles/libopenage.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [build] Error 2
@heinezen heinezen added bug Behaving differently as it should behave os: macos macOS-specific issue area: buildsystem Related to our cmake/python buildsystem labels Oct 4, 2024
@heinezen
Copy link
Member

I've looked into this and the issue seems to be that AppleClang is too outdated to compile this code properly. I have updated the instructions in #1698 to make this more clear.

@TheJJ
Copy link
Member

TheJJ commented Oct 18, 2024

I've merged the pull, please report back when you still encounter linker errors with clang.

@TheJJ TheJJ closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: buildsystem Related to our cmake/python buildsystem bug Behaving differently as it should behave os: macos macOS-specific issue
Projects
None yet
Development

No branches or pull requests

3 participants