Error when building in codespaces

Open
#210 13 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from numpy/x86-simd-sort

All issues in numpy/x86-simd-sort

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.