Error when building in codespaces

オープン
#210 コメント 13 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
build-system

調査の方向性

報告された環境で meson setup --buildtype release builddir に続けて meson compile を実行し、失敗を再現してください。meson.build と resolve_qsort_Float16 に関連付けられたソースパスを調査してください。共有ライブラリが未定義の fp16_icl::qsort シンボルなしで正常にリンクされれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

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 # 
主要言語
C++
スター
1k
フォーク
79
平均マージ
2日 2時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

numpy/x86-simd-sort のほかの issue

numpy/x86-simd-sort の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。