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

Exposing LD make environment variable breaks cross compilation #1283

Open
fffonion opened this issue Sep 10, 2024 · 1 comment
Open

Exposing LD make environment variable breaks cross compilation #1283

fffonion opened this issue Sep 10, 2024 · 1 comment

Comments

@fffonion
Copy link
Contributor

fffonion commented Sep 10, 2024

As a regression from #1068, we observed some
cross compiler toolchains failed to create a shared library. Manually setting a env = { "LD": "" } fix
the problem.

This is our toolchain config: https://github.com/Kong/kong/blob/cd1483a4564cb1617aa0126916090c8fb63b2443/build/toolchain/cc_toolchain_config.bzl
The cross toolchain always use gcc instead of ld as linker. Using a print to debug I can see the toolchain config is correctly
setting <target>-gcc as ld_executable.

One of problemic target is libyaml (and several others that uses libtool):
https://github.com/Kong/kong/blob/cd1483a4564cb1617aa0126916090c8fb63b2443/build/cross_deps/libyaml/BUILD.libyaml.bazel
.

The above links are using rules_foreign_cc 0.9.0, which doesn't include the above PR #1068, so it works well. After we try to
bump rules_foreign_cc, the cross compilation failed. libtool skips building the shared library after building the archive, and try to use the shared library as if it exists.

I'm not sure if this is bug of rules_foreign_cc or a bug in our toolchain config.

The full Configure.log is attached below:

Configure.log
Bazel external C/C++ Rules. Building library libyaml

