Error when building in codespaces

Đang mở
#210 13 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
build-system

Hướng nghiên cứu

Tái hiện lỗi bằng meson setup --buildtype release builddir, sau đó chạy meson compile, trong môi trường được báo cáo. Kiểm tra meson.build và đường dẫn mã nguồn liên kết với resolve_qsort_Float16; công việc được hoàn tất khi thư viện dùng chung liên kết thành công mà không có symbol fp16_icl::qsort chưa được định nghĩa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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 # 
Ngôn ngữ chính
C++
Star
1k
Fork
79
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của numpy/x86-simd-sort

Tất cả issue của numpy/x86-simd-sort

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.