首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ARM Cortex-A8版中的“配置:错误:不支持主机架构”

ARM Cortex-A8版中的“配置:错误:不支持主机架构”
EN

Stack Overflow用户
提问于 2013-06-04 14:34:41
回答 1查看 8.4K关注 0票数 9

我在我的ARM CortexA8与linux的实际程序中发现了以下问题:

代码语言:javascript
复制
´*** glibc detected *** ./PRUssExternal: double free or corruption (top): 0x00024fe8 ***´

我正在网上搜索这个问题,我发现管理这个问题的最有用的程序是“瓦兰”。

How to track down a double free or corruption error in C++ with gdb

然后,我尝试在交叉编译中编译到我的系统,配置中有以下选项。我用的是瓦兰3.8.1

@-虚拟机:~/val差使-3.8.1$ CC=arm-cortexa8-linux-gnueabi-gcc CFLAGS="-pipe -Os -mtune=corpe-a8-marm=armv7-a-mabi=msoft-msoft-CFLAGS= LDFLAGS="-L/opt/OSELAS.Toolchain-2011.11.3/arm-cortexa8-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitez/sysroot-arm-cortexa8-linux-gnueabi/usr/lib“./”-L/opt/OSELAS.Toolchain-2011.11.3/arm-cortexa8-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitez/sysroot-arm-cortexa8-linux-gnueabi/usr/lib“-前缀=/opt/valgrid -host=arm-cortexa8-linux-gnueabi -target=arm-none linux-gnueabi -build=x86_64-ubuntu-linux

此配置的输出是:

代码语言:javascript
复制
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-cortexa8-linux-gnueabi-strip... arm-cortexa8-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for arm-cortexa8-linux-gnueabi-gcc... arm-cortexa8-linux-gnueabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-cortexa8-linux-gnueabi-gcc accepts -g... yes
checking for arm-cortexa8-linux-gnueabi-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-cortexa8-linux-gnueabi-gcc... gcc3
checking whether arm-cortexa8-linux-gnueabi-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... arm-cortexa8-linux-gnueabi-gcc -E
checking for arm-cortexa8-linux-gnueabi-g++... arm-cortexa8-linux-gnueabi-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-cortexa8-linux-gnueabi-g++ accepts -g... yes
checking dependency style of arm-cortexa8-linux-gnueabi-g++... gcc3
checking for arm-cortexa8-linux-gnueabi-ranlib... arm-cortexa8-linux-gnueabi-ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of arm-cortexa8-linux-gnueabi-gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.6.2)
checking build system type... x86_64-ubuntu-linux-gnu
checking host system type... arm-cortexa8-linux-gnueabi
checking for a supported CPU... no (arm)
configure: error: Unsupported host architecture. Sorry

在这个输出的最后一行中,我的问题出现了,尽管我查找了一些信息,而且Cortexa8是支持的平台之一。

valgrind on the ARM9?

由于这个原因,我的问题是我的董事会是否因为我使用的库不兼容而不受支持,或者可能是其他原因。或者在另一种情况下,我可以毫无畏惧地编译“英勇”,然后跳过这个检查。

耽误您时间,实在对不起

-Regards

Breci01010...

EN

回答 1

Stack Overflow用户

发布于 2013-11-12 08:51:13

您应该编辑配置文件。找到一行“armv7 7*”并将其改为"arm*“--这就足够了。

票数 15
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16920581

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档