You are not logged in.
I am a Chinese,my English is poor. i hope i can express my question clearly.
1、I download linux code from https://github.com/torvalds/linux, and i want to compile perf.
2、I download zlib and elfutils-0.159 and libunwind-1.3.1, and put it to path linux-master/tools
3、I install them successfully, the the lib file and head file is in linux-master\tools\include and linux-master\tools\lib
but when I compile perf ,
make WERROR=0 CROSS_COMPILE=aarch64-linux-gnu- ARCH=aarch64 CC=aarch64-linux-gnu-gcc LD=aarch64-linux-gnu-ld LDFLAGS="-static -L/data1/xxx/work/project/linux-master/tools/lib" EXTRA_CFLAGS="-static -I/data1/xxx/work/project/linux-master/tools/include"The result is that:
https://img1.imgtp.com/2023/02/13/44d8kzIt.png
and in file linux-master\tools\build\feature\test-libunwind.make.output, there is:
/tmp/ccw9utrv.o: In function `main':
test-libunwind.c:(.text+0x14): undefined reference to `_Uaarch64_create_addr_space'
test-libunwind.c:(.text+0x3c): undefined reference to `_Uaarch64_init_remote'
test-libunwind.c:(.text+0x58): undefined reference to `_Uaarch64_dwarf_search_unwind_table'
collect2: error: ld returned 1 exit statusit is means link is failed,but i comple test-libunwind.c myself,it is success, such as:
aarch64-linux-gnu-gcc -c test-libunwind.c -I../../include/ -L../../lib -o aaaamoderator edit -- replaced oversized image with link.
Pasting pictures and code
Last edited by 2ManyDogs (2023-03-30 11:15:26)
Offline
anybody?
Offline
somebody here?
Offline
Please stop bumping your thread. https://wiki.archlinux.org/title/Genera … es#Bumping
Offline