Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Some 32-bit archs require explicit liking to `libatomic`, otherwise build fails: Undefined symbols: "___atomic_compare_exchange_8", "___atomic_fetch_xor_8" etc.

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

Maintainer thường phản hồi trong vòng 3 ngày

@bsekisser đang làm issue này rồi.

Từ ngày 15/1/2025.

  • #381 của @bsekisser — đang mở

Đánh giá

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

Hướng nghiên cứu

Start with the reported run-test262 build command and trace the linker flags used by that target. Check how the build handles 32-bit architectures and verify the affected build with the reported undefined atomic symbols. Done means the affected targets link successfully with the required atomic support.

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

Mô tả

/opt/local/bin/gcc-mp-13 -g -o run-test262 .obj/run-test262.o .obj/quickjs.o .obj/libregexp.o .obj/libunicode.o .obj/cutils.o .obj/quickjs-libc.o .obj/libbf.o -lm -ldl -lpthread 
ar rcs libquickjs.a .obj/quickjs.o .obj/libregexp.o .obj/libunicode.o .obj/cutils.o .obj/quickjs-libc.o .obj/libbf.o
Undefined symbols:
  "___atomic_compare_exchange_8", referenced from:
Undefined symbols:
  "___atomic_compare_exchange_8", referenced from:
      _js_atomics_op in quickjs.o
      _js_atomics_op in quickjs.o
  "___atomic_fetch_xor_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_fetch_xor_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_fetch_add_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_fetch_add_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_load_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_load_8", referenced from:
  "___atomic_store_8", referenced from:
      _js_atomics_op in quickjs.o
      _js_atomics_store in quickjs.o
  "___atomic_fetch_sub_8", referenced from:
  "___atomic_store_8", referenced from:
      _js_atomics_op in quickjs.o
      _js_atomics_store in quickjs.o
  "_clock_gettime", referenced from:
  "___atomic_fetch_sub_8", referenced from:
      _js_atomics_wait in quickjs.o
      _js_atomics_op in quickjs.o
      _js_os_setTimeout in quickjs-libc.o
      _js_os_poll in quickjs-libc.o
  "___atomic_fetch_or_8", referenced from:
      _js_atomics_op in quickjs.o
  "_clock_gettime", referenced from:
      _js_agent_monotonicNow in run-test262.o
      _run_test_dir_list in run-test262.o
      _run_test_dir_list in run-test262.o
      _js_atomics_wait in quickjs.o
  "___atomic_fetch_and_8", referenced from:
      _js_os_setTimeout in quickjs-libc.o
      _js_os_poll in quickjs-libc.o
      _js_atomics_op in quickjs.o
  "___atomic_fetch_or_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_exchange_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_fetch_and_8", referenced from:
      _js_atomics_op in quickjs.o
  "___atomic_exchange_8", referenced from:
      _js_atomics_op in quickjs.o
ld: symbol(s) not found
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make: *** [run-test262] Error 1
make: *** Waiting for unfinished jobs....
Ngôn ngữ chính
C
Star
11.1k
Fork
1.2k
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
1

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 bellard/quickjs

Tất cả issue của bellard/quickjs

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.