Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to build quickjs on Raspberry Pi OS #75

Closed
David-Apps opened this issue Jun 28, 2021 · 0 comments
Closed

Error when trying to build quickjs on Raspberry Pi OS #75

David-Apps opened this issue Jun 28, 2021 · 0 comments

Comments

@David-Apps
Copy link

When I use the "make" command on Raspberry Pi OS, I get the following output:

gcc -g -flto -rdynamic -o qjs .obj/qjs.o .obj/repl.o .obj/quickjs.o .obj/libregexp.o .obj/libunicode.o .obj/cutils.o .obj/quickjs-libc.o .obj/libbf.o .obj/qjscalc.o -lm -ldl -lpthread
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid abstract instance DIE ref
/tmp/cc5lAPns.ltrans3.ltrans.o: in function js_atomics_store': <artificial>:(.text+0x6f60): undefined reference to __atomic_store_8'
/usr/bin/ld: /tmp/cc5lAPns.ltrans3.ltrans.o: in function js_atomics_op': <artificial>:(.text+0x776c): undefined reference to __atomic_fetch_add_8'
/usr/bin/ld: :(.text+0x7788): undefined reference to __atomic_fetch_and_8' /usr/bin/ld: <artificial>:(.text+0x77a4): undefined reference to __atomic_fetch_or_8'
/usr/bin/ld: :(.text+0x77c0): undefined reference to __atomic_fetch_sub_8' /usr/bin/ld: <artificial>:(.text+0x77dc): undefined reference to __atomic_fetch_xor_8'
/usr/bin/ld: :(.text+0x77f8): undefined reference to __atomic_exchange_8' /usr/bin/ld: <artificial>:(.text+0x7820): undefined reference to __atomic_compare_exchange_8'
/usr/bin/ld: :(.text+0x7834): undefined reference to `__atomic_load_8'
collect2: error: ld returned 1 exit status
make: *** [Makefile:188: qjs] Error 1

One way to get the "make" command to succeed is to change the following line in the "Makefile" file:

LIBS=-lm

to:

LIBS=-lm -latomic

@bellard bellard closed this as completed Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants