ci(windows): put the cross toolchain's lib directory on the loader path
VoidBuildSystem CI / 1 · Requirements (push) Successful in 13s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Failing after 32s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Failing after 37s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4B · Windows package (debug) (push) Skipped
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 4m21s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m35s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m34s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m2s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 5m26s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 5m30s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Failing after 3m32s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Failing after 3m47s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 2m21s

cc1plus depends on the bundled GMP/MPFR/MPC/isl/zstd shared objects in
<prefix>/lib; without them on the search path the loader fails and the
driver reports the misleading 'cannot execute cc1plus: No such file or
directory'. Export LD_LIBRARY_PATH for the job.
This commit is contained in:
faumaray committed 2026-12-06 07:08:20 +03:00
1 parent a8bb246095
commit 7ace7ead5a
1 file changed
+7
+7
View File
@@ -11,6 +11,13 @@ url="https://github.com/AmanoTeam/mingw-gcc-cross/releases/download/${release}/$
prefix="${1:-/opt/mingw-gcc-cross}" prefix="${1:-/opt/mingw-gcc-cross}"
compiler="${prefix}/bin/x86_64-w64-mingw32-ucrt-g++" compiler="${prefix}/bin/x86_64-w64-mingw32-ucrt-g++"
# cc1plus links against the GMP/MPFR/MPC/isl/zstd copies shipped in the
# toolchain, so the host loader needs the prefix on its search path.
export LD_LIBRARY_PATH="${prefix}/lib:${prefix}/lib64:${LD_LIBRARY_PATH:-}"
if [ -n "${GITHUB_ENV:-}" ]; then
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}"
fi
self_check() { self_check() {
local probe local probe
probe="$(mktemp -d)" probe="$(mktemp -d)"