Error when building in codespaces
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- build-system
Research direction
Reproduce the failure with meson setup --buildtype release builddir followed by meson compile in the reported environment. Inspect meson.build and the source path associated with resolve_qsort_Float16; the work is done when the shared library links successfully without the undefined fp16_icl::qsort symbol.
Written by the indexing model from the issue text.
Description
Hi,
Please see below.
Thank you in advance for your help.
sandbox:${WORKSPACE}/srcdir # ls -lusah --color
total 12K
4 drwxr-xrw- 1 root root 4.0K Aug 26 08:55 .
4 drwxr-xrw- 6 root root 4.0K Aug 26 08:50 ..
4 drwxr-xrw- 12 root root 4.0K Aug 26 08:50 x86-simd-sort
sandbox:${WORKSPACE}/srcdir # cd x86-simd-sort/
sandbox:${WORKSPACE}/srcdir/x86-simd-sort # ls -lusah --color
total 108K
4 drwxr-xrw- 12 root root 4.0K Aug 26 08:50 .
4 drwxr-xrw- 1 root root 4.0K Aug 26 08:55 ..
4 -rw-r--r-- 1 root root 2.8K Aug 26 08:50 .clang-format
4 drwxr-xrw- 7 root root 4.0K Aug 26 08:50 .git
4 drwxr-xr-- 3 root root 4.0K Aug 26 08:50 .github
4 -rw-r--r-- 1 root root 375 Aug 26 08:50 .gitignore
8 -rw-r--r-- 1 root root 5.3K Aug 26 08:50 CODE_OF_CONDUCT.md
4 -rw-r--r-- 1 root root 2.3K Aug 26 08:50 CONTRIBUTING.md
4 -rw-r--r-- 1 root root 1.5K Aug 26 08:50 LICENSE.md
4 -rw-r--r-- 1 root root 1.1K Aug 26 08:50 Makefile
12 -rw-r--r-- 1 root root 9.5K Aug 26 08:50 README.md
4 -rw-r--r-- 1 root root 298 Aug 26 08:50 SECURITY.md
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 benchmarks
4 -rw-r--r-- 1 root root 2.3K Aug 26 08:50 example.c
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 examples
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 lib
4 -rw-r--r-- 1 root root 3.9K Aug 26 08:50 meson.build
4 -rw-r--r-- 1 root root 1.0K Aug 26 08:50 meson_options.txt
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 misc
4 -rw-r--r-- 1 root root 2.6K Aug 26 08:50 run-bench.py
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 scripts
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 src
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 tests
4 drwxr-xr-- 2 root root 4.0K Aug 26 08:50 utils
sandbox:${WORKSPACE}/srcdir/x86-simd-sort # meson setup --buildtype release builddir
The Meson build system
Version: 1.4.0
Source dir: /workspace/srcdir/x86-simd-sort
Build dir: /workspace/srcdir/x86-simd-sort/builddir
Build type: native build
Project name: x86-simd-sort
Project version: 7.0.x
C++ compiler for the host machine: x86_64-linux-musl-c++ (gcc 14.2.0 "x86_64-linux-musl-g++ (GCC) 14.2.0")
C++ linker for the host machine: x86_64-linux-musl-c++ ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -march=haswell: NO
Compiler for C++ supports arguments -march=skylake-avx512: NO
Compiler for C++ supports arguments -march=icelake-client: NO
Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
Build targets in project: 1
x86-simd-sort 7.0.x
Configuration
Can compile AVX-512 FP16 ISA: NO
Build test content : NO
Build benchmarks : NO
User defined options
buildtype : release
Found ninja-1.9 at /usr/bin/ninja
sandbox:${WORKSPACE}/srcdir/x86-simd-sort # cat /proc/cpuinfo | grep 'name'| uniq
model name : Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
sandbox:${WORKSPACE}/srcdir/x86-simd-sort # grep avx2 /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch tpr_shadow ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves vnmi avx512vbmi umip avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq la57 rdpid fsrm arch_capabilities
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch tpr_shadow ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves vnmi avx512vbmi umip avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq la57 rdpid fsrm arch_capabilities
sandbox:${WORKSPACE}/srcdir/x86-simd-sort # cd builddir
sandbox:${WORKSPACE}/srcdir/x86-simd-sort/builddir # meson compile
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja
[1/2] Compiling C++ object libx86simdsortcpp.so.1.p/lib_x86simdsort.cpp.o
[2/2] Linking target libx86simdsortcpp.so.1
ninja: job failed: x86_64-linux-musl-c++ -o libx86simdsortcpp.so.1 libx86simdsortcpp.so.1.p/lib_x86simdsort.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,-soname,libx86simdsortcpp.so.1
/opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/14.2.0/../../../../x86_64-linux-musl/bin/ld: libx86simdsortcpp.so.1.p/lib_x86simdsort.cpp.o: in function `x86simdsort::resolve_qsort_Float16()':
x86simdsort.cpp:(.text.startup+0x215): undefined reference to `void xss::fp16_icl::qsort<_Float16>(_Float16*, unsigned long, bool, bool)'
/opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/14.2.0/../../../../x86_64-linux-musl/bin/ld: libx86simdsortcpp.so.1.p/lib_x86simdsort.cpp.o: relocation R_X86_64_PC32 against undefined hidden symbol `_ZN3xss8fp16_icl5qsortIDF16_EEvPT_mbb' can not be used when making a shared object
/opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/14.2.0/../../../../x86_64-linux-musl/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
ninja: subcommand failed
sandbox:${WORKSPACE}/srcdir/x86-simd-sort/builddir #
- Dominant language
- C++
- Stars
- 1k
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from numpy/x86-simd-sort
-
check_cpu_feature_support makes repeated/unnecessary calls to std::getenv("XSS_DISABLE_AVX512") Open
Difficulty 1/5 Under an hour Newbie friendliness 84/100
numpy/x86-simd-sort#239 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
numpy/x86-simd-sort#240 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
numpy/x86-simd-sort#221 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
numpy/x86-simd-sort#189 · 8 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
numpy/x86-simd-sort#176 · 1 comment · 1 reaction ·
All issues in numpy/x86-simd-sort
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·