Re: [DynInst_API:] Status of Dyninst 10


Date: Wed, 24 Oct 2018 11:35:25 -0500
From: Xiaozhu Meng <mxz297@xxxxxxxxx>
Subject: Re: [DynInst_API:] Status of Dyninst 10
Hi Stan,

The CMakeError.log is misleading. The real error should be output to the terminal.Â

CMake will always test different flags for pthread, such as -lpthreads, -pthreads, and so on. Some of them will fail and CMake will write them to CMakeError.log. Somehow CMake does not write the real error to CMakeError.log.

Let us know the real error.

Thanks,

--Xiaozhu

On Mon, Oct 22, 2018 at 3:32 PM Stan Cox <scox@xxxxxxxxxx> wrote:
I have not been able to dive into this but mentioning in case there is an obvious change to configuring and building the new-parallel-parsing branch.

With fedora 28
ÂÂcmake -DCMAKE_INSTALL_PREFIX=.../dyninst/install -DCMAKE_BUILD_TYPE=debug .../dyninst/src/CMakeLists.txt
In CMakeError.log I see (-lpthread on linux)
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /work/scox/dyninst/src/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_3252e/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_3252e.dir/build.make CMakeFiles/cmTC_3252e.dir/build
gmake[1]: Entering directory '.../dyninst/src/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3252e.dir/CheckFunctionExists.c.o
/usr/bin/gccÂÂ -DCHECK_FUNCTION_EXISTS=pthread_createÂÂ -o CMakeFiles/cmTC_3252e.dir/CheckFunctionExists.c.oÂÂ -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_3252e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3252e.dir/link.txt --verbose=1
/usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_3252e.dir/CheckFunctionExists.c.o -o cmTC_3252e -lpthreads
/usr/bin/ld: cannot find -lpthreads
_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
[← Prev in Thread] Current Thread [Next in Thread→]