Opened 5 months ago

Last modified 5 months ago

#70215 assigned defect

py-hdf5plugin tries to use VSX code on ppc, which expectedly breaks the build

Reported by: barracuda156 Owned by: joefowler (Joe Fowler)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: powerpc Cc:
Port: py311-hdf5plugin

Description (last modified by barracuda156)

INFO:root:/opt/local/bin/gcc-mp-13 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -DSHUFFLE_NEON_ENABLED=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -DH5_USE_18_API -Isrc/hdf5/include -Isrc/hdf5/include/darwin -Isrc/c-blosc2 -Isrc/c-blosc2/blosc -Isrc/c-blosc2/include -Isrc/c-blosc2/internal-complibs/lz4-1.9.4 -Isrc/c-blosc/internal-complibs/zlib-1.2.13 -Isrc/c-blosc2/internal-complibs/zstd-1.5.5 -Isrc/c-blosc2/internal-complibs/zstd-1.5.5/common -Isrc/PyTables/hdf5-blosc2/src -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/c-blosc2/blosc/b2nd.c -o build/temp.macosx-10.6-ppc-cpython-311/src/c-blosc2/blosc/b2nd.o -std=gnu99 -O3 -ffast-math -pthread
In file included from /usr/include/string.h:148,
                 from src/c-blosc2/include/blosc2/blosc2-common.h:17,
                 from src/c-blosc2/include/blosc2.h:23,
                 from src/c-blosc2/include/b2nd.h:29,
                 from src/c-blosc2/blosc/b2nd.c:11:
In function '__inline_memcpy_chk',
    inlined from 'swap_store' at src/c-blosc2/include/blosc2.h:2159:3,
    inlined from 'b2nd_serialize_meta' at src/c-blosc2/blosc/b2nd.c:84:3:
