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

2018-04-13 Thread Jim Galarowicz

Hi Xiaozhu,

An update:

If I change /examples/CMakeFiles/codeCoverage.dir/link.txt to use 
codeCoverage.exe instead of codeCoverage, the build continues on until 
the same error happens wth unstrip.    I'm using gcc/g++ 7.2.1.  I'm not 
sure if that is playing a factor in these errors.


Thanks,

Jim G


On 04/13/2018 12:09 PM, Jim Galarowicz wrote:


Hi Xiaozhu,

Do you mean remove the CMakeCache.txt file and then touch 
CMakeLists.txt and do a make to reconfigure cmake?


This is what I get when I do that.  The build complains about no 
/examples/unstrip files.


Thanks,

Jim G

[jeg@localhost dyninst-9.3.3]$ touch CMakeLists.txt
[jeg@localhost dyninst-9.3.3]$ make
-- -- Input platform:
-- -- Attempting to automatically identify platform: 
x86_64-unknown-linux2.4

-- Found libiberty: /usr/lib64/libiberty.a
-- Using libiberty /usr/lib64/libiberty.a
-- Disabling Boost's own CMake--known buggy in many cases
-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   thread
--   system
--   date_time
-- Boost includes: /usr/include
-- Boost library dirs: /usr/lib64
-- Boost thread library: /usr/lib64/libboost_thread.so
-- Boost libraries: 
/usr/lib64/libboost_thread.so;/usr/lib64/libboost_system.so;/usr/lib64/libboost_date_time.so

-- C++11 support found, required flags are: -std=c++11
-- Enabling ThreadDB support
-- Set arch and platform based definitions
-- Found g++, enabling -fvisibility=hidden
-- Options set
-- Set optimization flags
-- cotire 1.7.8 loaded.
-- Building common...
-- Processing dependent target /usr/lib64/libiberty.a...
-- Building dynElf...
-- Processing dependent target /usr/lib64/libelf.so.1...
-- Building dynDwarf...
-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target /usr/lib64/libdw.so...
-- Processing dependent target /usr/lib64/libelf.so.1...
-- Building symLite...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Building instructionAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Building symtabAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Processing dependent target /usr/lib64/libelf.so.1...
-- Processing dependent target dynDwarf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/dwarf

-- Processing dependent target /usr/lib64/libdw.so...
-- Building parseAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target instructionAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/instructionAPI

-- Processing dependent target symtabAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/symtabAPI

-- Building pcontrol...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target symtabAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/symtabAPI

-- Building stackwalk...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target instructionAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/instructionAPI

-- Processing dependent target pcontrol...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/proccontrol

-- Processing dependent target dynDwarf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/dwarf

-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Processing dependent target symtabAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/

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

2018-04-13 Thread Jim Galarowicz

Hi Xiaozhu,

Do you mean remove the CMakeCache.txt file and then touch CMakeLists.txt 
and do a make to reconfigure cmake?


This is what I get when I do that.  The build complains about no 
/examples/unstrip files.


Thanks,

Jim G

[jeg@localhost dyninst-9.3.3]$ touch CMakeLists.txt
[jeg@localhost dyninst-9.3.3]$ make
-- -- Input platform:
-- -- Attempting to automatically identify platform: x86_64-unknown-linux2.4
-- Found libiberty: /usr/lib64/libiberty.a
-- Using libiberty /usr/lib64/libiberty.a
-- Disabling Boost's own CMake--known buggy in many cases
-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   thread
--   system
--   date_time
-- Boost includes: /usr/include
-- Boost library dirs: /usr/lib64
-- Boost thread library: /usr/lib64/libboost_thread.so
-- Boost libraries: 
/usr/lib64/libboost_thread.so;/usr/lib64/libboost_system.so;/usr/lib64/libboost_date_time.so

-- C++11 support found, required flags are: -std=c++11
-- Enabling ThreadDB support
-- Set arch and platform based definitions
-- Found g++, enabling -fvisibility=hidden
-- Options set
-- Set optimization flags
-- cotire 1.7.8 loaded.
-- Building common...
-- Processing dependent target /usr/lib64/libiberty.a...
-- Building dynElf...
-- Processing dependent target /usr/lib64/libelf.so.1...
-- Building dynDwarf...
-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target /usr/lib64/libdw.so...
-- Processing dependent target /usr/lib64/libelf.so.1...
-- Building symLite...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Building instructionAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Building symtabAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Processing dependent target /usr/lib64/libelf.so.1...
-- Processing dependent target dynDwarf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/dwarf

-- Processing dependent target /usr/lib64/libdw.so...
-- Building parseAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target instructionAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/instructionAPI

-- Processing dependent target symtabAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/symtabAPI

-- Building pcontrol...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target symtabAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/symtabAPI

-- Building stackwalk...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/common

-- Processing dependent target instructionAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/instructionAPI

-- Processing dependent target pcontrol...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/proccontrol

-- Processing dependent target dynDwarf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/dwarf

-- Processing dependent target dynElf...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/elf

-- Processing dependent target symtabAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/symtabAPI

-- Processing dependent target parseAPI...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.localdomain/dyninst-9.3.3/parseAPI

-- Building patchAPI...
-- Processing dependent target common...
-- Found dependency location 
/home/jeg/openspeedshop-externals/BUILD/localhost.loca

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

2018-04-13 Thread Xiaozhu Meng
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  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.localdomai
> n/dyninst-9.3.3/parseAPI/doc/example.cc: In function ‘int main(int,
> char**)’:
> /home/jeg/openspeedshop-externals/BUILD/localhost.localdomai
> n/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/codeCovera
> ge.dir/codeCoverage/codeCoverage.C.o
> /home/jeg/openspeedshop-externals/BUILD/localhost.localdomai
> n/dyninst-9.3.3/examples/codeCoverage/codeCoverage.C: In function ‘int
> main(int, char**)’:
> /home/jeg/openspeedshop-externals/BUILD/localhost.localdomai
> n/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.localdomai
> n/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.localdomai
> n/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.localdomai
> n/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.localdomai
> n/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.localdomai
> n/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.localdomai
> n/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@cs.wisc.edu
> https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
___
Dyninst-api mailing list
Dyninst-api@cs.wisc.edu
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

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

2018-04-13 Thread Jim Galarowicz

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@cs.wisc.edu
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api