在为Cavium MIPS编译Valgrind时遇到错误
/ opt / cavium-64bit / tools-3535 / bin / mips64-octeon-linux-gnu-gcc -std = c99-msoft-float -Wall -mabi = 64 -G 0 -fPIC -mips64r2 -mplt -DHAVE_CONFIG_H -I。 -I .. -I .. -I ../ include -I ../ include -I ../ VEX / pub -I ../ VEX / pub -DVGA_mips64 = 1 -DVGO_linux = 1 -DVGP_mips64_linux = 1 -DVGPV_mips64_linux_vanilla = 1 -DVGABI_64 -I ../ coregrind -DVG_LIBDIR =“ \” / usr / local / lib / valgrind“ \” -DVG_PLATFORM =“ \” mips64-linux \“” -O2 -g -Wall -Wmissing-prototypes- Wshadow -Wpointer-arith -Wstrict原型-Wmissing声明-Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op- Wold样式声明-finline函数-fno-stack-protector -fno-strict-aliasing -fno-builtin -march = octeon2 -mabi = 64 -MT libnolto_coregrind_mips64_linux_a-m_main.o -MD -MP -MF .deps / libnolto_coregrind_mips64_linux -m_main.Tpo -c -olibnolto_coregrind_mips64_linux_a-m_main.o
test -f 'm_main.c' || echo './'
m_main.c m_main.c:2885:1:错误:预期的声明说明符或在字符串常量Makefile:8044之前的“ ...”:目标配方'libnolto_coregrind_mips64_linux_a-m_main.o'失败make [3]:*[libnolto_coregrind_mips64_linux_a-m_main.o]错误1 make [3]:退出目录'/home/ankit/Desktop/valgrind/valgrind-3.15.0/coregrind'Makefile:1914:目标“全部”的配方失败make [2]: [all]错误2 make [2]:离开目录'/home/ankit/Desktop/valgrind/valgrind-3.15.0/coregrind'Makefile:841:目标“全部递归”的配方失败make [1]:[全部递归]错误1 make [1]:离开目录'/home/ankit/Desktop/valgrind/valgrind-3.15.0'Makefile:710:配方目标“全部”失败的原因:* [全部]错误2
为MIPS体系结构构建Valgrind二进制文件的过程
wgethttps://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2
tar -xvf valgrind-3.15.0.tar.bz2
CC = / opt / CAVIUMsdk312 / OCTEON-SDK / tools / bin / mips64-octeon-linux-gnu-gccCXX = / opt / CAVIUMsdk312 / OCTEON-SDK / tools / bin / mips64-octeon-linux-gnu-g ++./configure --host = mips64-octeon-linux --target = mips64-octeon-linuxCFLAGS =“ -march = octeon2 -mabi = 64”
make