对gcov出内存/版本不匹配? [英] gcov out of memory / mismatched version?

查看:586
本文介绍了对gcov出内存/版本不匹配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是试图让gcov一个启动和运行,得到了以下错误:

Just trying to get gcov up and running, getting the following error:

$ gcov src/main.c -o build
build/main.gcno:version '404*', prefer '407*'

gcov: out of memory allocating 14819216480 bytes after a total of 135168 bytes

我使用铛/ profile_rt产生的gcov需要的文件,我假设可能有一些用它做。它的工作我的另一台计算机上,虽然如此,我认为它可以以某种方式加以固定。

I'm using clang/profile_rt to generate the files gcov needs, I'm assuming that might have something to do with it. It's working on my other computer, though, so I assume it can be fixed somehow.

推荐答案

我只是在我的机器上同样的问题。

I just had the same problem on my machine.

请确保您的gcov版本,并且使用匹配的编译器。

Make sure your versions of gcov and the compiler you use match.

我使用g ++编译时有这个确切的问题 - 4.7和我有gcov的4.6

I had this exact problem when compiling with g++-4.7 and I had gcov 4.6.

在我的机器命令和apt-get安装ggcov 让我的最新版本。然后我不得不 sudo的LN -sf /usr/bin/gcov-4.7的/ usr / bin中/ gcov的作出的gcov点在正确的地方。

On my machine sudo apt-get install ggcov got me the latest version. I then had to sudo ln -sf /usr/bin/gcov-4.7 /usr/bin/gcov to make gcov point in the right place.

这篇关于对gcov出内存/版本不匹配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