Guest User

Untitled

a guest
Aug 21st, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.87 KB | None | 0 0
  1. root@mobile-vcs-1:~/setup/ffmpeg-old # ./configure --enable-nonfree --enable-cuda-nvcc --enable-cuvid --enable-nvenc --enable-libnpp --extra-cflags=-I/usr/local/cuda-10.0/include/ --extra-ldflags=-L/usr/local/cuda-10.0/lib64/
  2. ERROR: failed checking for nvcc.
  3.  
  4. If you think configure made a mistake, make sure you are using the latest
  5. version from Git. If the latest version fails, report the problem to the
  6. [email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
  7. Include the log file "ffbuild/config.log" produced by configure as this will help
  8. solve the problem.
  9.  
  10. Last page or so of ffbuild/config.log:
  11.  
  12. gcc -L/usr/local/cuda-10.0/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.BrPLE2kI/test /tmp/ffconf.BrPLE2kI/test.o -lm
  13. check_mathfunc sinf 1 -lm
  14. test_ld cc -lm
  15. test_cc
  16. BEGIN /tmp/ffconf.BrPLE2kI/test.c
  17. 1 #include <math.h>
  18. 2 float foo(float f, float g) { return sinf(f); }
  19. 3 int main(void){ return (int) foo; }
  20. END /tmp/ffconf.BrPLE2kI/test.c
  21. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/usr/local/cuda-10.0/include/ -std=c11 -fomit-frame-pointer -fPIC -I/usr/local/include -pthread -c -o /tmp/ffconf.BrPLE2kI/test.o /tmp/ffconf.BrPLE2kI/test.c
  22. /tmp/ffconf.BrPLE2kI/test.c: In function 'main':
  23. /tmp/ffconf.BrPLE2kI/test.c:3:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  24. int main(void){ return (int) foo; }
  25. ^
  26. gcc -L/usr/local/cuda-10.0/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.BrPLE2kI/test /tmp/ffconf.BrPLE2kI/test.o -lm
  27. check_mathfunc trunc 1 -lm
  28. test_ld cc -lm
  29. test_cc
  30. BEGIN /tmp/ffconf.BrPLE2kI/test.c
  31. 1 #include <math.h>
  32. 2 float foo(float f, float g) { return trunc(f); }
  33. 3 int main(void){ return (int) foo; }
  34. END /tmp/ffconf.BrPLE2kI/test.c
  35. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/usr/local/cuda-10.0/include/ -std=c11 -fomit-frame-pointer -fPIC -I/usr/local/include -pthread -c -o /tmp/ffconf.BrPLE2kI/test.o /tmp/ffconf.BrPLE2kI/test.c
  36. /tmp/ffconf.BrPLE2kI/test.c: In function 'main':
  37. /tmp/ffconf.BrPLE2kI/test.c:3:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  38. int main(void){ return (int) foo; }
  39. ^
  40. gcc -L/usr/local/cuda-10.0/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.BrPLE2kI/test /tmp/ffconf.BrPLE2kI/test.o -lm
  41. check_mathfunc truncf 1 -lm
  42. test_ld cc -lm
  43. test_cc
  44. BEGIN /tmp/ffconf.BrPLE2kI/test.c
  45. 1 #include <math.h>
  46. 2 float foo(float f, float g) { return truncf(f); }
  47. 3 int main(void){ return (int) foo; }
  48. END /tmp/ffconf.BrPLE2kI/test.c
  49. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/usr/local/cuda-10.0/include/ -std=c11 -fomit-frame-pointer -fPIC -I/usr/local/include -pthread -c -o /tmp/ffconf.BrPLE2kI/test.o /tmp/ffconf.BrPLE2kI/test.c
  50. /tmp/ffconf.BrPLE2kI/test.c: In function 'main':
  51. /tmp/ffconf.BrPLE2kI/test.c:3:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  52. int main(void){ return (int) foo; }
  53. ^
  54. gcc -L/usr/local/cuda-10.0/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.BrPLE2kI/test /tmp/ffconf.BrPLE2kI/test.o -lm
  55. check_complexfunc cabs 1
  56. test_ld cc
  57. test_cc
  58. BEGIN /tmp/ffconf.BrPLE2kI/test.c
  59. 1 #include <complex.h>
  60. 2 #include <math.h>
  61. 3 float foo(complex float f, complex float g) { return cabs(f * I); }
  62. 4 int main(void){ return (int) foo; }
  63. END /tmp/ffconf.BrPLE2kI/test.c
  64. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/usr/local/cuda-10.0/include/ -std=c11 -fomit-frame-pointer -fPIC -I/usr/local/include -pthread -c -o /tmp/ffconf.BrPLE2kI/test.o /tmp/ffconf.BrPLE2kI/test.c
  65. /tmp/ffconf.BrPLE2kI/test.c: In function 'main':
  66. /tmp/ffconf.BrPLE2kI/test.c:4:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  67. int main(void){ return (int) foo; }
  68. ^
  69. gcc -L/usr/local/cuda-10.0/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.BrPLE2kI/test /tmp/ffconf.BrPLE2kI/test.o
  70. /tmp/ffconf.BrPLE2kI/test.o: In function `foo':
  71. test.c:(.text+0xb3): undefined reference to `cabs'
  72. collect2: error: ld returned 1 exit status
  73. check_complexfunc cexp 1
  74. test_ld cc
  75. test_cc
  76. BEGIN /tmp/ffconf.BrPLE2kI/test.c
  77. 1 #include <complex.h>
  78. 2 #include <math.h>
  79. 3 float foo(complex float f, complex float g) { return cexp(f * I); }
  80. 4 int main(void){ return (int) foo; }
  81. END /tmp/ffconf.BrPLE2kI/test.c
  82. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/usr/local/cuda-10.0/include/ -std=c11 -fomit-frame-pointer -fPIC -I/usr/local/include -pthread -c -o /tmp/ffconf.BrPLE2kI/test.o /tmp/ffconf.BrPLE2kI/test.c
  83. /tmp/ffconf.BrPLE2kI/test.c: In function 'main':
  84. /tmp/ffconf.BrPLE2kI/test.c:4:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  85. int main(void){ return (int) foo; }
  86. ^
  87. gcc -L/usr/local/cuda-10.0/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.BrPLE2kI/test /tmp/ffconf.BrPLE2kI/test.o
  88. /tmp/ffconf.BrPLE2kI/test.o: In function `foo':
  89. test.c:(.text+0xb1): undefined reference to `cexp'
  90. collect2: error: ld returned 1 exit status
  91. check_nvcc cuda_nvcc
  92. test_nvcc
  93. BEGIN /tmp/ffconf.BrPLE2kI/test.cu
  94. 1 extern "C" {
  95. 2 __global__ void hello(unsigned char *data) {}
  96. 3 }
  97. END /tmp/ffconf.BrPLE2kI/test.cu
  98. nvcc -gencode arch=compute_30,code=sm_30 -O2 -m64 -ptx -c -o /tmp/ffconf.BrPLE2kI/test.o /tmp/ffconf.BrPLE2kI/test.cu
  99. cc1plus: fatal error: cuda_runtime.h: No such file or directory
  100. compilation terminated.
  101. ERROR: failed checking for nvcc.
Advertisement
Add Comment
Please, Sign In to add comment