Skip to content

Instantly share code, notes, and snippets.

@ubuntuaddicted
Created February 4, 2015 04:11
Show Gist options
  • Save ubuntuaddicted/60b551542b13017efd07 to your computer and use it in GitHub Desktop.
Save ubuntuaddicted/60b551542b13017efd07 to your computer and use it in GitHub Desktop.
obs-studio xubuntu 14.04.1 build error-2
Determining size of __int64 failed with the following output:
Change Dir: /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2997136091/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2997136091.dir/build.make CMakeFiles/cmTryCompileExec2997136091.dir/build
make[1]: Entering directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2997136091.dir/__INT64.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTryCompileExec2997136091.dir/__INT64.c.o -c /home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT64.c
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT64.c:17:22: error: ‘__int64’ undeclared here (not in a function)
#define SIZE (sizeof(__int64))
^
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT64.c:19:12: note: in expansion of macro ‘SIZE’
('0' + ((SIZE / 10000)%10)),
^
make[1]: Leaving directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec2997136091.dir/__INT64.c.o] Error 1
make: *** [cmTryCompileExec2997136091/fast] Error 2
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT64.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(__int64))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining size of __int32 failed with the following output:
Change Dir: /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3864219247/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3864219247.dir/build.make CMakeFiles/cmTryCompileExec3864219247.dir/build
make[1]: Entering directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3864219247.dir/__INT32.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTryCompileExec3864219247.dir/__INT32.c.o -c /home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT32.c
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT32.c:17:22: error: ‘__int32’ undeclared here (not in a function)
#define SIZE (sizeof(__int32))
^
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT32.c:19:12: note: in expansion of macro ‘SIZE’
('0' + ((SIZE / 10000)%10)),
^
make[1]: *** [CMakeFiles/cmTryCompileExec3864219247.dir/__INT32.c.o] Error 1
make[1]: Leaving directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3864219247/fast] Error 2
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/__INT32.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(__int32))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining size of SSIZE_T failed with the following output:
Change Dir: /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec1765385990/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1765385990.dir/build.make CMakeFiles/cmTryCompileExec1765385990.dir/build
make[1]: Entering directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1765385990.dir/UPPERCASE_SSIZE_T.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTryCompileExec1765385990.dir/UPPERCASE_SSIZE_T.c.o -c /home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/UPPERCASE_SSIZE_T.c
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/UPPERCASE_SSIZE_T.c:17:22: error: ‘SSIZE_T’ undeclared here (not in a function)
#define SIZE (sizeof(SSIZE_T))
^
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/UPPERCASE_SSIZE_T.c:19:12: note: in expansion of macro ‘SIZE’
('0' + ((SIZE / 10000)%10)),
^
make[1]: *** [CMakeFiles/cmTryCompileExec1765385990.dir/UPPERCASE_SSIZE_T.c.o] Error 1
make[1]: Leaving directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec1765385990/fast] Error 2
/home/ubu/obs-studio/build/CMakeFiles/CheckTypeSize/UPPERCASE_SSIZE_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(SSIZE_T))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining if the function _strtoi64 exists failed with the following output:
Change Dir: /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3849959873/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3849959873.dir/build.make CMakeFiles/cmTryCompileExec3849959873.dir/build
make[1]: Entering directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3849959873.dir/CheckFunctionExists.c.o
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=_strtoi64 -o CMakeFiles/cmTryCompileExec3849959873.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3849959873
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3849959873.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=_strtoi64 CMakeFiles/cmTryCompileExec3849959873.dir/CheckFunctionExists.c.o -o cmTryCompileExec3849959873 -rdynamic
CMakeFiles/cmTryCompileExec3849959873.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `_strtoi64'
collect2: error: ld returned 1 exit status
make[1]: Leaving directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec3849959873] Error 1
make: *** [cmTryCompileExec3849959873/fast] Error 2
Determining if the function _snprintf exists failed with the following output:
Change Dir: /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2340714209/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2340714209.dir/build.make CMakeFiles/cmTryCompileExec2340714209.dir/build
make[1]: Entering directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2340714209.dir/CheckFunctionExists.c.o
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=_snprintf -o CMakeFiles/cmTryCompileExec2340714209.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2340714209
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2340714209.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=_snprintf CMakeFiles/cmTryCompileExec2340714209.dir/CheckFunctionExists.c.o -o cmTryCompileExec2340714209 -rdynamic
CMakeFiles/cmTryCompileExec2340714209.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `_snprintf'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2340714209] Error 1
make[1]: Leaving directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2340714209/fast] Error 2
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3384749408/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3384749408.dir/build.make CMakeFiles/cmTryCompileExec3384749408.dir/build
make[1]: Entering directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3384749408.dir/CheckSymbolExists.c.o
/usr/bin/cc -Wall -Wextra -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-field-initializers -std=gnu99 -fno-strict-aliasing -o CMakeFiles/cmTryCompileExec3384749408.dir/CheckSymbolExists.c.o -c /home/ubu/obs-studio/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3384749408
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3384749408.dir/link.txt --verbose=1
/usr/bin/cc -Wall -Wextra -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-field-initializers -std=gnu99 -fno-strict-aliasing CMakeFiles/cmTryCompileExec3384749408.dir/CheckSymbolExists.c.o -o cmTryCompileExec3384749408 -rdynamic
CMakeFiles/cmTryCompileExec3384749408.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: Leaving directory `/home/ubu/obs-studio/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec3384749408] Error 1
make: *** [cmTryCompileExec3384749408/fast] Error 2
File /home/ubu/obs-studio/build/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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment