Bug#1070747: c-blosc2: FTBFS on ppc64el: error: implicit declaration of function ‘malloc’
Sebastian Ramacher
sramacher at debian.org
Wed May 8 12:17:33 BST 2024
Source: c-blosc2
Version: 2.13.1+ds-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher at debian.org
https://buildd.debian.org/status/fetch.php?pkg=c-blosc2&arch=ppc64el&ver=2.13.1%2Bds-3&stamp=1714853092&raw=0
cd /<<PKGBUILDDIR>>/obj-powerpc64le-linux-gnu/blosc && /usr/bin/cc -DUSING_CMAKE -I/<<PKGBUILDDIR>>/obj-powerpc64le-linux-gnu/blosc -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/plugins/codecs/zfp/include -I/<<PKGBUILDDIR>>/blosc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -Wall -Wextra -MD -MT blosc/CMakeFiles/blosc2_static.dir/directories.c.o -MF CMakeFiles/blosc2_static.dir/directories.c.o.d -o CMakeFiles/blosc2_static.dir/directories.c.o -c /<<PKGBUILDDIR>>/blosc/directories.c
[ 37%] Building C object blosc/CMakeFiles/blosc_testing.dir/bitshuffle-altivec.c.o
cd /<<PKGBUILDDIR>>/obj-powerpc64le-linux-gnu/blosc && /usr/bin/cc -DBLOSC_SHARED_LIBRARY -DBLOSC_TESTING -DUSING_CMAKE -I/<<PKGBUILDDIR>>/obj-powerpc64le-linux-gnu/blosc -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/plugins/codecs/zfp/include -I/<<PKGBUILDDIR>>/blosc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -O2 -g -DNDEBUG -Wall -Wextra -DNO_WARN_X86_INTRINSICS -MD -MT blosc/CMakeFiles/blosc_testing.dir/bitshuffle-altivec.c.o -MF CMakeFiles/blosc_testing.dir/bitshuffle-altivec.c.o.d -o CMakeFiles/blosc_testing.dir/bitshuffle-altivec.c.o -c /<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c: In function ‘bshuf_trans_bit_elem_altivec’:
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:370:19: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
370 | void* tmp_buf = malloc(size * elem_size);
| ^~~~~~
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:32:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
31 | #include "transpose-altivec.h"
+++ |+#include <stdlib.h>
32 |
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:370:19: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
370 | void* tmp_buf = malloc(size * elem_size);
| ^~~~~~
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:370:19: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:380:3: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration]
380 | free(tmp_buf);
| ^~~~
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:380:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:380:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:380:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c: In function ‘bshuf_untrans_bit_elem_altivec’:
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:583:19: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
583 | void* tmp_buf = malloc(size * elem_size);
| ^~~~~~
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:583:19: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:590:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
590 | free(tmp_buf);
| ^~~~
/<<PKGBUILDDIR>>/blosc/bitshuffle-altivec.c:590:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
Cheers
--
Sebastian Ramacher
More information about the debian-science-maintainers
mailing list