Some 32-bit archs require explicit liking to `libatomic`, otherwise build fails: Undefined symbols: "___atomic_compare_exchange_8", "___atomic_fetch_xor_8" etc.
Maintainers usually reply within 5 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- build-system
Research direction
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.
Written by the indexing model from the issue text.
Description
/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....
- Dominant language
- C
- Stars
- 11.1k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 bellard/quickjs
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 5 days
-
RegExp: patterns with more than 255 capture groups fail with "too many captures"Possibly taken @andreasrosdal claimed this 3 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
bellard/quickjs#624 · 1 comment ·
Maintainers usually reply within 5 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
bellard/quickjs#620 · 1 comment ·
Maintainers usually reply within 5 days
-
(comment on #611) `function g(a, d = (a = 10)) { return a; }` returns the argument instead of 10Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Maintainers usually reply within 5 days
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Maintainers usually reply within 5 days
Similar issues
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JulianKemmerer/PipelineC#409 ·
-
Linux build fails without libspeechd-dev, which INSTALL.md doesn't list and CMake reports as foundOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
needs-playtest slice
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Life-Framework/Life-Framework#4861 ·
Maintainers usually reply within 1 day