Environment:______________
BUILD_SCRIPT=bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml_foreign_cc/build_script.sh
EXT_BUILD_ROOT=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main
BUILD_LOG=bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml_foreign_cc/Configure.log
PWD=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main
INSTALL_DESTDIR=MANAGED
BUILD_NAME=kong-dev
BUILD_WRAPPER_SCRIPT=bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml_foreign_cc/wrapper_build_script.sh
TMPDIR=/tmp
EXT_BUILD_DEPS=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.ext_build_deps
BUILD_TMPDIR=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir
SHLVL=2
INSTALLDIR=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml
PATH=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main:/home/wow/.cache/bazelisk/downloads/bazelbuild/bazel-7.3.1-linux-x86_64/bin:/usr/local/openresty/luajit/bin:/usr/local/go/bin:/home/wow/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/wow/go/bin/
_=/usr/bin/env
__________________________
Can not copy /home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/make
Can not copy /home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/pkg-config
+ mkdir -p /home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/libyaml
+ ARFLAGS=rcsD
+ AR_FLAGS=rcsD
+ ASFLAGS='-U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/'
+ CFLAGS='-U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/'
+ CXXFLAGS='-U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/'
+ LDFLAGS='-lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now'
+ AR=/usr/bin/aarch64-linux-gnu-ar
+ CC=/usr/bin/aarch64-linux-gnu-gcc
+ CXX=/usr/bin/aarch64-linux-gnu-gcc
+ LD=/usr/bin/aarch64-linux-gnu-gcc
+ RANLIB=:
+ CPPFLAGS=
+ /home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/configure --prefix=/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/libyaml --host=aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for aarch64-unknown-linux-gnu-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for aarch64-unknown-linux-gnu-gcc... /usr/bin/aarch64-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/aarch64-linux-gnu-gcc accepts -g... yes
checking for /usr/bin/aarch64-linux-gnu-gcc option to accept ISO C89... none needed
checking whether /usr/bin/aarch64-linux-gnu-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/aarch64-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... /usr/bin/aarch64-linux-gnu-gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/aarch64-linux-gnu-gcc... /usr/bin/aarch64-linux-gnu-gcc
checking if the linker (/usr/bin/aarch64-linux-gnu-gcc) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... no
checking for aarch64-unknown-linux-gnu-dumpbin... no
checking for aarch64-unknown-linux-gnu-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/aarch64-linux-gnu-gcc option to reload object files... -r
checking for aarch64-unknown-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-unknown-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for aarch64-unknown-linux-gnu-ar... /usr/bin/aarch64-linux-gnu-ar
checking for archiver @FILE support... @
checking for aarch64-unknown-linux-gnu-strip... strip
checking for aarch64-unknown-linux-gnu-ranlib... :
checking command to parse nm output from /usr/bin/aarch64-linux-gnu-gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for aarch64-unknown-linux-gnu-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/aarch64-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/aarch64-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/aarch64-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/aarch64-linux-gnu-gcc static flag -static works... yes
checking if /usr/bin/aarch64-linux-gnu-gcc supports -c -o file.o... yes
checking if /usr/bin/aarch64-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/aarch64-linux-gnu-gcc linker (/usr/bin/aarch64-linux-gnu-gcc) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for doxygen... false
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating yaml-0.1.pc
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make -j8
Making all in include
make[1]: Entering directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/include'
make  all-am
make[2]: Entering directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/include'
make[2]: Leaving directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/include'
make[1]: Leaving directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/include'
Making all in src
make[1]: Entering directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/src'
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT api.lo -MD -MP -MF .deps/api.Tpo -c -o api.lo api.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c -o reader.lo reader.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c -o scanner.lo scanner.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c -o parser.lo parser.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c -o loader.lo loader.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT writer.lo -MD -MP -MF .deps/writer.Tpo -c -o writer.lo writer.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT emitter.lo -MD -MP -MF .deps/emitter.Tpo -c -o emitter.lo emitter.c
/bin/bash ../libtool  --tag=CC   --mode=compile /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT dumper.lo -MD -MP -MF .deps/dumper.Tpo -c -o dumper.lo dumper.c
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c reader.c  -fPIC -DPIC -o .libs/reader.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT writer.lo -MD -MP -MF .deps/writer.Tpo -c writer.c  -fPIC -DPIC -o .libs/writer.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.c  -fPIC -DPIC -o .libs/parser.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT emitter.lo -MD -MP -MF .deps/emitter.Tpo -c emitter.c  -fPIC -DPIC -o .libs/emitter.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT dumper.lo -MD -MP -MF .deps/dumper.Tpo -c dumper.c  -fPIC -DPIC -o .libs/dumper.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT api.lo -MD -MP -MF .deps/api.Tpo -c api.c  -fPIC -DPIC -o .libs/api.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c loader.c  -fPIC -DPIC -o .libs/loader.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c scanner.c  -fPIC -DPIC -o .libs/scanner.o
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT writer.lo -MD -MP -MF .deps/writer.Tpo -c writer.c -o writer.o >/dev/null 2>&1
emitter.c: In function 'yaml_emitter_write_plain_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
   28 |      && ((emitter->line_break == YAML_CR_BREAK ?                                \
      |      ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
   56 |          (PUT_BREAK(emitter),                                                   \
      |           ^~~~~~~~~
emitter.c:1962:18: note: in expansion of macro 'WRITE_BREAK'
 1962 |             if (!WRITE_BREAK(emitter, string)) return 0;
      |                  ^~~~~~~~~~~
emitter.c: In function 'yaml_emitter_write_single_quoted_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
   28 |      && ((emitter->line_break == YAML_CR_BREAK ?                                \
      |      ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
   56 |          (PUT_BREAK(emitter),                                                   \
      |           ^~~~~~~~~
emitter.c:2019:18: note: in expansion of macro 'WRITE_BREAK'
 2019 |             if (!WRITE_BREAK(emitter, string)) return 0;
      |                  ^~~~~~~~~~~
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c reader.c -o reader.o >/dev/null 2>&1
emitter.c: In function 'yaml_emitter_write_literal_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
   28 |      && ((emitter->line_break == YAML_CR_BREAK ?                                \
      |      ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
   56 |          (PUT_BREAK(emitter),                                                   \
      |           ^~~~~~~~~
emitter.c:2285:18: note: in expansion of macro 'WRITE_BREAK'
 2285 |             if (!WRITE_BREAK(emitter, string)) return 0;
      |                  ^~~~~~~~~~~
emitter.c: In function 'yaml_emitter_write_folded_scalar':
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT dumper.lo -MD -MP -MF .deps/dumper.Tpo -c dumper.c -o dumper.o >/dev/null 2>&1
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
   28 |      && ((emitter->line_break == YAML_CR_BREAK ?                                \
      |      ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
   56 |          (PUT_BREAK(emitter),                                                   \
      |           ^~~~~~~~~
emitter.c:2334:18: note: in expansion of macro 'WRITE_BREAK'
 2334 |             if (!WRITE_BREAK(emitter, string)) return 0;
      |                  ^~~~~~~~~~~
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c loader.c -o loader.o >/dev/null 2>&1
mv -f .deps/writer.Tpo .deps/writer.Plo
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.c -o parser.o >/dev/null 2>&1
mv -f .deps/reader.Tpo .deps/reader.Plo
mv -f .deps/dumper.Tpo .deps/dumper.Plo
mv -f .deps/loader.Tpo .deps/loader.Plo
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT api.lo -MD -MP -MF .deps/api.Tpo -c api.c -o api.o >/dev/null 2>&1
mv -f .deps/parser.Tpo .deps/parser.Plo
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT emitter.lo -MD -MP -MF .deps/emitter.Tpo -c emitter.c -o emitter.o >/dev/null 2>&1
mv -f .deps/api.Tpo .deps/api.Plo
libtool: compile:  /usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c scanner.c -o scanner.o >/dev/null 2>&1
mv -f .deps/emitter.Tpo .deps/emitter.Plo
mv -f .deps/scanner.Tpo .deps/scanner.Plo
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-undefined -release 0 -version-info 2:9:0 -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o libyaml.la -rpath /home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/libyaml/lib api.lo reader.lo scanner.lo parser.lo loader.lo writer.lo emitter.lo dumper.lo
libtool: link: (cd ".libs" && rm -f "libyaml-0.so.2" && ln -s "libyaml-0.so.2.0.9" "libyaml-0.so.2")
libtool: link: (cd ".libs" && rm -f "libyaml.so" && ln -s "libyaml-0.so.2.0.9" "libyaml.so")
libtool: link: /usr/bin/aarch64-linux-gnu-ar rcsD .libs/libyaml.a  api.o reader.o scanner.o parser.o loader.o writer.o emitter.o dumper.o
libtool: link: : .libs/libyaml.a
libtool: link: ( cd ".libs" && rm -f "libyaml.la" && ln -s "../libyaml.la" "libyaml.la" )
make[1]: Leaving directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/src'
Making all in .
make[1]: Entering directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir'
Making all in tests
make[1]: Entering directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/tests'
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-scanner.o -MD -MP -MF .deps/run-scanner.Tpo -c -o run-scanner.o run-scanner.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-parser.o -MD -MP -MF .deps/run-parser.Tpo -c -o run-parser.o run-parser.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-loader.o -MD -MP -MF .deps/run-loader.Tpo -c -o run-loader.o run-loader.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-emitter.o -MD -MP -MF .deps/run-emitter.Tpo -c -o run-emitter.o run-emitter.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-dumper.o -MD -MP -MF .deps/run-dumper.Tpo -c -o run-dumper.o run-dumper.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT example-reformatter.o -MD -MP -MF .deps/example-reformatter.Tpo -c -o example-reformatter.o example-reformatter.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT example-reformatter-alt.o -MD -MP -MF .deps/example-reformatter-alt.Tpo -c -o example-reformatter-alt.o example-reformatter-alt.c
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT example-deconstructor.o -MD -MP -MF .deps/example-deconstructor.Tpo -c -o example-deconstructor.o example-deconstructor.c
mv -f .deps/run-loader.Tpo .deps/run-loader.Po
mv -f .deps/example-reformatter-alt.Tpo .deps/example-reformatter-alt.Po
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT example-deconstructor-alt.o -MD -MP -MF .deps/example-deconstructor-alt.Tpo -c -o example-deconstructor-alt.o example-deconstructor-alt.c
mv -f .deps/run-scanner.Tpo .deps/run-scanner.Po
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-parser-test-suite.o -MD -MP -MF .deps/run-parser-test-suite.Tpo -c -o run-parser-test-suite.o run-parser-test-suite.c
mv -f .deps/example-reformatter.Tpo .deps/example-reformatter.Po
/usr/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -MT run-emitter-test-suite.o -MD -MP -MF .deps/run-emitter-test-suite.Tpo -c -o run-emitter-test-suite.o run-emitter-test-suite.c
mv -f .deps/run-parser.Tpo .deps/run-parser.Po
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o run-scanner run-scanner.o ../src/libyaml.la
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o run-loader run-loader.o ../src/libyaml.la
mv -f .deps/run-emitter.Tpo .deps/run-emitter.Po
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o example-reformatter example-reformatter.o ../src/libyaml.la
mv -f .deps/run-dumper.Tpo .deps/run-dumper.Po
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o example-reformatter-alt example-reformatter-alt.o ../src/libyaml.la
mv -f .deps/run-parser-test-suite.Tpo .deps/run-parser-test-suite.Po
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o run-parser run-parser.o ../src/libyaml.la
mv -f .deps/example-deconstructor.Tpo .deps/example-deconstructor.Po
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o run-emitter run-emitter.o ../src/libyaml.la
mv -f .deps/run-emitter-test-suite.Tpo .deps/run-emitter-test-suite.Po
mv -f .deps/example-deconstructor-alt.Tpo .deps/example-deconstructor-alt.Po
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o run-dumper run-dumper.o ../src/libyaml.la
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/aarch64-linux-gnu-gcc  -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/  -lm -lstdc++ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z,relro,-z,now -o example-deconstructor example-deconstructor.o ../src/libyaml.la
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/run-scanner run-scanner.o  -lm -lstdc++ ../src/.libs/libyaml.so
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/run-loader run-loader.o  -lm -lstdc++ ../src/.libs/libyaml.so
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:661: run-scanner] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:649: run-loader] Error 1
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/example-reformatter-alt example-reformatter-alt.o  -lm -lstdc++ ../src/.libs/libyaml.so
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/example-reformatter example-reformatter.o  -lm -lstdc++ ../src/.libs/libyaml.so
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/run-parser run-parser.o  -lm -lstdc++ ../src/.libs/libyaml.so
make[1]: *** [Makefile:633: example-reformatter-alt] Error 1
make[1]: *** [Makefile:629: example-reformatter] Error 1
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/run-emitter run-emitter.o  -lm -lstdc++ ../src/.libs/libyaml.so
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/example-deconstructor example-deconstructor.o  -lm -lstdc++ ../src/.libs/libyaml.so
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
collect2: error: ld returned 1 exit status
libtool: link: /usr/bin/aarch64-linux-gnu-gcc -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -Wall -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -fdebug-prefix-map=/usr/aarch64-linux-gnu/=__bazel_toolchain__/ -no-canonical-prefixes -Wl,--build-id=md5 -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/run-dumper run-dumper.o  -lm -lstdc++ ../src/.libs/libyaml.so
make[1]: *** [Makefile:653: run-parser] Error 1
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
collect2: error: ld returned 1 exit status
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: cannot find ../src/.libs/libyaml.so: No such file or directory
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:641: run-emitter] Error 1
make[1]: *** [Makefile:637: run-dumper] Error 1
make[1]: *** [Makefile:621: example-deconstructor] Error 1
make[1]: Leaving directory '/home/wow/.cache/bazel/_bazel_wow/ac8d5001d5a2eda758463f089edb808e/execroot/_main/bazel-out/k8-fastbuild/bin/external/cross_deps_libyaml/libyaml.build_tmpdir/tests'
make: *** [Makefile:440: all-recursive] Error 1
@fffonion
Copy link
Contributor Author

To compare the difference, following is the Configure.log when using rules_foreign_cc 0.9.0:
olda.log

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