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

Error cross building runc for riscv64 arch #3625

Closed
crazy-max opened this issue Feb 12, 2023 · 5 comments · Fixed by #3627
Closed

Error cross building runc for riscv64 arch #3625

crazy-max opened this issue Feb 12, 2023 · 5 comments · Fixed by #3627

Comments

@crazy-max
Copy link
Member

crazy-max commented Feb 12, 2023

First encountered on v0.10 branch: #3587 (review)

#16 [linux/amd64 internal] load metadata for docker.io/library/alpine:3.15
------
 > [linux/amd64->riscv64 runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc:
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file $WORK/b192/_x006.o
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file $WORK/b192/_x007.o
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file $WORK/b192/_x008.o
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file $WORK/b192/_x009.o
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file $WORK/b192/_x010.o
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl//usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtendS.o
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#61 133.0 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl//usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtn.o
#61 133.0 clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

But we now have the same issue on master branch: https://github.com/moby/buildkit/actions/runs/4152157541/jobs/7185004841#step:6:520

It might be related to libseccomp or musl packages

RUN set -e; xx-apk add musl-dev gcc libseccomp-dev libseccomp-static; \

that are installed from Alpine edge repo with xx: https://github.com/tonistiigi/xx/blob/82ed2822306002b6b65b6ff9eaab2f30268c5a6d/base/xx-apk#L49-L53

It works in moby/moby#44735 when building on ubuntu:22.04:

I tried to just use the make static target in our Dockerfile but same issue.

Also tried to build https://github.com/seccomp/libseccomp and similar issue:

#20 [libseccomp 7/7] RUN --mount=from=libseccomp-src,src=/usr/src/libseccomp,target=.,rw <<EOT (set -ex...)
#0 0.139 + xx-clang --print-target-triple
#20 0.144 + DESTDIR=/out CC=xx-clang ./configure '--host=riscv64-alpine-linux-musl' --enable-static --enable-shared
#20 0.170 checking for a BSD-compatible install... /usr/bin/install -c
#20 0.303 checking whether build environment is sane... yes
#20 0.307 checking for riscv64-alpine-linux-musl-strip... no
#20 0.307 checking for strip... strip
#20 0.307 checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
#20 0.311 checking for gawk... no
#20 0.311 checking for mawk... no
#20 0.311 checking for nawk... no
#20 0.311 checking for awk... awk
#20 0.311 checking whether make sets $(MAKE)... yes
#20 0.315 checking whether make supports nested variables... yes
#20 0.317 checking how to create a pax tar archive... gnutar
#20 0.322 checking for riscv64-alpine-linux-musl-gcc... xx-clang
#20 0.411 checking whether the C compiler works... no
#20 0.456 configure: error: in `/usr/src/libseccomp':
#20 0.456 configure: error: C compiler cannot create executables
#20 0.456 See `config.log' for more details
#20 0.464 + cat config.log
#20 0.464 This file contains any messages produced by compilers while
#20 0.464 running configure, to aid debugging if configure makes a mistake.
#20 0.464
#20 0.464 It was created by libseccomp configure 2.5.4, which was
#20 0.464 generated by GNU Autoconf 2.69.  Invocation command line was
#20 0.464
#20 0.464   $ ./configure --host=riscv64-alpine-linux-musl --enable-static --enable-shared
#20 0.464
#20 0.464 ## --------- ##
#20 0.464 ## Platform. ##
#20 0.464 ## --------- ##
#20 0.464
#20 0.464 hostname = buildkitsandbox
#20 0.464 uname -m = x86_64
#20 0.464 uname -r = 5.15.79.1-microsoft-standard-WSL2
#20 0.464 uname -s = Linux
#20 0.464 uname -v = #1 SMP Wed Nov 23 01:01:46 UTC 2022
#20 0.464
#20 0.464 /usr/bin/uname -p = unknown
#20 0.464 /bin/uname -X     = unknown
#20 0.464
#20 0.464 /bin/arch              = x86_64
#20 0.464 /usr/bin/arch -k       = unknown
#20 0.464 /usr/convex/getsysinfo = unknown
#20 0.464 /usr/bin/hostinfo      = unknown
#20 0.464 /bin/machine           = unknown
#20 0.464 /usr/bin/oslevel       = unknown
#20 0.464 /bin/universe          = unknown
#20 0.464
#20 0.464 PATH: /usr/local/sbin
#20 0.464 PATH: /usr/local/bin
#20 0.464 PATH: /usr/sbin
#20 0.464 PATH: /usr/bin
#20 0.464 PATH: /sbin
#20 0.464 PATH: /bin
#20 0.464
#20 0.464
#20 0.464 ## ----------- ##
#20 0.464 ## Core tests. ##
#20 0.464 ## ----------- ##
#20 0.464
#20 0.464 configure:2225: checking for a BSD-compatible install
#20 0.464 configure:2293: result: /usr/bin/install -c
#20 0.464 configure:2304: checking whether build environment is sane
#20 0.464 configure:2359: result: yes
#20 0.464 configure:2418: checking for riscv64-alpine-linux-musl-strip
#20 0.464 configure:2448: result: no
#20 0.464 configure:2458: checking for strip
#20 0.464 configure:2474: found /usr/bin/strip
#20 0.464 configure:2485: result: strip
#20 0.464 configure:2510: checking for a thread-safe mkdir -p
#20 0.464 configure:2549: result: build-aux/install-sh -c -d
#20 0.464 configure:2556: checking for gawk
#20 0.464 configure:2586: result: no
#20 0.464 configure:2556: checking for mawk
#20 0.464 configure:2586: result: no
#20 0.464 configure:2556: checking for nawk
#20 0.464 configure:2586: result: no
#20 0.464 configure:2556: checking for awk
#20 0.464 configure:2572: found /usr/bin/awk
#20 0.464 configure:2583: result: awk
#20 0.464 configure:2594: checking whether make sets $(MAKE)
#20 0.464 configure:2616: result: yes
#20 0.464 configure:2645: checking whether make supports nested variables
#20 0.464 configure:2662: result: yes
#20 0.464 configure:2741: checking how to create a pax tar archive
#20 0.464 configure:2752: tar --version
#20 0.464 tar (GNU tar) 1.34
#20 0.464 Copyright (C) 2021 Free Software Foundation, Inc.
#20 0.464 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
#20 0.464 This is free software: you are free to change and redistribute it.
#20 0.464 There is NO WARRANTY, to the extent permitted by law.
#20 0.464
#20 0.464 Written by John Gilmore and Jay Fenlason.
#20 0.464 configure:2755: $? = 0
#20 0.464 configure:2795: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar
#20 0.464 configure:2798: $? = 0
#20 0.464 configure:2802: tar -xf - <conftest.tar
#20 0.464 configure:2805: $? = 0
#20 0.464 configure:2807: cat conftest.dir/file
#20 0.464 GrepMe
#20 0.464 configure:2810: $? = 0
#20 0.464 configure:2823: result: gnutar
#20 0.464 configure:2882: checking for riscv64-alpine-linux-musl-gcc
#20 0.464 configure:2909: result: xx-clang
#20 0.464 configure:3178: checking for C compiler version
#20 0.464 configure:3187: xx-clang --version >&5
#20 0.464 Alpine clang version 15.0.7
#20 0.464 Target: riscv64-alpine-linux-musl
#20 0.464 Thread model: posix
#20 0.464 InstalledDir: /usr/bin
#20 0.464 Configuration file: /usr/bin/riscv64-alpine-linux-musl.cfg
#20 0.464 configure:3198: $? = 0
#20 0.464 configure:3187: xx-clang -v >&5
#20 0.464 Alpine clang version 15.0.7
#20 0.464 Target: riscv64-alpine-linux-musl
#20 0.464 Thread model: posix
#20 0.464 InstalledDir: /usr/bin
#20 0.464 Configuration file: /usr/bin/riscv64-alpine-linux-musl.cfg
#20 0.464 Found candidate GCC installation: /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1
#20 0.464 Selected GCC installation: /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1
#20 0.464  "/usr/bin/riscv64-alpine-linux-musl-ld" --sysroot=/riscv64-alpine-linux-musl/ -pie -z now -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf64lriscv -X -dynamic-linker /lib/ld-musl-riscv64.so.1 -o a.out /riscv64-alpine-linux-musl/usr/lib/Scrt1.o /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crti.o /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtbeginS.o -L/riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1 -L/riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/../../../../riscv64-alpine-linux-musl/lib -L/riscv64-alpine-linux-musl/lib -L/riscv64-alpine-linux-musl/usr/lib -rpath-link /riscv64-alpine-linux-musl/usr/lib -lssp_nonshared -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtendS.o /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtn.o
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crti.o
#20 0.464 ... rest of stderr output deleted ...
#20 0.464 configure:3198: $? = 1
#20 0.464 configure:3187: xx-clang -V >&5
#20 0.464 clang-15: error: argument to '-V' is missing (expected 1 value)
#20 0.464 clang-15: error: no input files
#20 0.464 configure:3198: $? = 1
#20 0.464 configure:3187: xx-clang -qversion >&5
#20 0.464 clang-15: error: unknown argument '-qversion'; did you mean '--version'?
#20 0.464 clang-15: error: no input files
#20 0.464 configure:3198: $? = 1
#20 0.464 configure:3218: checking whether the C compiler works
#20 0.464 configure:3240: xx-clang    conftest.c  >&5
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crti.o
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtbeginS.o
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/conftest-72b27b.o
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtendS.o
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#20 0.464 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtn.o
#20 0.464 clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
#20 0.464 configure:3244: $? = 1
#20 0.464 configure:3282: result: no
#20 0.464 configure: failed program was:
#20 0.464 | /* confdefs.h */
#20 0.464 | #define PACKAGE_NAME "libseccomp"
#20 0.464 | #define PACKAGE_TARNAME "libseccomp"
#20 0.464 | #define PACKAGE_VERSION "2.5.4"
#20 0.464 | #define PACKAGE_STRING "libseccomp 2.5.4"
#20 0.464 | #define PACKAGE_BUGREPORT ""
#20 0.464 | #define PACKAGE_URL ""
#20 0.464 | #define PACKAGE "libseccomp"
#20 0.464 | #define VERSION "2.5.4"
#20 0.464 | /* end confdefs.h.  */
#20 0.464 |
#20 0.464 | int
#20 0.464 | main ()
#20 0.464 | {
#20 0.464 |
#20 0.464 |   ;
#20 0.464 |   return 0;
#20 0.464 | }
#20 0.464 configure:3287: error: in `/usr/src/libseccomp':
#20 0.464 configure:3289: error: C compiler cannot create executables
#20 0.464 See `config.log' for more details
#20 0.464
#20 0.464 ## ---------------- ##
#20 0.464 ## Cache variables. ##
#20 0.464 ## ---------------- ##
#20 0.464
#20 0.464 ac_cv_env_CC_set='set'
#20 0.464 ac_cv_env_CC_value='xx-clang'
#20 0.464 ac_cv_env_CFLAGS_set=''
#20 0.464 ac_cv_env_CFLAGS_value=''
#20 0.464 ac_cv_env_CPPFLAGS_set=''
#20 0.464 ac_cv_env_CPPFLAGS_value=''
#20 0.464 ac_cv_env_CPP_set=''
#20 0.464 ac_cv_env_CPP_value=''
#20 0.464 ac_cv_env_LDFLAGS_set=''
#20 0.464 ac_cv_env_LDFLAGS_value=''
#20 0.464 ac_cv_env_LIBS_set=''
#20 0.464 ac_cv_env_LIBS_value=''
#20 0.464 ac_cv_env_LT_SYS_LIBRARY_PATH_set=''
#20 0.464 ac_cv_env_LT_SYS_LIBRARY_PATH_value=''
#20 0.464 ac_cv_env_PYTHON_set=''
#20 0.464 ac_cv_env_PYTHON_value=''
#20 0.464 ac_cv_env_build_alias_set=''
#20 0.464 ac_cv_env_build_alias_value=''
#20 0.464 ac_cv_env_host_alias_set='set'
#20 0.464 ac_cv_env_host_alias_value='riscv64-alpine-linux-musl'
#20 0.464 ac_cv_env_target_alias_set=''
#20 0.464 ac_cv_env_target_alias_value=''
#20 0.464 ac_cv_path_install='/usr/bin/install -c'
#20 0.464 ac_cv_prog_AWK='awk'
#20 0.464 ac_cv_prog_CC='xx-clang'
#20 0.464 ac_cv_prog_ac_ct_STRIP='strip'
#20 0.464 ac_cv_prog_make_make_set='yes'
#20 0.464 am_cv_make_support_nested_variables='yes'
#20 0.464 am_cv_prog_tar_pax='gnutar'
#20 0.464
#20 0.464 ## ----------------- ##
#20 0.464 ## Output variables. ##
#20 0.464 ## ----------------- ##
#20 0.464
#20 0.464 ACLOCAL='${SHELL} /usr/src/libseccomp/build-aux/missing aclocal-1.16'
#20 0.464 AMDEPBACKSLASH=''
#20 0.464 AMDEP_FALSE=''
#20 0.464 AMDEP_TRUE=''
#20 0.464 AMTAR='$${TAR-tar}'
#20 0.464 AM_BACKSLASH='\'
#20 0.464 AM_CFLAGS=''
#20 0.464 AM_CPPFLAGS=''
#20 0.464 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
#20 0.464 AM_DEFAULT_VERBOSITY='1'
#20 0.464 AM_LDFLAGS=''
#20 0.464 AM_V='$(V)'
#20 0.464 AR=''
#20 0.464 AUTOCONF='${SHELL} /usr/src/libseccomp/build-aux/missing autoconf'
#20 0.464 AUTOHEADER='${SHELL} /usr/src/libseccomp/build-aux/missing autoheader'
#20 0.464 AUTOMAKE='${SHELL} /usr/src/libseccomp/build-aux/missing automake-1.16'
#20 0.464 AWK='awk'
#20 0.464 CC='xx-clang'
#20 0.464 CCDEPMODE=''
#20 0.464 CFLAGS=''
#20 0.464 CODE_COVERAGE_CFLAGS=''
#20 0.464 CODE_COVERAGE_CPPFLAGS=''
#20 0.464 CODE_COVERAGE_CXXFLAGS=''
#20 0.464 CODE_COVERAGE_ENABLED=''
#20 0.464 CODE_COVERAGE_ENABLED_FALSE=''
#20 0.464 CODE_COVERAGE_ENABLED_TRUE=''
#20 0.464 CODE_COVERAGE_LDFLAGS=''
#20 0.464 CODE_COVERAGE_LIBS=''
#20 0.464 CODE_COVERAGE_RULES=''
#20 0.464 COVERITY_FALSE=''
#20 0.464 COVERITY_TRUE=''
#20 0.464 CPP=''
#20 0.464 CPPFLAGS=''
#20 0.464 CYGPATH_W='echo'
#20 0.464 DEFS=''
#20 0.464 DEPDIR=''
#20 0.464 DLLTOOL=''
#20 0.464 DSYMUTIL=''
#20 0.464 DUMPBIN=''
#20 0.464 ECHO_C=''
#20 0.464 ECHO_N='-n'
#20 0.464 ECHO_T=''
#20 0.464 EGREP=''
#20 0.464 ENABLE_PYTHON_FALSE=''
#20 0.464 ENABLE_PYTHON_TRUE=''
#20 0.464 EXEEXT=''
#20 0.464 FGREP=''
#20 0.464 GCOV=''
#20 0.464 GENHTML=''
#20 0.464 GPERF=''
#20 0.464 GREP=''
#20 0.464 INSTALL_DATA='${INSTALL} -m 644'
#20 0.464 INSTALL_PROGRAM='${INSTALL}'
#20 0.464 INSTALL_SCRIPT='${INSTALL}'
#20 0.464 INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
#20 0.464 LCOV=''
#20 0.464 LD=''
#20 0.464 LDFLAGS=''
#20 0.464 LIBOBJS=''
#20 0.464 LIBS=''
#20 0.464 LIBTOOL=''
#20 0.464 LIPO=''
#20 0.464 LN_S=''
#20 0.464 LTLIBOBJS=''
#20 0.464 LT_SYS_LIBRARY_PATH=''
#20 0.464 MAKEINFO='${SHELL} /usr/src/libseccomp/build-aux/missing makeinfo'
#20 0.464 MANIFEST_TOOL=''
#20 0.464 MKDIR_P='build-aux/install-sh -c -d'
#20 0.464 NM=''
#20 0.464 NMEDIT=''
#20 0.464 OBJDUMP=''
#20 0.464 OBJEXT=''
#20 0.464 OTOOL64=''
#20 0.464 OTOOL=''
#20 0.464 PACKAGE='libseccomp'
#20 0.464 PACKAGE_BUGREPORT=''
#20 0.464 PACKAGE_NAME='libseccomp'
#20 0.464 PACKAGE_STRING='libseccomp 2.5.4'
#20 0.464 PACKAGE_TARNAME='libseccomp'
#20 0.464 PACKAGE_URL=''
#20 0.464 PACKAGE_VERSION='2.5.4'
#20 0.464 PATH_SEPARATOR=':'
#20 0.464 PYTHON=''
#20 0.464 PYTHON_EXEC_PREFIX=''
#20 0.464 PYTHON_PLATFORM=''
#20 0.464 PYTHON_PREFIX=''
#20 0.464 PYTHON_VERSION=''
#20 0.464 RANLIB=''
#20 0.464 SED=''
#20 0.464 SET_MAKE=''
#20 0.464 SHELL='/bin/sh'
#20 0.464 STRIP='strip'
#20 0.464 VERSION='2.5.4'
#20 0.464 VERSION_MAJOR=''
#20 0.464 VERSION_MICRO=''
#20 0.464 VERSION_MINOR=''
#20 0.464 ac_ct_AR=''
#20 0.464 ac_ct_CC=''
#20 0.464 ac_ct_DUMPBIN=''
#20 0.464 am__EXEEXT_FALSE=''
#20 0.464 am__EXEEXT_TRUE=''
#20 0.464 am__fastdepCC_FALSE=''
#20 0.464 am__fastdepCC_TRUE=''
#20 0.464 am__include=''
#20 0.464 am__isrc=''
#20 0.464 am__leading_dot='.'
#20 0.464 am__nodep=''
#20 0.464 am__quote=''
#20 0.464 am__tar='tar --format=posix -chf - "$$tardir"'
#20 0.464 am__untar='tar -xf -'
#20 0.464 bindir='${exec_prefix}/bin'
#20 0.464 build=''
#20 0.464 build_alias=''
#20 0.464 build_cpu=''
#20 0.464 build_os=''
#20 0.464 build_vendor=''
#20 0.464 cython=''
#20 0.464 datadir='${datarootdir}'
#20 0.464 datarootdir='${prefix}/share'
#20 0.464 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
#20 0.464 dvidir='${docdir}'
#20 0.464 exec_prefix='NONE'
#20 0.464 have_coverity=''
#20 0.464 host='riscv64-alpine-linux-musl'
#20 0.464 host_alias='riscv64-alpine-linux-musl'
#20 0.464 host_cpu=''
#20 0.464 host_os=''
#20 0.464 host_vendor=''
#20 0.464 htmldir='${docdir}'
#20 0.464 includedir='${prefix}/include'
#20 0.464 infodir='${datarootdir}/info'
#20 0.464 install_sh='${SHELL} /usr/src/libseccomp/build-aux/install-sh'
#20 0.464 libdir='${exec_prefix}/lib'
#20 0.464 libexecdir='${exec_prefix}/libexec'
#20 0.464 localedir='${datarootdir}/locale'
#20 0.464 localstatedir='${prefix}/var'
#20 0.464 mandir='${datarootdir}/man'
#20 0.464 mkdir_p='$(MKDIR_P)'
#20 0.464 oldincludedir='/usr/include'
#20 0.464 pdfdir='${docdir}'
#20 0.464 pkgpyexecdir=''
#20 0.464 pkgpythondir=''
#20 0.464 prefix='NONE'
#20 0.464 program_transform_name='s,x,x,'
#20 0.464 psdir='${docdir}'
#20 0.464 pyexecdir=''
#20 0.464 pythondir=''
#20 0.464 runstatedir='${localstatedir}/run'
#20 0.464 sbindir='${exec_prefix}/sbin'
#20 0.464 sharedstatedir='${prefix}/com'
#20 0.464 sysconfdir='${prefix}/etc'
#20 0.464 target_alias=''
#20 0.464 
#20 0.464 ## ----------- ##
#20 0.464 ## confdefs.h. ##
#20 0.464 ## ----------- ##
#20 0.464
#20 0.464 /* confdefs.h */
#20 0.464 #define PACKAGE_NAME "libseccomp"
#20 0.464 #define PACKAGE_TARNAME "libseccomp"
#20 0.464 #define PACKAGE_VERSION "2.5.4"
#20 0.464 #define PACKAGE_STRING "libseccomp 2.5.4"
#20 0.464 #define PACKAGE_BUGREPORT ""
#20 0.464 #define PACKAGE_URL ""
#20 0.464 #define PACKAGE "libseccomp"
#20 0.464 #define VERSION "2.5.4"
#20 0.464
#20 0.464 configure: exit 77
#20 0.464 + make install
#20 0.466 make: *** No rule to make target 'install'.  Stop.

cc @tonistiigi @AkihiroSuda

@tonistiigi
Copy link
Member

Does it reporoduce locally or does it have something to do with the cgo cache state in the CI?

@crazy-max
Copy link
Member Author

crazy-max commented Feb 12, 2023

Also repro locally yes, maybe ld prebuilt binaries too old as you suggested?

$ docker buildx build --platform linux/riscv64 --target runc .
...
#21 [runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc
#21 2.008 # github.com/opencontainers/runc
#21 2.008 /usr/local/go/pkg/tool/linux_amd64/link: running riscv64-alpine-linux-musl-clang failed: exit status 1
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crti.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtbeginT.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000000.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000001.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000002.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000003.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000004.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000005.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000006.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000007.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000008.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000009.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000010.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000011.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000012.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000013.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000014.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000015.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000016.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000017.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000018.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /tmp/go-link-2298028822/000019.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-api.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-system.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-helper.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-gen_pfc.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-gen_bpf.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-hash.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-db.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-x86.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-x86_64.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-x32.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-arm.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-aarch64.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-mips.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-mips64.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-mips64n32.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-parisc.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-parisc64.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-ppc.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-ppc64.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-riscv64.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-s390.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-arch-s390x.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-syscalls.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libseccomp.a(libseccomp_la-syscalls.perf.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__environ.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__libc_start_main.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__stack_chk_fail.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(getenv.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(putenv.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setenv.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(unsetenv.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__errno_location.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strerror.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(abort.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(abort_lock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(assert.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(exit.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fcntl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(open.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(defsysinfo.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(libc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(syscall_ret.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(clone.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mount.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(prctl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sendfile.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setgroups.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setns.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(unshare.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__lctrans.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(calloc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(free.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(lite_malloc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(free.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(malloc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(realloc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(replaced.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(ioctl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(syscall.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(madvise.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mmap.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mprotect.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(munmap.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(recvmsg.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sendmsg.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(socketpair.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(execve.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fexecve.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fork.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(waitpid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(longjmp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setjmp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(block.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(kill.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(raise.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sigfillset.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fchmod.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fstat.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fstatat.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(statvfs.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__fdopen.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__stdio_close.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__stdio_read.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__stdio_seek.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__stdio_write.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(asprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(dprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fclose.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fflush.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fputc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fputs.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(fwrite.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(ofl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(ofl_add.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(snprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(stderr.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(vasprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(vdprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(vfprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(vsnprintf.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strtol.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(memcmp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(memcpy.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(memmove.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(memset.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strchr.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strchrnul.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strcmp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strdup.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strlen.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strncmp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strncpy.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strnlen.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strpbrk.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strspn.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strtok_r.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mkostemp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mkostemps.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mkstemp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__lock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__syscall_cp.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(lock_ptc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_attr_destroy.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_attr_get.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_attr_init.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_cond_broadcast.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_cond_timedwait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_cond_wait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_create.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_detach.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_join.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_mutex_lock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_mutex_timedlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_mutex_trylock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_mutex_unlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_rdlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_timedrdlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_tryrdlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_unlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_wrlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_setcancelstate.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_sigmask.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_testcancel.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__unmapself.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(clone.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(synccall.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(vmlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(nanosleep.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(close.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(dup.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(dup3.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(getpid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(lseek.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(read.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setegid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(seteuid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setgid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setregid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setresgid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setresuid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setreuid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setsid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setuid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(setxid.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(unlink.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(write.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__init_tls.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(_Exit.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(intscan.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(procfdname.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(shgetc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(realloc.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__fpclassifyl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__signbitl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(frexpl.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(mremap.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(wctomb.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(_Fork.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sigaction.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__lockfile.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__overflow.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__towrite.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__uflow.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(memchr.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(stpncpy.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(strcspn.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__randname.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__timedwait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__wait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(default_attr.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_timedwrlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_rwlock_trywrlock.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__set_thread_area.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sem_destroy.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sem_init.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sem_post.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sem_wait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(clock_gettime.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(clock_nanosleep.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(wcrtomb.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(restore.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__stdio_exit.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(__toread.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sem_timedwait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(sem_trywait.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/libc.a(pthread_cleanup_push.lo)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(addtf3.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(eqtf2.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(multf3.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(subtf3.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(fixtfsi.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(fixunstfsi.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(floatsitf.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(floatunsitf.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(extenddftf2.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(_clzsi2.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(_clz.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtend.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtn.o
#21 2.008 clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
#21 2.008
#21 ERROR: process "/bin/sh -c CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc" did not complete successfully: exit code: 2
------
 > [runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc:
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(_clzsi2.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/libgcc.a(_clz.o)
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtend.o
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: -march=rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0: unknown z ISA extension `zmmul'
#21 2.008 /usr/bin/riscv64-alpine-linux-musl-ld: failed to merge target specific data of file /riscv64-alpine-linux-musl/usr/lib/gcc/riscv64-alpine-linux-musl/12.2.1/crtn.o
#21 2.008 clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
#21 2.008
------
Dockerfile:64
--------------------
  63 |       [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
  64 | >>> RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache \
  65 | >>>   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \
  66 | >>>   xx-verify --static /usr/bin/runc
  67 |
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc" did not complete successfully: exit code: 2

@crazy-max
Copy link
Member Author

On xx, I ran ci again on tonistiigi/xx#68 and it fails with same error for all alpine releases: https://github.com/tonistiigi/xx/actions/runs/4127879877/jobs/7131633710

@crazy-max
Copy link
Member Author

crazy-max commented Feb 12, 2023

Looking at unknown z ISA extension 'zmmul' it's an issue with the zmmul extension. Maybe llvm on Alpine 3.17 does not yet support this extension: https://reviews.llvm.org/D103313

@crazy-max
Copy link
Member Author

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

Successfully merging a pull request may close this issue.

2 participants