Advertisement
Guest User

libfmtc Compilation w/gcc9.2

a guest
Jan 22nd, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. $ make
  2. CXX ../../src/AvstpWrapper.lo
  3. CXX ../../src/main.lo
  4. In file included from ./../../src/conc/Interlocked.h:132,
  5. from ./../../src/conc/AtomicPtr.hpp:27,
  6. from ./../../src/conc/AtomicPtr.h:123,
  7. from ./../../src/conc/CellPool.h:30,
  8. from ./../../src/conc/ObjPool.h:44,
  9. from ../../src/fmtc/Bitdepth.h:30,
  10. from ../../src/main.cpp:18:
  11. ./../../src/conc/Interlocked.hpp: In static member function 'static void* conc::Interlocked::swap(void* volatile&, void*)':
  12. ./../../src/conc/Interlocked.hpp:354:3: error: no matching function for call to 'swap(volatile IntPtr&, conc::Interlocked::IntPtr)'
  13. 354 | )
  14. | ^
  15. ./../../src/conc/Interlocked.hpp:50:9: note: candidate: 'static int32_t conc::Interlocked::swap(volatile int32_t&, int32_t)' <near match>
  16. 50 | int32_t Interlocked::swap (int32_t volatile &dest, int32_t excg)
  17. | ^~~~~~~~~~~
  18. ./../../src/conc/Interlocked.hpp:50:9: note: conversion of argument 1 would be ill-formed:
  19. ./../../src/conc/Interlocked.hpp:352:4: error: cannot bind non-const lvalue reference of type 'volatile int32_t&' {aka 'volatile int&'} to an rvalue of type 'int32_t' {aka 'int'}
  20. 352 | *reinterpret_cast <IntPtr volatile *> (&dest_ptr),
  21. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. ./../../src/conc/Interlocked.hpp:124:9: note: candidate: 'static int64_t conc::Interlocked::swap(volatile int64_t&, int64_t)' <near match>
  23. 124 | int64_t Interlocked::swap (int64_t volatile &dest, int64_t excg)
  24. | ^~~~~~~~~~~
  25. ./../../src/conc/Interlocked.hpp:124:9: note: conversion of argument 1 would be ill-formed:
  26. ./../../src/conc/Interlocked.hpp:352:4: error: cannot bind non-const lvalue reference of type 'volatile int64_t&' {aka 'volatile long long int&'} to an rvalue of type 'int64_t' {aka 'long long int'}
  27. 352 | *reinterpret_cast <IntPtr volatile *> (&dest_ptr),
  28. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. ./../../src/conc/Interlocked.hpp:348:8: note: candidate: 'static void* conc::Interlocked::swap(void* volatile&, void*)' <near match>
  30. 348 | void * Interlocked::swap (void * volatile &dest_ptr, void *excg_ptr)
  31. | ^~~~~~~~~~~
  32. ./../../src/conc/Interlocked.hpp:348:8: note: conversion of argument 2 would be ill-formed:
  33. ./../../src/conc/Interlocked.hpp:353:4: error: invalid conversion from 'conc::Interlocked::IntPtr' {aka 'long int'} to 'void*' [-fpermissive]
  34. 353 | reinterpret_cast <IntPtr> (excg_ptr)
  35. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. | |
  37. | conc::Interlocked::IntPtr {aka long int}
  38. ./../../src/conc/Interlocked.hpp: In static member function 'static void* conc::Interlocked::cas(void* volatile&, void*, void*)':
  39. ./../../src/conc/Interlocked.hpp:367:3: error: no matching function for call to 'cas(volatile IntPtr&, conc::Interlocked::IntPtr, conc::Interlocked::IntPtr)'
  40. 367 | )
  41. | ^
  42. ./../../src/conc/Interlocked.hpp:83:9: note: candidate: 'static int32_t conc::Interlocked::cas(volatile int32_t&, int32_t, int32_t)' <near match>
  43. 83 | int32_t Interlocked::cas (int32_t volatile &dest, int32_t excg, int32_t comp)
  44. | ^~~~~~~~~~~
  45. ./../../src/conc/Interlocked.hpp:83:9: note: conversion of argument 1 would be ill-formed:
  46. ./../../src/conc/Interlocked.hpp:364:4: error: cannot bind non-const lvalue reference of type 'volatile int32_t&' {aka 'volatile int&'} to an rvalue of type 'int32_t' {aka 'int'}
  47. 364 | *reinterpret_cast <IntPtr volatile *> (&dest_ptr),
  48. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. ./../../src/conc/Interlocked.hpp:181:9: note: candidate: 'static int64_t conc::Interlocked::cas(volatile int64_t&, int64_t, int64_t)' <near match>
  50. 181 | int64_t Interlocked::cas (int64_t volatile &dest, int64_t excg, int64_t comp)
  51. | ^~~~~~~~~~~
  52. ./../../src/conc/Interlocked.hpp:181:9: note: conversion of argument 1 would be ill-formed:
  53. ./../../src/conc/Interlocked.hpp:364:4: error: cannot bind non-const lvalue reference of type 'volatile int64_t&' {aka 'volatile long long int&'} to an rvalue of type 'int64_t' {aka 'long long int'}
  54. 364 | *reinterpret_cast <IntPtr volatile *> (&dest_ptr),
  55. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  56. ./../../src/conc/Interlocked.hpp:360:8: note: candidate: 'static void* conc::Interlocked::cas(void* volatile&, void*, void*)' <near match>
  57. 360 | void * Interlocked::cas (void * volatile &dest_ptr, void *excg_ptr, void *comp_ptr)
  58. | ^~~~~~~~~~~
  59. ./../../src/conc/Interlocked.hpp:360:8: note: conversion of argument 3 would be ill-formed:
  60. ./../../src/conc/Interlocked.hpp:366:4: error: invalid conversion from 'conc::Interlocked::IntPtr' {aka 'long int'} to 'void*' [-fpermissive]
  61. 366 | reinterpret_cast <IntPtr> (comp_ptr)
  62. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. | |
  64. | conc::Interlocked::IntPtr {aka long int}
  65. make: *** [../../src/main.lo] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement