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 <[email protected]> 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
> [email protected]
> https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
_______________________________________________
Dyninst-api mailing list
[email protected]
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

Reply via email to