Pthread issue while building rstudio 1.1.383 in Desktop mode


#1

here is the error message:

Determining if the function getpeereid exists failed with the following output:
Change Dir: /tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake “cmTryCompileExec/fast”
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory /tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o /grid/common/pkgs/gcc/v4.8.3/bin/gcc -DCHECK_FUNCTION_EXISTS=getpeereid -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1 /grid/common/pkgs/gcc/v4.8.3/bin/gcc -DCHECK_FUNCTION_EXISTS=getpeereid -fPIC CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -o cmTryCompileExec -rdynamic CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o: In functionmain’:
CheckFunctionExists.c:(.text+0x15): undefined reference to getpeereid' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp’
gmake[1]: *** [cmTryCompileExec] Error 1
gmake: *** [cmTryCompileExec/fast] Error 2

Determining if the pthread_create exist failed with the following output:
Change Dir: /tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" “cmTC_a4f9d/fast”
/usr/bin/gmake -f CMakeFiles/cmTC_a4f9d.dir/build.make CMakeFiles/cmTC_a4f9d.dir/build
gmake[1]: Entering directory /tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a4f9d.dir/CheckSymbolExists.c.o /grid/common/pkgs/gcc/v4.8.3/bin/gcc -o CMakeFiles/cmTC_a4f9d.dir/CheckSymbolExists.c.o -c /tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_a4f9d /grid/common/pkgsData/cmake-v3.8.2/Linux/RHEL5.0-2010-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a4f9d.dir/link.txt --verbose=1 /grid/common/pkgs/gcc/v4.8.3/bin/gcc -rdynamic CMakeFiles/cmTC_a4f9d.dir/CheckSymbolExists.c.o -o cmTC_a4f9d CMakeFiles/cmTC_a4f9d.dir/CheckSymbolExists.c.o: In functionmain’:
CheckSymbolExists.c:(.text+0x16): undefined reference to pthread_create' collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_a4f9d] Error 1 gmake[1]: Leaving directory/tmp/rstudio-1.1.383/build/CMakeFiles/CMakeTmp’
gmake: *** [cmTC_a4f9d/fast] Error 2


#2

While building the same version on RH7 machine getting the following error:

During startup - Warning message:
package “methods” in options(“defaultPackages”) was not found
During startup - Warning message:
package “methods” in options(“defaultPackages”) was not found
During startup - Warning message:
package “methods” in options(“defaultPackages”) was not found
During startup - Warning message:
package “methods” in options(“defaultPackages”) was not found
– Found LibR: /grid/common/pkgs/R/v3.4.3/lib64/R
– Found R: /grid/common/pkgs/R/v3.4.3/lib64/R
– Performing Test LIBR_MINIMUM_VERSION
– Performing Test LIBR_MINIMUM_VERSION - Success
CMake Error at src/cpp/desktop/CMakeLists.txt:72 (get_filename_component):
get_filename_component called with incorrect number of arguments

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
UUID_LIBRARIES
linked by target “rstudio-core” in directory /tmp/rstudio-1.1.383/src/cpp/core

– Configuring incomplete, errors occurred!