We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
I want to recompile A53 test case.
In MP030-BU-50000-r0p4-52rel2/cortexa53/logical/testbench/execution_tb/README,
I should install arm-none-eabi and aarch64-none-elf. It provide a manual way to download, config and make the toolchain.
But I met the error in Centos 7 OS.
Then I search the arm-none-eabi and aarch64-none-elf toolchain and found it in
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
I downloaded and intsalled the newest gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf and gcc-arm-10.2-2020.11-x86_64-arm-none-eabi.
When I use these toolchain, I meet the following err:
[austin@host220 tests]$ make aarch64/dhrystone -B [CC ] common/dhrystone/dhry_2.c [CC ] common/dhrystone/dhry_1.ccommon/dhrystone/dhry_1.c:39:12: warning: 'dont_print' initialized and declared 'extern' 39 | extern int dont_print __attribute__((weak)) = 1; | ^~~~~~~~~~common/dhrystone/dhry_1.c: In function 'main':common/dhrystone/dhry_1.c:246:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 246 | printf (" Ptr_Comp: %d\n", (int) Ptr_Glob->Ptr_Comp); | ^common/dhrystone/dhry_1.c:257:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 257 | printf (" Ptr_Comp: %d\n", (int) Next_Ptr_Glob->Ptr_Comp); | ^ [CC ] common/shared/output_trickbox.c [CC ] common/shared/retarget-gcc.ccommon/shared/retarget-gcc.c: In function '_write':common/shared/retarget-gcc.c:62:5: warning: implicit declaration of function 'output_char'; did you mean 'putchar'? [-Wimplicit-function-declaration] 62 | output_char(buf[i++]); | ^~~~~~~~~~~ | putchar [ASM ] aarch64/shared/bootcode.s [ASM ] aarch64/shared/stackheap.s [ASM ] aarch64/shared/vectors.s [ASM ] aarch64/shared/pagetables.s [LINK] aarch64/dhrystone/dhry_2.o/opt/arm_toolchain/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf/bin/../lib/gcc/aarch64-none-elf/10.2.1/../../../../aarch64-none-elf/bin/ld: /opt/arm_toolchain/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf/bin/../lib/gcc/aarch64-none-elf/10.2.1/../../../../aarch64-none-elf/lib/libc.a(lib_a-signalr.o): in function `_getpid_r':/tmp/dgboter/bbs/build02--cen7x86_64/buildbot/cen7x86_64--aarch64-none-elf/build/src/newlib-cygwin/newlib/libc/reent/signalr.c:83: undefined reference to `_getpid'collect2: error: ld returned 1 exit statusmake: *** [aarch64/dhrystone/dhrystone.elf] Error 1[austin@host220 tests]$
arm-none-eabi have the same problem.
How to fix it?