Skip to content
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

cmake installation in windows 11 failing #43

Open
cdebadri opened this issue Jan 7, 2023 · 0 comments
Open

cmake installation in windows 11 failing #43

cdebadri opened this issue Jan 7, 2023 · 0 comments

Comments

@cdebadri
Copy link

cdebadri commented Jan 7, 2023

Hi,
I've been trying to get this running on windows 11 but without any luck. Can someone help me to figure out what is happening? The step to generate the makefiles seem to be going fine. But after that when I'm using mingw32-make it's throwing a bunch of errors.

PS C:\Users\Debadri\gpr\build> mingw32-make
[  4%] Built target common
[ 10%] Built target vc5_common
[ 18%] Built target vc5_decoder
[ 19%] Built target md5_lib
[ 20%] Built target argument_parser
[ 21%] Built target vc5_decoder_app
[ 28%] Built target vc5_encoder
[ 30%] Built target vc5_encoder_app
[ 31%] Building CXX object source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/dng_pthread.cpp.obj
In file included from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:14:
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:174:24: error: conflicting declaration 'typedef long int dng_pthread_once_t'
  174 | #define pthread_once_t dng_pthread_once_t
      |                        ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:89:36: note: previous declaration as 'typedef struct _dng_pthread_once_t dng_pthread_once_t'
   89 | typedef struct _dng_pthread_once_t dng_pthread_once_t;
      |                                    ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:175:23: error: conflicting declaration 'typedef unsigned int dng_pthread_key_t'
  175 | #define pthread_key_t dng_pthread_key_t
      |                       ^~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:78:23: note: previous declaration as 'typedef long unsigned int dng_pthread_key_t'
   78 | typedef unsigned long dng_pthread_key_t;
      |                       ^~~~~~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/c++/11.2.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/msys64/mingw64/include/c++/11.2.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/msys64/mingw64/include/c++/11.2.0/ext/atomicity.h:35,
                 from C:/msys64/mingw64/include/c++/11.2.0/bits/shared_ptr_base.h:61,
                 from C:/msys64/mingw64/include/c++/11.2.0/bits/shared_ptr.h:53,
                 from C:/msys64/mingw64/include/c++/11.2.0/memory:77,
                 from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:42:
C:/msys64/mingw64/include/pthread.h:186:13: error: conflicting declaration 'typedef int pthread_rwlockattr_t'
  186 | typedef int pthread_rwlockattr_t;
      |             ^~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:14:
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:145:15: note: previous declaration as 'typedef void* pthread_rwlockattr_t'
  145 | typedef void *pthread_rwlockattr_t;
      |               ^~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:171:19: error: conflicting declaration 'typedef uintptr_t dng_pthread_t'
  171 | #define pthread_t dng_pthread_t
      |                   ^~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:74:23: note: previous declaration as 'typedef long unsigned int dng_pthread_t'
   74 | typedef unsigned long dng_pthread_t;
      |                       ^~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:193:24: error: using typedef-name 'dng_pthread_attr_t' after 'struct'
  193 | #define pthread_attr_t dng_pthread_attr_t
      |                        ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:94:39: note: 'dng_pthread_attr_t' has a previous declaration here
   94 | typedef struct dng_pthread_attr_impl *dng_pthread_attr_t;
      |                                       ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:193:24: error: conflicting declaration 'typedef int dng_pthread_attr_t'
  193 | #define pthread_attr_t dng_pthread_attr_t
      |                        ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:94:39: note: previous declaration as 'typedef struct dng_pthread_attr_impl* dng_pthread_attr_t'
   94 | typedef struct dng_pthread_attr_impl *dng_pthread_attr_t;
      |                                       ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:193:24: error: using typedef-name 'dng_pthread_attr_t' after 'struct'
  193 | #define pthread_attr_t dng_pthread_attr_t
      |                        ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:94:39: note: 'dng_pthread_attr_t' has a previous declaration here
   94 | typedef struct dng_pthread_attr_impl *dng_pthread_attr_t;
      |                                       ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:172:25: error: conflicting declaration 'typedef intptr_t dng_pthread_mutex_t'
  172 | #define pthread_mutex_t dng_pthread_mutex_t
      |                         ^~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:76:40: note: previous declaration as 'typedef struct dng_pthread_mutex_impl* dng_pthread_mutex_t'
   76 | typedef struct dng_pthread_mutex_impl *dng_pthread_mutex_t;
      |                                        ^~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:173:24: error: conflicting declaration 'typedef intptr_t dng_pthread_cond_t'
  173 | #define pthread_cond_t dng_pthread_cond_t
      |                        ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:77:39: note: previous declaration as 'typedef struct dng_pthread_cond_impl* dng_pthread_cond_t'
   77 | typedef struct dng_pthread_cond_impl *dng_pthread_cond_t;
      |                                       ^~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:226:26: error: conflicting declaration 'typedef intptr_t dng_pthread_rwlock_t'
  226 | #define pthread_rwlock_t dng_pthread_rwlock_t
      |                          ^~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:144:41: note: previous declaration as 'typedef struct dng_pthread_rwlock_impl* dng_pthread_rwlock_t'
  144 | typedef struct dng_pthread_rwlock_impl *dng_pthread_rwlock_t;
      |                                         ^~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:191:23: error: expected ')' before 't1'
  191 | #define pthread_equal dng_pthread_equal
      |                       ^~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:92:36: note: to match this '('
   92 | #define dng_pthread_equal(t1, t2) ((t1) == (t2))
      |                                    ^
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:191:23: error: expected ')' before 't1'
  191 | #define pthread_equal dng_pthread_equal
      |                       ^~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:92:35: note: to match this '('
   92 | #define dng_pthread_equal(t1, t2) ((t1) == (t2))
      |                                   ^
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:212:27: error: conflicting declaration of C function 'int dng_pthread_cond_init(dng_pthread_cond_impl**, const pthread_condattr_t*)'
  212 | #define pthread_cond_init dng_pthread_cond_init
      |                           ^~~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:119:5: note: previous declaration 'int dng_pthread_cond_init(dng_pthread_cond_impl**, void*)'
  119 | int dng_pthread_cond_init(dng_pthread_cond_t *cond, void * /* attrs */);
      |     ^~~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:215:32: error: conflicting declaration of C function 'int dng_pthread_cond_timedwait(dng_pthread_cond_impl**, dng_pthread_mutex_impl**, const dng_timespec*)'
  215 | #define pthread_cond_timedwait dng_pthread_cond_timedwait
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:122:5: note: previous declaration 'int dng_pthread_cond_timedwait(dng_pthread_cond_impl**, dng_pthread_mutex_impl**, dng_timespec*)'
  122 | int dng_pthread_cond_timedwait(dng_pthread_cond_t *cond, dng_pthread_mutex_t *mutex, timespec *latest_time);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:207:28: error: conflicting declaration of C function 'int dng_pthread_mutex_init(dng_pthread_mutex_impl**, const pthread_mutexattr_t*)'
  207 | #define pthread_mutex_init dng_pthread_mutex_init
      |                            ^~~~~~~~~~~~~~~~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:114:5: note: previous declaration 'int dng_pthread_mutex_init(dng_pthread_mutex_impl**, void*)'
  114 | int dng_pthread_mutex_init(dng_pthread_mutex_t *mutex, void * /* attrs */);
      |     ^~~~~~~~~~~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/c++/11.2.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/msys64/mingw64/include/c++/11.2.0/ext/atomicity.h:35,
                 from C:/msys64/mingw64/include/c++/11.2.0/bits/shared_ptr_base.h:61,
                 from C:/msys64/mingw64/include/c++/11.2.0/bits/shared_ptr.h:53,
                 from C:/msys64/mingw64/include/c++/11.2.0/memory:77,
                 from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:42:
