Skip to content

Unable to compile using Apple clang version 14.0.3 (clang-1403.0.22.14.1) x86_64 #180

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

Closed
SandipanPaul opened this issue Jan 30, 2025 · 4 comments

Comments

@SandipanPaul
Copy link

On compiling the linker throws error. Below is the error

FAILED: libx86simdsortcpp.1.dylib
c++ -o libx86simdsortcpp.1.dylib libx86simdsortcpp.1.dylib.p/lib_x86simdsort.cpp.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -shared -install_name @rpath/libx86simdsortcpp.1.dylib -compatibility_version 1 -current_version 1 lib/liblibavx.a lib/liblibskx.a lib/liblibicl.a lib/liblibspr.a
Undefined symbols for architecture x86_64:
"void x86simdsort::keyvalue_qsort<float, unsigned long>(float*, unsigned long*, unsigned long, bool, bool)", referenced from:
_keyvalue_qsort_float_sizet in lib_x86simdsort.cpp.o
"void x86simdsort::keyvalue_qsort<int, unsigned long>(int*, unsigned long*, unsigned long, bool, bool)", referenced from:
_keyvalue_qsort_int32_sizet in lib_x86simdsort.cpp.o
"void x86simdsort::keyvalue_qsort<unsigned int, unsigned long>(unsigned int*, unsigned long*, unsigned long, bool, bool)", referenced from:
_keyvalue_qsort_uint32_sizet in lib_x86simdsort.cpp.o
"void x86simdsort::keyvalue_qsort<unsigned long, unsigned int>(unsigned long*, unsigned int*, unsigned long, bool, bool)", referenced from:
_keyvalue_qsort_sizet_uint32 in lib_x86simdsort.cpp.o
"void x86simdsort::keyvalue_qsort<unsigned long, unsigned long>(unsigned long*, unsigned long*, unsigned long, bool, bool)", referenced from:
_keyvalue_qsort_sizet_sizet in lib_x86simdsort.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

@r-devulap
Copy link
Contributor

@SandipanPaul Thanks for reporting, will take a look.

@r-devulap
Copy link
Contributor

Can you confirm if #181 fixes this error?

@r-devulap
Copy link
Contributor

Closing it since we merged #181. Feel free to reopen in case it doesn't fix your build.

@SandipanPaul
Copy link
Author

Hi @r-devulap , Thanks for the quick resolution. The problem is indeed resolved

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