#553·llama2.c

libc.so.6: 无法定义 `

作者: SeekPoint创建于 2025年4月15日更新于 2025年4月15日

(base) amd00@mz00:~/repo/llama2.c$ make run gcc -O3 -o run run.c -lm /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `_dl_audit_symbind_alt@GLIBC_PRIVATE' /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `__nptl_change_stack_perm@GLIBC_PRIVATE' /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `_dl_find_dso_for_object@GLIBC_PRIVATE' /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `_dl_fatal_printf@GLIBC_PRIVATE' /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `_dl_exception_create@GLIBC_PRIVATE' /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `__tunable_get_val@GLIBC_PRIVATE' /home/amd00/anaconda3/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: undefined reference to `_dl_audit_preinit@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status make: *** [Makefile:8: run] Error 1 (base) amd00@mz00:~/repo/llama2.c$

内容来源: karpathy/llama2.c