/usr/bin/ld: 찾을 수 없음 -latomic: 해당 파일이나 디렉터리가 없음

/usr/bin/ld: 찾을 수 없음 -latomic: 해당 파일이나 디렉터리가 없음

gcc를 사용하여 일부 코드를 컴파일하려고 합니다. 다음 오류가 발생합니다.

/usr/bin/ld: cannot find -latomic: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Vmk_scalar_mult.mk:66: Vmk_scalar_mult] Error 1
rm Vmk_scalar_mult__ALL.verilator_deplist.tmp
make[1]: Leaving directory '/home/.../obj_dir'
make: *** [Makefile:41: link_verilator] Error 2

내 시스템에 대한 추가 정보를 제공하기 위해 ld -latomic --verbose다음을 수행했으며 결과는 다음과 같습니다.

GNU ld (GNU Binutils) 2.38
  Supported emulations:
   elf_x86_64
   elf32_x86_64
   elf_i386
   elf_iamcu
   elf_l1om
   elf_k1om
   i386pep
   i386pe
   elf64bpf
using internal linker script:
==================================================
...
==================================================
ld: mode elf_x86_64
attempt to open /usr/x86_64-pc-linux-gnu/lib64/libatomic.so failed
attempt to open /usr/x86_64-pc-linux-gnu/lib64/libatomic.a failed
attempt to open /usr/lib/libatomic.so succeeded
/usr/lib/libatomic.so
libc.so.6 needed by /usr/lib/libatomic.so
attempt to open /usr/lib/libfakeroot/libc.so.6 failed
attempt to open /opt/intel/mkl/lib/intel64/libc.so.6 failed
attempt to open /opt/intel/mkl/lib/intel64_lin/libc.so.6 failed
attempt to open /usr/lib/openmpi/libc.so.6 failed
attempt to open /usr/x86_64-pc-linux-gnu/lib64/libc.so.6 failed
attempt to open /usr/local/lib/libc.so.6 failed
attempt to open /usr/x86_64-pc-linux-gnu/lib/libc.so.6 failed
attempt to open /usr/lib/libfakeroot/libc.so.6 failed
attempt to open /opt/intel/mkl/lib/intel64/libc.so.6 failed
attempt to open /opt/intel/mkl/lib/intel64_lin/libc.so.6 failed
attempt to open /usr/lib/openmpi/libc.so.6 failed
attempt to open /usr/x86_64-pc-linux-gnu/lib64/libc.so.6 failed
found libc.so.6 at /usr/lib/libc.so.6
ld-linux-x86-64.so.2 needed by /usr/lib/libc.so.6
attempt to open /usr/lib/libfakeroot/ld-linux-x86-64.so.2 failed
attempt to open /opt/intel/mkl/lib/intel64/ld-linux-x86-64.so.2 failed
attempt to open /opt/intel/mkl/lib/intel64_lin/ld-linux-x86-64.so.2 failed
attempt to open /usr/lib32/ld-linux-x86-64.so.2 failed
attempt to open /usr/lib/openmpi/ld-linux-x86-64.so.2 failed
attempt to open /usr/x86_64-pc-linux-gnu/lib64/ld-linux-x86-64.so.2 failed
found ld-linux-x86-64.so.2 at /usr/lib/ld-linux-x86-64.so.2
ld: warning: cannot find entry symbol _start; not setting start address

현재 운영 체제에 대한 정보는 다음과 같습니다.

$ uname -a
Linux wishbringer 5.15.41-1-MANJARO #1 SMP PREEMPT Wed May 18 09:20:01 UTC 2022 x86_64 GNU/Linux

위의 문제를 어떻게 해결할 수 있나요? 나는 libatomic_ops 7.6.12-1에서 설치를 시도했다https://github.com/ivmai/libatomic_ops

미리 감사드립니다!

관련 정보