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

Building wheels for ppc64le using zig with PyO3/maturin-action@v1 fails to find libc headers #281

Open
ghuls opened this issue Jul 8, 2024 · 0 comments

Comments

@ghuls
Copy link

ghuls commented Jul 8, 2024

Building wheels for ppc64le with PyO3/maturin-action@v1 fails to find libc headers.

   Compiling bio-types v1.0.1
   Compiling rayon v1.10.0
The following warnings were emitted during compilation:

warning: [email protected]: In file included from src/zlib/adler32.c:8:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-adler32.o" "-c" "src/zlib/adler32.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/compress.c:9:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-compress.o" "-c" "src/zlib/compress.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/crc32.c:30:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-crc32.o" "-c" "src/zlib/crc32.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/deflate.c:52:
warning: [email protected]: In file included from src/zlib/deflate.h:16:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-deflate.o" "-c" "src/zlib/deflate.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/infback.c:13:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-infback.o" "-c" "src/zlib/infback.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/inffast.c:6:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-inffast.o" "-c" "src/zlib/inffast.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/inflate.c:83:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-inflate.o" "-c" "src/zlib/inflate.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/inftrees.c:6:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-inftrees.o" "-c" "src/zlib/inftrees.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/trees.c:37:
warning: [email protected]: In file included from src/zlib/deflate.h:16:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-trees.o" "-c" "src/zlib/trees.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/uncompr.c:9:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-uncompr.o" "-c" "src/zlib/uncompr.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/zutil.c:8:
warning: [email protected]: In file included from src/zlib/zutil.h:22:
warning: [email protected]: In file included from src/zlib/zlib.h:34:
warning: [email protected]: src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
warning: [email protected]:   446 | #    include <sys/types.h>      /* for off_t */
warning: [email protected]:       |              ^~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-zutil.o" "-c" "src/zlib/zutil.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzclose.c:6:
warning: [email protected]: src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
warning: [email protected]:    20 | #include <stdio.h>
warning: [email protected]:       |          ^~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzclose.o" "-c" "src/zlib/gzclose.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzlib.c:6:
warning: [email protected]: src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
warning: [email protected]:    20 | #include <stdio.h>
warning: [email protected]:       |          ^~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzlib.o" "-c" "src/zlib/gzlib.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzread.c:6:
warning: [email protected]: src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
warning: [email protected]:    20 | #include <stdio.h>
warning: [email protected]:       |          ^~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzread.o" "-c" "src/zlib/gzread.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzwrite.c:6:
warning: [email protected]: src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
warning: [email protected]:    20 | #include <stdio.h>
warning: [email protected]:       |          ^~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzwrite.o" "-c" "src/zlib/gzwrite.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).

error: failed to run custom build command for `libz-sys v1.1.18`

Caused by:
  process didn't exit successfully: `/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/release/build/libz-sys-ff0c17eda942d641/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=LIBZ_SYS_STATIC
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=zng/cmake.rs
  cargo:rerun-if-changed=zng/cc.rs
  TARGET = Some(powerpc64le-unknown-linux-gnu)
  OPT_LEVEL = Some(3)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_powerpc64le-unknown-linux-gnu
  CC_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_powerpc64le_unknown_linux_gnu
  CC_powerpc64le_unknown_linux_gnu = Some(/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh)
  RUSTC_WRAPPER = Some(sccache)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le-unknown-linux-gnu
  CFLAGS_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le_unknown_linux_gnu
  CFLAGS_powerpc64le_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=In file included from src/zlib/adler32.c:8:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.
  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-adler32.o" "-c" "src/zlib/adler32.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/compress.c:9:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-compress.o" "-c" "src/zlib/compress.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/crc32.c:30:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-crc32.o" "-c" "src/zlib/crc32.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/deflate.c:52:
  cargo:warning=In file included from src/zlib/deflate.h:16:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-deflate.o" "-c" "src/zlib/deflate.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/infback.c:13:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-infback.o" "-c" "src/zlib/infback.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/inffast.c:6:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-inffast.o" "-c" "src/zlib/inffast.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/inflate.c:83:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-inflate.o" "-c" "src/zlib/inflate.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/inftrees.c:6:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-inftrees.o" "-c" "src/zlib/inftrees.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/trees.c:37:
  cargo:warning=In file included from src/zlib/deflate.h:16:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-trees.o" "-c" "src/zlib/trees.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/uncompr.c:9:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-uncompr.o" "-c" "src/zlib/uncompr.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/zutil.c:8:
  cargo:warning=In file included from src/zlib/zutil.h:22:
  cargo:warning=In file included from src/zlib/zlib.h:34:
  cargo:warning=src/zlib/zconf.h:446:14: fatal error: 'sys/types.h' file not found
  cargo:warning=  446 | #    include <sys/types.h>      /* for off_t */
  cargo:warning=      |              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-zutil.o" "-c" "src/zlib/zutil.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzclose.c:6:
  cargo:warning=src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
  cargo:warning=   20 | #include <stdio.h>
  cargo:warning=      |          ^~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzclose.o" "-c" "src/zlib/gzclose.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzlib.c:6:
  cargo:warning=src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
  cargo:warning=   20 | #include <stdio.h>
  cargo:warning=      |          ^~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzlib.o" "-c" "src/zlib/gzlib.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzread.c:6:
  cargo:warning=src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
  cargo:warning=   20 | #include <stdio.h>
  cargo:warning=      |          ^~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzread.o" "-c" "src/zlib/gzread.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).cargo:warning=In file included from src/zlib/gzwrite.c:6:
  cargo:warning=src/zlib/gzguts.h:20:10: fatal error: 'stdio.h' file not found
  cargo:warning=   20 | #include <stdio.h>
  cargo:warning=      |          ^~~~~~~~~
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzwrite.o" "-c" "src/zlib/gzwrite.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).

  --- stderr


  error occurred: Command "sccache" "/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=powerpc64le-unknown-linux-gnu" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/target/powerpc64le-unknown-linux-gnu/release/build/libz-sys-e322c9ff2f45317c/out/lib/0dc752f03a07a721-gzwrite.o" "-c" "src/zlib/gzwrite.c" with args zigcc-powerpc64le-unknown-linux-gnu.2.17.sh did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `env -u CARGO AR_powerpc64le_unknown_linux_gnu="/home/runner/.cache/cargo-zigbuild/0.18.4/ar" CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER="/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" CC_powerpc64le_unknown_linux_gnu="/home/runner/.cache/cargo-zigbuild/0.18.4/zigcc-powerpc64le-unknown-linux-gnu.2.17.sh" CMAKE_TOOLCHAIN_FILE_powerpc64le_unknown_linux_gnu="/home/runner/.cache/cargo-zigbuild/0.18.4/cmake/powerpc64le-unknown-linux-gnu-toolchain.cmake" CXX_powerpc64le_unknown_linux_gnu="/home/runner/.cache/cargo-zigbuild/0.18.4/zigcxx-powerpc64le-unknown-linux-gnu.2.17.sh" RANLIB_powerpc64le_unknown_linux_gnu="/home/runner/.cache/cargo-zigbuild/0.18.4/zigranlib.sh" ZIG_COMMAND="/opt/hostedtoolcache/Python/3.12.4/x64/bin/python3 -m ziglang" "cargo" "rustc" "--features" "pyo3/extension-module" "--target" "powerpc64le-unknown-linux-gnu" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/runner/work/scatac_fragment_tools/scatac_fragment_tools/rust/Cargo.toml" "--release" "--lib"`
Error: The process '/home/runner/work/_temp/b577c98e-bff2-40fe-82bf-0c87b9cefcb4/maturin' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1702:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1685:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1579:27)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)
Error: The process '/home/runner/work/_temp/b577c98e-bff2-40fe-82bf-0c87b9cefcb4/maturin' failed with exit code 1

Another similar failure:
sourmash-bio/sourmash#3125

@messense messense changed the title Building wheels for ppc64le with PyO3/maturin-action@v1 fails to find libc headers Building wheels for ppc64le using zig with PyO3/maturin-action@v1 fails to find libc headers Jul 9, 2024
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