为MIPS 64位构建Valgrind时出现编译错误

问题描述 投票:0回答:1

在为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.otest -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
1个回答
0
投票

为MIPS体系结构构建Valgrind二进制文件的过程

wgethttps://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2

  • 提取压缩包

tar -xvf valgrind-3.15.0.tar.bz2

  • 在makefile定义下的Bash提示符下导出

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

make

© www.soinside.com 2019 - 2024. All rights reserved.