You are not logged in.

#1 2023-02-13 14:07:30

Greatpi
Member
Registered: 2022-08-27
Posts: 10

When I compile perf, why my "libunwind" is OFF?

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 status

it 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 aaaa

moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2023-03-30 11:15:26)

Offline

#2 2023-02-20 08:51:50

Greatpi
Member
Registered: 2022-08-27
Posts: 10

Re: When I compile perf, why my "libunwind" is OFF?

anybody?

Offline

#3 2023-03-30 11:01:47

Greatpi
Member
Registered: 2022-08-27
Posts: 10

Re: When I compile perf, why my "libunwind" is OFF?

somebody here?

Offline

#4 2023-03-30 11:14:49

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: When I compile perf, why my "libunwind" is OFF?

Offline

Board footer

Powered by FluxBB