You are not logged in.

#1 2012-09-17 07:37:02

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

gcov out of memory / mismatched version?

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

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 also working fine on my other computer (osx) so I assume it can be fixed somehow.


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#2 2012-09-18 04:23:25

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: gcov out of memory / mismatched version?

Is there anyone out there using gcov successfully at all?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#3 2012-11-06 15:35:56

testforqunfa
Member
Registered: 2012-11-06
Posts: 1

Re: gcov out of memory / mismatched version?

Hi Chris, I had the same problem. I guess your gcov/gcc version is 4.7.x, which is newer than the version that Clang supports. Install a lower version of gcc, e.g. 4.4 is the most recommended version as your gcno version is 404*. I also tried with 4.6 version of gcc, which will give you a warning, but still works.

Offline

Board footer

Powered by FluxBB