Re: [DynInst_API:] codeCoverage build issue with latest master branch git version of Dyninst


Date: Fri, 13 Apr 2018 09:20:55 -0500
From: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] codeCoverage build issue with latest master branch git version of Dyninst
Hi Jim,

I just recompiled the master branch from github. I saw the same warning, but not the error. Can you try delete your existing cmake cache file and then re-configure the cmake?

Thanks,

--Xiaozhu

On Fri, Apr 13, 2018 at 8:53 AM, Jim Galarowicz <jeg@xxxxxxxxxxxxx> wrote:
Hi all,

I'm trying to build the latest git master branch version of dyninst and I'm getting these build errors in codeCoverage.

Has anyone else seen this?ÂÂ I'm using the same cmake variables that I did for 9.3.2, maybe that is the problem?

Thanks,

Jim G

[ 94%] Built target Inst
Scanning dependencies of target cfg_to_dot
[ 94%] Building CXX object examples/CMakeFiles/cfg_to_dot.dir/__/parseAPI/doc/example.cc.o
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/parseAPI/doc/example.cc: In function âint main(int, char**)â:
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/parseAPI/doc/example.cc:19:14: warning: unused parameter âargcâ [-Wunused-parameter]
Âint main(int argc, char * argv[])
ÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~
Linking CXX executable cfg_to_dot
[ 94%] Built target cfg_to_dot
Scanning dependencies of target codeCoverage
[ 95%] Building CXX object examples/CMakeFiles/codeCoverage.dir/codeCoverage/codeCoverage.C.o
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C: In function âint main(int, char**)â:
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:267:44: warning: cast from type âconst char*â to type âchar*â casts away qualifiers [-Wcast-qual]
ÂÂÂÂÂÂÂÂ findFuncByName (appImage, (char *) "initCoverage");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~~~
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:269:44: warning: cast from type âconst char*â to type âchar*â casts away qualifiers [-Wcast-qual]
ÂÂÂÂÂÂÂÂ findFuncByName (appImage, (char *) "registerFunc");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~~~
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:271:44: warning: cast from type âconst char*â to type âchar*â casts away qualifiers [-Wcast-qual]
ÂÂÂÂÂÂÂÂ findFuncByName (appImage, (char *) "incFuncCoverage");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~~~~~~
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:273:44: warning: cast from type âconst char*â to type âchar*â casts away qualifiers [-Wcast-qual]
ÂÂÂÂÂÂÂÂ findFuncByName (appImage, (char *) "registerBB");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:275:44: warning: cast from type âconst char*â to type âchar*â casts away qualifiers [-Wcast-qual]
ÂÂÂÂÂÂÂÂ findFuncByName (appImage, (char *) "incBBCoverage");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~~~~
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:277:44: warning: cast from type âconst char*â to type âchar*â casts away qualifiers [-Wcast-qual]
ÂÂÂÂÂÂÂÂ findFuncByName (appImage, (char *) "exitCoverage");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~~~
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C:290:20: warning: variable âdefaultModuleâ set but not used [-Wunused-but-set-variable]
ÂÂÂÂ BPatch_module *defaultModule;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^~~~~~~~~~~~~
Linking CXX executable codeCoverage
/usr/bin/ld: cannot open output file codeCoverage: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [examples/CMakeFiles/codeCoverage.dir/build.make:93: examples/codeCoverage] Error 1
make[1]: *** [CMakeFiles/Makefile2:1502: examples/CMakeFiles/codeCoverage.dir/all] Error 2
make: *** [Makefile:117: all] Error 2
[Â 0%] Building DyninstRT


_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

[← Prev in Thread] Current Thread [Next in Thread→]