Build failure when using XNNPACK_LIBRARY_TYPE=shared on MacOS
- Dominant language
- C
- Stars
- 2.5k
- Forks
- 560
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 160
Description
Error message
```
[3804/4164] Linking CXX executable test/maxpool-minmax-test
FAILED: test/maxpool-minmax-test
.....
Undefined symbols for architecture arm64:
"_xnn_params", referenced from:
_xnn_pack_kai_qs8_conv_goki_w_sme2 in packing.cc.o
_xnn_pack_kai_qs8_conv_goki_w_sme2 in packing.cc.o
ld: symbol(s) not found for architecture arm64
c++: error: linker command failed with exit code 1 (use -v to see invocation)
```
Same report repeated over several files
Revision: 5162055e49061d18120b7f17e246ec243a85c835
Command to reproduce:
```
./scripts/build-local.sh -DXNNPACK_LIBRARY_TYPE=shared
```
Other errors:
```
Undefined symbols for architecture arm64:
"_xnn_compute_convolution_output_dimension", referenced from:
xnnpack::(anonymous namespace)::IndirectionTester::Test() in indirection.cc.o
xnnpack::(anonymous namespace)::IndirectionTester::Test() in indirection.cc.o
xnnpack::(anonymous namespace)::IndirectionTester::TestCompressed() in indirection.cc.o
xnnpack::(anonymous namespace)::IndirectionTester::TestCompressed() in indirection.cc.o
"_xnn_params", referenced from:
_xnn_pack_kai_qs8_conv_goki_w_sme2 in packing.cc.o
_xnn_pack_kai_qs8_conv_goki_w_sme2 in packing.cc.o
ld: symbol(s) not found for architecture arm64
```
Contributor guide
Research direction
Run ./scripts/build-local.sh -DXNNPACK_LIBRARY_TYPE=shared on macOS and inspect the failing test/maxpool-minmax-test link step. Trace how the shared build exposes the reported _xnn_params and _xnn_compute_convolution_output_dimension symbols. Done means the shared-library build links successfully and the affected tests run without undefined-symbol errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100