C:/msys64/mingw64/include/c++/11.2.0/x86_64-w64-mingw32/bits/gthr-default.h: In function 'int __gthread_cond_timedwait(dng_pthread_cond_impl**, dng_pthread_mutex_impl**, const __gthread_time_t*)':
C:/msys64/mingw64/include/c++/11.2.0/x86_64-w64-mingw32/bits/gthr-default.h:872:61: error: invalid conversion from 'const __gthread_time_t*' {aka 'const dng_timespec*'} to 'dng_timespec*' [-fpermissive]
  872 |   return __gthrw_(pthread_cond_timedwait) (__cond, __mutex, __abs_timeout);
      |                                                             ^~~~~~~~~~~~~
      |                                                             |
      |                                                             const __gthread_time_t* {aka const dng_timespec*}
In file included from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:14:
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.h:122:96: note:   initializing argument 3 of 'int dng_pthread_cond_timedwait(dng_pthread_cond_impl**, dng_pthread_mutex_impl**, dng_timespec*)'
  122 | int dng_pthread_cond_timedwait(dng_pthread_cond_t *cond, dng_pthread_mutex_t *mutex, timespec *latest_time);
      |                                                                                                ^
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp: In member function 'dng_pthread_mutex_impl& dng_pthread_mutex_impl::operator=(const dng_pthread_mutex_impl&)':
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:78:77: warning: no return statement in function returning non-void [-Wreturn-type]
   78 |         dng_pthread_mutex_impl &operator=(const dng_pthread_mutex_impl &) { }
      |                                                                             ^
      |                                                                             return *this;
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp: In member function 'dng_pthread_cond_impl& dng_pthread_cond_impl::operator=(const dng_pthread_cond_impl&)':
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:98:75: warning: no return statement in function returning non-void [-Wreturn-type]
   98 |         dng_pthread_cond_impl &operator=(const dng_pthread_cond_impl &) { }
      |                                                                           ^
      |                                                                           return *this;
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp: In member function '{anonymous}::ScopedLock& {anonymous}::ScopedLock::operator=(const {anonymous}::ScopedLock&)':
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:125:61: warning: no return statement in function returning non-void [-Wreturn-type]
  125 |                 ScopedLock &operator=(const ScopedLock &) { }
      |                                                             ^
      |                                                             return *this;
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp: In function 'int dng_pthread_create(dng_pthread_t*, dng_pthread_attr_impl* const*, void* (*)(void*), void*)':
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:316:22: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  316 |                 std::auto_ptr<trampoline_args> args(new (std::nothrow) trampoline_args);
      |                      ^~~~~~~~
In file included from C:/msys64/mingw64/include/c++/11.2.0/memory:76,
                 from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:42:
C:/msys64/mingw64/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:317:22: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  317 |                 std::auto_ptr<void *> resultHolder(new (std::nothrow) (void *));
      |                      ^~~~~~~~
In file included from C:/msys64/mingw64/include/c++/11.2.0/memory:76,
                 from C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:42:
C:/msys64/mingw64/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
C:\Users\Debadri\gpr\source\lib\dng_sdk\dng_pthread.cpp:334:39: warning: NULL used in arithmetic [-Wpointer-arith]
  334 |                         if (result == NULL)
      |                                       ^~~~
mingw32-make[2]: *** [source\lib\dng_sdk\CMakeFiles\dng_sdk.dir\build.make:706: source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/dng_pthread.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:513: source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/all] Error 2
mingw32-make: *** [Makefile:90: all] Error 2

Please let me know if any further information is required.
OS - Windows 11
VS - 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant