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

Troubles while building #372

Open
Artholgar opened this issue Jul 10, 2023 · 1 comment
Open

Troubles while building #372

Artholgar opened this issue Jul 10, 2023 · 1 comment

Comments

@Artholgar
Copy link

Hi there !

I was trying to build c-blosc following the installation guide and I've got some errors.
Note that I'm building it on windows, so I'm using minGW and MSYS.
My error occures at:

cmake --build .

and I've got this output:

[  1%] Building C object blosc/CMakeFiles/blosc_shared.dir/blosc.c.obj
In file included from path-to-cblosc\c-blosc-main\blosc\blosc.c:61:0:
path-to-cblosc\c-blosc-main\blosc\win32/pthread.h:97:9: error: unknown type name 'INIT_ONCE'
 typedef INIT_ONCE pthread_once_t;
         ^~~~~~~~~
path-to-cblosc\c-blosc-main\blosc\win32/pthread.h: In function 'blosc_internal_pthread_once':
path-to-cblosc\c-blosc-main\blosc\win32/pthread.h:103:3: warning: implicit declaration of function 'InitOnceBeginInitialize' [-Wimplicit-function-declaration]
   InitOnceBeginInitialize(once_control, /*dwFlags=*/0, /*fPending=*/&pending,
   ^~~~~~~~~~~~~~~~~~~~~~~
path-to-cblosc\c-blosc-main\blosc\win32/pthread.h:107:5: warning: implicit declaration of function 'InitOnceComplete' [-Wimplicit-function-declaration]
     InitOnceComplete(once_control, /*dwFlags=*/0, /*lpContext=*/NULL);
     ^~~~~~~~~~~~~~~~
path-to-cblosc\c-blosc-main\blosc\blosc.c: In function 'my_malloc':
path-to-cblosc\c-blosc-main\blosc\blosc.c:214:19: warning: implicit declaration of function '_aligned_malloc' [-Wimplicit-function-declaration]
   block = (void *)_aligned_malloc(size, 32);
                   ^~~~~~~~~~~~~~~
path-to-cblosc\c-blosc-main\blosc\blosc.c: In function 'my_free':
path-to-cblosc\c-blosc-main\blosc\blosc.c:235:5: warning: implicit declaration of function '_aligned_free' [-Wimplicit-function-declaration]
     _aligned_free(block);
     ^~~~~~~~~~~~~
At top level:
path-to-cblosc\c-blosc-main\blosc\blosc.c:149:16: warning: 'g_atfork_registered' defined but not used [-Wunused-variable]
 static int32_t g_atfork_registered = 0;
                ^~~~~~~~~~~~~~~~~~~
mingw32-make[2]: *** [blosc\CMakeFiles\blosc_shared.dir\build.make:76: blosc/CMakeFiles/blosc_shared.dir/blosc.c.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:218: blosc/CMakeFiles/blosc_shared.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2

Have you any clue to solve this ?

Here is my gcc version:

gcc.exe (Rev6, Built by MSYS2 project) 13.1.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

My cmake version:

cmake version 3.27.0-rc4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
@DimitriPapadopoulos
Copy link
Contributor

You might try the same files from c-blocs-2:
https://github.com/Blosc/c-blosc2/tree/main/blosc/win32

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

2 participants