-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling on Amazon Linux #489
Comments
Fixed it by getting the binaries from the previously working Amazon Linux instance and installing on the new server. If anyone comes across this in the future and needs a static build, here are the binaries: |
@florisporro Please run |
This fixed the issue! 👍 Contents of CMakeError.log: [ec2-user@ip CMakeFiles]$ cat CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/ec2-user/srt/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec3532095201/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3532095201.dir/build.make CMakeFiles/cmTryCompileExec3532095201.dir/build
gmake[1]: Entering directory `/home/ec2-user/srt/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ec2-user/srt/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3532095201.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec3532095201.dir/CheckSymbolExists.c.o -c /home/ec2-user/srt/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3532095201
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3532095201.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec3532095201.dir/CheckSymbolExists.c.o -o cmTryCompileExec3532095201 -rdynamic
CMakeFiles/cmTryCompileExec3532095201.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: Leaving directory `/home/ec2-user/srt/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3532095201] Error 1
gmake: *** [cmTryCompileExec3532095201/fast] Error 2
File /home/ec2-user/srt/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/ec2-user/srt/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2808319286/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2808319286.dir/build.make CMakeFiles/cmTryCompileExec2808319286.dir/build
gmake[1]: Entering directory `/home/ec2-user/srt/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ec2-user/srt/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2808319286.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2808319286.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2808319286
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2808319286.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2808319286.dir/CheckFunctionExists.c.o -o cmTryCompileExec2808319286 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: Leaving directory `/home/ec2-user/srt/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2808319286] Error 1
gmake: *** [cmTryCompileExec2808319286/fast] Error 2 |
Building on totally clean Amazon Linux EC2 instance fails, where this previously worked without issue:
Could this be related to Python version 2.7.14?
The text was updated successfully, but these errors were encountered: