Advertisement
Guest User

gnucash cmake error

a guest
Jul 29th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. Performing C++ SOURCE FILE Test HAVE_OFX_BUG_39 failed with the following output:
  2. Change Dir: /tmp/build-gnucash/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/make" "cmTC_ef31e/fast"
  5. /usr/bin/make -f CMakeFiles/cmTC_ef31e.dir/build.make CMakeFiles/cmTC_ef31e.dir/build
  6. make[1]: Entering directory '/tmp/build-gnucash/CMakeFiles/CMakeTmp'
  7. Building CXX object CMakeFiles/cmTC_ef31e.dir/src.cxx.o
  8. /usr/bin/c++ -DHAVE_OFX_BUG_39 -o CMakeFiles/cmTC_ef31e.dir/src.cxx.o -c /tmp/build-gnucash/CMakeFiles/CMakeTmp/src.cxx
  9. Linking CXX executable cmTC_ef31e
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ef31e.dir/link.txt --verbose=1
  11. /usr/bin/c++ -DHAVE_OFX_BUG_39 CMakeFiles/cmTC_ef31e.dir/src.cxx.o -o cmTC_ef31e -rdynamic -lofx
  12. CMakeFiles/cmTC_ef31e.dir/src.cxx.o: In function `main':
  13. src.cxx:(.text+0xab): undefined reference to `ofxdate_to_time_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
  14. collect2: error: ld returned 1 exit status
  15. CMakeFiles/cmTC_ef31e.dir/build.make:97: recipe for target 'cmTC_ef31e' failed
  16. make[1]: *** [cmTC_ef31e] Error 1
  17. make[1]: Leaving directory '/tmp/build-gnucash/CMakeFiles/CMakeTmp'
  18. Makefile:126: recipe for target 'cmTC_ef31e/fast' failed
  19. make: *** [cmTC_ef31e/fast] Error 2
  20.  
  21. Return value: 1
  22. Source file was:
  23.  
  24. #include <time.h>
  25. #include <stdlib.h>
  26. #include <string>
  27. extern time_t ofxdate_to_time_t(const std::string ofxdate);
  28.  
  29. int main(int argc, char** argv)
  30. {
  31. const std::string timestr = "20160319000000";
  32. struct tm ts;
  33. ts.tm_year = 116;
  34. ts.tm_mon = 2;
  35. ts.tm_mday = 19;
  36. #ifdef _WIN32
  37. putenv("TZ=PST-8PDT-7,M 4.1.0/0,M 10.6.0/0");
  38. #else
  39. setenv("TZ", "PST 08P DT 07 M 4.1.0, M 10.6.0", 1);
  40. #endif
  41. time_t t = ofxdate_to_time_t(timestr);
  42. if (t == mktime(&ts))
  43. exit(0);
  44. exit(0);
  45. }
  46.  
  47. Performing C SOURCE FILE Test have_stringop_truncation failed with the following output:
  48. Change Dir: /tmp/build-gnucash/CMakeFiles/CMakeTmp
  49.  
  50. Run Build Command:"/usr/bin/make" "cmTC_e250b/fast"
  51. /usr/bin/make -f CMakeFiles/cmTC_e250b.dir/build.make CMakeFiles/cmTC_e250b.dir/build
  52. make[1]: Entering directory '/tmp/build-gnucash/CMakeFiles/CMakeTmp'
  53. Building C object CMakeFiles/cmTC_e250b.dir/src.c.o
  54. /usr/bin/cc -Dhave_stringop_truncation -Wstringop-truncation -o CMakeFiles/cmTC_e250b.dir/src.c.o -c /tmp/build-gnucash/CMakeFiles/CMakeTmp/src.c
  55. cc: error: unrecognized command line option '-Wstringop-truncation'
  56. CMakeFiles/cmTC_e250b.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e250b.dir/src.c.o' failed
  57. make[1]: *** [CMakeFiles/cmTC_e250b.dir/src.c.o] Error 1
  58. make[1]: Leaving directory '/tmp/build-gnucash/CMakeFiles/CMakeTmp'
  59. Makefile:126: recipe for target 'cmTC_e250b/fast' failed
  60. make: *** [cmTC_e250b/fast] Error 2
  61.  
  62. Source file was:
  63. int main(void) { return 0; }
  64. Determining if the pthread_create exist failed with the following output:
  65. Change Dir: /tmp/build-gnucash/CMakeFiles/CMakeTmp
  66.  
  67. Run Build Command:"/usr/bin/make" "cmTC_cc209/fast"
  68. /usr/bin/make -f CMakeFiles/cmTC_cc209.dir/build.make CMakeFiles/cmTC_cc209.dir/build
  69. make[1]: Entering directory '/tmp/build-gnucash/CMakeFiles/CMakeTmp'
  70. Building C object CMakeFiles/cmTC_cc209.dir/CheckSymbolExists.c.o
  71. /usr/bin/cc -Wno-deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -o CMakeFiles/cmTC_cc209.dir/CheckSymbolExists.c.o -c /tmp/build-gnucash/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  72. Linking C executable cmTC_cc209
  73. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cc209.dir/link.txt --verbose=1
  74. /usr/bin/cc -Wno-deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused CMakeFiles/cmTC_cc209.dir/CheckSymbolExists.c.o -o cmTC_cc209 -rdynamic
  75. CMakeFiles/cmTC_cc209.dir/CheckSymbolExists.c.o: In function `main':
  76. CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
  77. collect2: error: ld returned 1 exit status
  78. CMakeFiles/cmTC_cc209.dir/build.make:97: recipe for target 'cmTC_cc209' failed
  79. make[1]: *** [cmTC_cc209] Error 1
  80. make[1]: Leaving directory '/tmp/build-gnucash/CMakeFiles/CMakeTmp'
  81. Makefile:126: recipe for target 'cmTC_cc209/fast' failed
  82. make: *** [cmTC_cc209/fast] Error 2
  83.  
  84. File /tmp/build-gnucash/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  85. /* */
  86. #include <pthread.h>
  87.  
  88. int main(int argc, char** argv)
  89. {
  90. (void)argv;
  91. #ifndef pthread_create
  92. return ((int*)(&pthread_create))[argc];
  93. #else
  94. (void)argc;
  95. return 0;
  96. #endif
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement