Re: Compilation fails on ARM

Paul Floyd <[email protected]> Mon, 27 Feb 2023 22:23:03 +0100
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>

On 27-02-23 22:11, Leon Pollak wrote:
> Hello, all.
> I am trying to compile Valgrind 3.20.0 on ARMv7 Linux 2.6.37 (not cross!).
> At first, compilation produced a lot of errors with binary constants in 
> the form 0bXXXX, but I replaced them with normal numbers and compilation 
> continued.
> It failed with:
> ../coregrind/link_tool_exe_linux 0x58000000 gcc -std=gnu99     -o 
> memcheck-arm-linux  -O2 -g -Wall -Wmissing-prototypes -Wshadow 
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-qual 
> -Wwrite-st
> rings -Wformat -Wformat-security -finline-functions -fno-stack-protector 
> -fno-strict-aliasing -fno-builtin   -marm -mcpu=cortex-a8 -O2 -static 
> -nodefaultlibs -nostartfiles -u _start   memcheck_arm_linux-mc_leak
> check.o memcheck_arm_linux-mc_malloc_wrappers.o 
> memcheck_arm_linux-mc_main.o memcheck_arm_linux-mc_main_asm.o 
> memcheck_arm_linux-mc_translate.o memcheck_arm_linux-mc_machine.o 
> memcheck_arm_linux-mc_errors.o ../
> coregrind/libcoregrind-arm-linux.a ../VEX/libvex-arm-linux.a -lgcc 
> ../coregrind/libgcc-sup-arm-linux.a
> ../coregrind/link_tool_exe_linux: line 58: use: command not found
> ../coregrind/link_tool_exe_linux: line 59: use: command not found
> ../coregrind/link_tool_exe_linux: line 62: die: command not found
> ../coregrind/link_tool_exe_linux: line 70: syntax error near unexpected 
> token `$ala'
> ../coregrind/link_tool_exe_linux: line 70: `    if (length($ala) < 3 || 
> index($ala, "0x") != 0);'

It sounds to me as though the script is failing to find the perl 
interpreter and is running in whatever your default shell is.

Can you ensure that you have perl installed?

Is the path in link_tool_exe_linux correct?
If not you may need to run "autogen.sh" in the top source directory and 
then rerun configure.

A+
Paul



_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users