/usr/include/secure/_string.h:58:10: warning: '*(unsigned int *)pa2_' may be used uninitialized [-Wmaybe-uninitialized]
   58 |   return __builtin___memcpy_chk (__dest, __src, __len, __darwin_obsz0(__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'swap_store',
    inlined from 'b2nd_deserialize_meta' at src/c-blosc2/include/b2nd.h:582:5,
    inlined from 'b2nd_from_schunk' at src/c-blosc2/blosc/b2nd.c:382:3:
src/c-blosc2/include/blosc2.h:2159:3: warning: '*(unsigned int *)pa2_' may be used uninitialized [-Wmaybe-uninitialized]
 2159 |   memcpy(dest, pa2_, size);
      |   ^~~~~~
In function 'swap_store',
    inlined from 'b2nd_deserialize_meta' at src/c-blosc2/include/b2nd.h:582:5,
    inlined from 'b2nd_print_meta' at src/c-blosc2/blosc/b2nd.c:1099:3:
src/c-blosc2/include/blosc2.h:2159:3: warning: '*(unsigned int *)pa2_' may be used uninitialized [-Wmaybe-uninitialized]
 2159 |   memcpy(dest, pa2_, size);
      |   ^~~~~~
INFO:root:/opt/local/bin/gcc-mp-13 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -DSHUFFLE_NEON_ENABLED=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -DH5_USE_18_API -Isrc/hdf5/include -Isrc/hdf5/include/darwin -Isrc/c-blosc2 -Isrc/c-blosc2/blosc -Isrc/c-blosc2/include -Isrc/c-blosc2/internal-complibs/lz4-1.9.4 -Isrc/c-blosc/internal-complibs/zlib-1.2.13 -Isrc/c-blosc2/internal-complibs/zstd-1.5.5 -Isrc/c-blosc2/internal-complibs/zstd-1.5.5/common -Isrc/PyTables/hdf5-blosc2/src -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/c-blosc2/blosc/b2nd_utils.c -o build/temp.macosx-10.6-ppc-cpython-311/src/c-blosc2/blosc/b2nd_utils.o -std=gnu99 -O3 -ffast-math -pthread
INFO:root:/opt/local/bin/gcc-mp-13 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -DSHUFFLE_NEON_ENABLED=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -DH5_USE_18_API -Isrc/hdf5/include -Isrc/hdf5/include/darwin -Isrc/c-blosc2 -Isrc/c-blosc2/blosc -Isrc/c-blosc2/include -Isrc/c-blosc2/internal-complibs/lz4-1.9.4 -Isrc/c-blosc/internal-complibs/zlib-1.2.13 -Isrc/c-blosc2/internal-complibs/zstd-1.5.5 -Isrc/c-blosc2/internal-complibs/zstd-1.5.5/common -Isrc/PyTables/hdf5-blosc2/src -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/c-blosc2/blosc/bitshuffle-altivec.c -o build/temp.macosx-10.6-ppc-cpython-311/src/c-blosc2/blosc/bitshuffle-altivec.o -std=gnu99 -O3 -ffast-math -pthread
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bitunshuffle1_altivec':
src/c-blosc2/blosc/bitshuffle-altivec.c:132:9: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  132 |         xmm0[kk] = vec_xl((ii +kk) * nbyte_row + jj, in_b);
      |         ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:132:9: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:170:12: error: '__builtin_altivec_vbpermq2' requires the '-mcpu=power8' and '-mvsx' options
  170 |            tmp = (__vector uint16_t) vec_bperm(xmm, masks[kk]);
      |            ^~~
src/c-blosc2/blosc/bitshuffle-altivec.c:170:12: note: overloaded builtin '__builtin_vec_vbperm_api' is implemented by builtin '__builtin_altivec_vbpermq2'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_trans_byte_elem_16':
src/c-blosc2/blosc/bitshuffle-altivec.c:188:7: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  188 |       xmm0[j] = vec_xl(bytesoftype * i + 16 * j, (const uint8_t*)in);
      |       ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:188:7: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:194:7: error: '__builtin_vsx_stxvw4x_v16qi' requires the '-mvsx' option
  194 |       vec_xst(xmm0[j], i + j * size, (uint8_t*)out);
      |       ^~~~~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:194:7: note: overloaded builtin '__builtin_vec_vsx_st' is implemented by builtin '__builtin_vsx_stxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_trans_byte_elem_32':
src/c-blosc2/blosc/bitshuffle-altivec.c:208:7: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  208 |       xmm0[j] = vec_xl(bytesoftype * i + 16 * j, (const uint8_t*)in);
      |       ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:208:7: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:214:7: error: '__builtin_vsx_stxvw4x_v16qi' requires the '-mvsx' option
  214 |       vec_xst(xmm0[j], i + j * size, (uint8_t*)out);
      |       ^~~~~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:214:7: note: overloaded builtin '__builtin_vec_vsx_st' is implemented by builtin '__builtin_vsx_stxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_trans_byte_elem_64':
src/c-blosc2/blosc/bitshuffle-altivec.c:228:7: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  228 |       xmm0[j] = vec_xl(bytesoftype * i + 16 * j, (const uint8_t*)in);
      |       ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:228:7: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:234:7: error: '__builtin_vsx_stxvw4x_v16qi' requires the '-mvsx' option
  234 |       vec_xst(xmm0[j], i + j * size, (uint8_t*)out);
      |       ^~~~~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:234:7: note: overloaded builtin '__builtin_vec_vsx_st' is implemented by builtin '__builtin_vsx_stxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_trans_byte_elem_128':
src/c-blosc2/blosc/bitshuffle-altivec.c:248:7: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  248 |       xmm0[j] = vec_xl(bytesoftype * i + 16 * j, (const uint8_t*)in);
      |       ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:248:7: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:254:7: error: '__builtin_vsx_stxvw4x_v16qi' requires the '-mvsx' option
  254 |       vec_xst(xmm0[j], i + j * size, (uint8_t*)out);
      |       ^~~~~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:254:7: note: overloaded builtin '__builtin_vec_vsx_st' is implemented by builtin '__builtin_vsx_stxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_trans_bit_byte_altivec':
src/c-blosc2/blosc/bitshuffle-altivec.c:359:5: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  359 |     data = vec_xl(ii, in_b);
      |     ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:359:5: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:363:7: error: '__builtin_altivec_vbpermq2' requires the '-mcpu=power8' and '-mvsx' options
  363 |       tmp = (__vector uint16_t) vec_bperm(data, masks[kk]);
      |       ^~~
src/c-blosc2/blosc/bitshuffle-altivec.c:363:7: note: overloaded builtin '__builtin_vec_vbperm_api' is implemented by builtin '__builtin_altivec_vbpermq2'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_trans_byte_bitrow_altivec':
src/c-blosc2/blosc/bitshuffle-altivec.c:439:11: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  439 |           xmm0[k] = vec_xl((ii + k) * nbyte_row + jj, in_b);
      |           ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:439:11: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:470:11: error: '__builtin_vsx_stxvw4x_v16qi' requires the '-mvsx' option
  470 |           vec_xst(xmm1[k], (jj + k * 2) * nrows + ii, out_b);
      |           ^~~~~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:470:11: note: overloaded builtin '__builtin_vec_vsx_st' is implemented by builtin '__builtin_vsx_stxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:477:9: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  477 |         xmm0[k] = vec_xl((ii + k) * nbyte_row + jj, in_b);
      |         ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:477:9: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:525:9: error: '__builtin_vsx_stxvw4x_v16qi' requires the '-mvsx' option
  525 |         vec_xst(xmm0[k], (jj + k) * nrows + ii, out_b);
      |         ^~~~~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:525:9: note: overloaded builtin '__builtin_vec_vsx_st' is implemented by builtin '__builtin_vsx_stxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c: In function 'bshuf_shuffle_bit_eightelem_altivec':
src/c-blosc2/blosc/bitshuffle-altivec.c:566:9: error: '__builtin_vsx_lxvw4x_v16qi' requires the '-mvsx' option
  566 |         data = vec_xl(ii + jj, in_b);
      |         ^~~~
src/c-blosc2/blosc/bitshuffle-altivec.c:566:9: note: overloaded builtin '__builtin_vec_vsx_ld' is implemented by builtin '__builtin_vsx_lxvw4x_v16qi'
src/c-blosc2/blosc/bitshuffle-altivec.c:570:11: error: '__builtin_altivec_vbpermq2' requires the '-mcpu=power8' and '-mvsx' options
  570 |           tmp = (__vector uint16_t) vec_bperm(data, masks[kk]);
      |           ^~~
src/c-blosc2/blosc/bitshuffle-altivec.c:570:11: note: overloaded builtin '__builtin_vec_vbperm_api' is implemented by builtin '__builtin_altivec_vbpermq2'
error: command '/opt/local/bin/gcc-mp-13' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-hdf5plugin/py311-hdf5plugin/work/hdf5plugin-4.2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-hdf5plugin/py311-hdf5plugin/work 
Exit code: 1
Error: Failed to build py311-hdf5plugin: command execution failed

https://github.com/silx-kit/hdf5plugin/issues/307

Change History (2)

comment:1 Changed 5 months ago by barracuda156

Description: modified (diff)

comment:2 Changed 5 months ago by barracuda156

Description: modified (diff)
Note: See TracTickets for help on using tickets.