dtc icon indicating copy to clipboard operation
dtc copied to clipboard

Version script tests always fails on FreeBSD

Open diizzyy opened this issue 5 months ago • 15 comments

On 14.3-RELEASE (amd64)

Clang:

Command line: `cc /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/tmp9874l4aw/testfile.c -o /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/tmp9874l4aw/output.exe -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Wl,--fatal-warnings -Wl,--version-script=/usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/version.lds` -> 1
stderr:
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_next_node' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_check_header' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_move' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_string' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_num_mem_rsv' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_mem_rsv' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_subnode_offset_namelen' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_subnode_offset' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_path_offset_namelen' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_path_offset' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_name' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_property_namelen' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_property' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_getprop_namelen' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_getprop' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_phandle' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_alias_namelen' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_alias' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_get_path' failed: symbol not defined
ld: error: version script assignment of 'LIBFDT_1.2' to symbol 'fdt_header_size' failed: symbol not defined
ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)

GCC:

Command line: `gcc13 -L/usr/local/lib/gcc13 /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/tmpdyr9xie9/testfile.c -o /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/tmpdyr9xie9/output.exe -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -O0 -Wl,--fatal-warnings -Wl,--version-script=/usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/version.lds` -> 1
stderr:
/usr/local/bin/ld: /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/tmpdyr9xie9/output.exe: local symbol `environ' in /usr/lib/crt1.o is referenced by DSO
/usr/local/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

It also fails using Clang on 13.5-RELEASE (amd64)

Tested version, latest commit on main branch as of writing https://github.com/dgibson/dtc/commit/617f3d9b60f7c52473c52caf7c197718e80c912b

diizzyy avatar Aug 02 '25 15:08 diizzyy

Huh, this looks like something I tried to fix with 2ad7387. I generated that trying to fix problems I encountered adding FreeBSD tests back to Cirrus CI. I guess I've got some edge case wrong here.

Ok, so:

  • Does the problem occur with meson builds, or only with gmake builds?
  • Could you attach the log of a full verbose build (gmake V=1)
  • Could you give the exact version of the linkers you're using (both clang and gcc)

dgibson avatar Aug 03 '25 10:08 dgibson

This fails in Cirrus CI as well looking at the logs from latest commit of this repo

  1. I only tried meson builds initially
  2. I've attached a log for gmake build-gmake.log
  3. FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) (Bundled with FreeBSD 14.3-RELEASE), GCC 13 - gcc13 (FreeBSD Ports Collection) 13.3.0

Using clang

The Meson build system
Version: 1.7.0
Source dir: /usr/ports/sysutils/dtc/work/dtc-617f3d9
Build dir: /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build
Build type: native build
Project name: dtc
Project version: 1.7.2
C compiler for the host machine: cc (clang 19.1.7 "FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)")
C linker for the host machine: cc ld.lld 19.1.7
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wcast-qual: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wsuggest-attribute=format: NO
Compiler for C supports arguments -Wwrite-strings: YES
Found pkg-config: YES (/usr/local/bin/pkgconf) 2.4.3
Run-time dependency yaml-0.1 found: YES 0.2.5
Dependency valgrind skipped: feature valgrind disabled
Program python found: NO (disabled by: python )
Program swig skipped: feature python disabled
Compiler for C supports link arguments -Wl,--version-script=/usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/version.lds: NO
Compiler for C supports link arguments -Wl,--no-undefined: YES
Program flex found: YES (/usr/bin/flex)
Program bison found: YES (/usr/local/bin/bison)
Check usable header "fnmatch.h" : YES
Library dl found: YES
Program run_tests.sh found: YES (/usr/ports/sysutils/dtc/work/dtc-617f3d9/tests/run_tests.sh)
Build targets in project: 82

dtc 1.7.2

  User defined options
    auto_features     : enabled
    b_colorout        : never
    buildtype         : release
    default_library   : shared
    infodir           : share/info
    localstatedir     : /var
    optimization      : plain
    prefix            : /usr/local
    python            : disabled
    python.bytecompile: -1
    strip             : true
    tests             : true
    valgrind          : disabled

Found ninja-1.11.1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
===>  Building for dtc-1.7.2
[  2% 8/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o -c ../libfdt/fdt_empty_tree.c
[  4% 9/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_check.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_check.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_check.c.o -c ../libfdt/fdt_check.c
[  6% 10/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o -c ../libfdt/fdt_addresses.c
[  8% 11/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o -c ../libfdt/fdt_strerror.c
[ 11% 12/45] /usr/bin/flex -o convert-dtsv0.p/convert-dtsv0-lexer.l.lex.c ../convert-dtsv0-lexer.l
[ 13% 13/45] /usr/bin/flex -o dtc.p/dtc-lexer.l.lex.c ../dtc-lexer.l
[ 15% 14/45] /usr/local/bin/meson --internal vcstagger ../version_gen.h.in version_gen.h 1.7.2 /usr/ports/sysutils/dtc/work/dtc-617f3d9 @VCS_TAG@ '(.*)' /usr/local/bin/git describe --dirty=+
fatal: not a git repository (or any of the parent directories): .git
[ 17% 15/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o -c ../libfdt/fdt_wip.c
[ 20% 16/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt.c.o -c ../libfdt/fdt.c
[ 22% 17/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o -c ../libfdt/fdt_rw.c
[ 24% 18/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o -c ../libfdt/fdt_overlay.c
[ 26% 19/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o -c ../libfdt/fdt_sw.c
[ 28% 20/45] cc -Ifdtdump.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtdump.p/fdtdump.c.o -MF fdtdump.p/fdtdump.c.o.d -o fdtdump.p/fdtdump.c.o -c ../fdtdump.c
[ 31% 21/45] /usr/local/bin/bison ../dtc-parser.y --defines=dtc.p/dtc-parser.tab.h --output=dtc.p/dtc-parser.tab.c
[ 33% 22/45] cc -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o -c ../libfdt/fdt_ro.c
[ 35% 23/45] cc -Iconvert-dtsv0.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ convert-dtsv0.p/util.c.o -MF convert-dtsv0.p/util.c.o.d -o convert-dtsv0.p/util.c.o -c ../util.c
[ 37% 24/45] cc -Iconvert-dtsv0.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ convert-dtsv0.p/srcpos.c.o -MF convert-dtsv0.p/srcpos.c.o.d -o convert-dtsv0.p/srcpos.c.o -c ../srcpos.c
[ 40% 25/45] cc  -o libfdt/libfdt.so.1.7.2 libfdt/libfdt.so.1.7.2.p/fdt.c.o libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o libfdt/libfdt.so.1.7.2.p/fdt_check.c.o libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libfdt.so.1 -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -Wl,--no-undefined
[ 42% 26/45] cc -Ifdtdump.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtdump.p/util.c.o -MF fdtdump.p/util.c.o.d -o fdtdump.p/util.c.o -c ../util.c
[ 44% 27/45] cc -Ifdtget.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtget.p/fdtget.c.o -MF fdtget.p/fdtget.c.o.d -o fdtget.p/fdtget.c.o -c ../fdtget.c
[ 46% 28/45] cc -Iconvert-dtsv0.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o -MF convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o.d -o convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o -c convert-dtsv0.p/convert-dtsv0-lexer.l.lex.c
[ 48% 29/45] cc -Ifdtget.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtget.p/util.c.o -MF fdtget.p/util.c.o.d -o fdtget.p/util.c.o -c ../util.c
[ 51% 30/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/dtc.c.o -MF dtc.p/dtc.c.o.d -o dtc.p/dtc.c.o -c ../dtc.c
[ 53% 31/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/meson-generated_dtc-parser.tab.c.o -MF dtc.p/meson-generated_dtc-parser.tab.c.o.d -o dtc.p/meson-generated_dtc-parser.tab.c.o -c dtc.p/dtc-parser.tab.c
[ 55% 32/45] /usr/local/bin/meson --internal symbolextractor /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build libfdt/libfdt.so.1.7.2 libfdt/libfdt.so.1.7.2 libfdt/libfdt.so.1.7.2.p/libfdt.so.1.7.2.symbols
[ 57% 33/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/data.c.o -MF dtc.p/data.c.o.d -o dtc.p/data.c.o -c ../data.c
[ 60% 34/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/fstree.c.o -MF dtc.p/fstree.c.o.d -o dtc.p/fstree.c.o -c ../fstree.c
[ 62% 35/45] cc  -o convert-dtsv0 convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o convert-dtsv0.p/srcpos.c.o convert-dtsv0.p/util.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 64% 36/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/yamltree.c.o -MF dtc.p/yamltree.c.o.d -o dtc.p/yamltree.c.o -c ../yamltree.c
[ 66% 37/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/meson-generated_dtc-lexer.l.lex.c.o -MF dtc.p/meson-generated_dtc-lexer.l.lex.c.o.d -o dtc.p/meson-generated_dtc-lexer.l.lex.c.o -c dtc.p/dtc-lexer.l.lex.c
[ 68% 38/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/srcpos.c.o -MF dtc.p/srcpos.c.o.d -o dtc.p/srcpos.c.o -c ../srcpos.c
[ 71% 39/45] cc  -o fdtdump fdtdump.p/fdtdump.c.o fdtdump.p/util.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 73% 40/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/treesource.c.o -MF dtc.p/treesource.c.o.d -o dtc.p/treesource.c.o -c ../treesource.c
[ 75% 41/45] cc  -o fdtget fdtget.p/fdtget.c.o fdtget.p/util.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 77% 42/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/flattree.c.o -MF dtc.p/flattree.c.o.d -o dtc.p/flattree.c.o -c ../flattree.c
[ 80% 42/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/util.c.o -MF dtc.p/util.c.o.d -o dtc.p/util.c.o -c ../util.c
[ 82% 42/45] cc -Ifdtoverlay.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtoverlay.p/fdtoverlay.c.o -MF fdtoverlay.p/fdtoverlay.c.o.d -o fdtoverlay.p/fdtoverlay.c.o -c ../fdtoverlay.c
[ 84% 42/45] cc -Ifdtput.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtput.p/util.c.o -MF fdtput.p/util.c.o.d -o fdtput.p/util.c.o -c ../util.c
[ 86% 42/45] cc -Ifdtput.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtput.p/fdtput.c.o -MF fdtput.p/fdtput.c.o.d -o fdtput.p/fdtput.c.o -c ../fdtput.c
[ 88% 43/45] cc  -o fdtput fdtput.p/fdtput.c.o fdtput.p/util.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 91% 43/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/checks.c.o -MF dtc.p/checks.c.o.d -o dtc.p/checks.c.o -c ../checks.c
[ 93% 43/45] cc -Ifdtoverlay.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ fdtoverlay.p/util.c.o -MF fdtoverlay.p/util.c.o.d -o fdtoverlay.p/util.c.o -c ../util.c
[ 95% 44/45] cc -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing -MD -MQ dtc.p/livetree.c.o -MF dtc.p/livetree.c.o.d -o dtc.p/livetree.c.o -c ../livetree.c
[ 97% 45/45] cc  -o fdtoverlay fdtoverlay.p/fdtoverlay.c.o fdtoverlay.p/util.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[100% 45/45] cc  -o dtc dtc.p/meson-generated_dtc-lexer.l.lex.c.o dtc.p/meson-generated_dtc-parser.tab.c.o dtc.p/checks.c.o dtc.p/data.c.o dtc.p/dtc.c.o dtc.p/flattree.c.o dtc.p/fstree.c.o dtc.p/livetree.c.o dtc.p/srcpos.c.o dtc.p/treesource.c.o dtc.p/yamltree.c.o dtc.p/util.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -pipe -march=znver3 -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt:/usr/local/lib' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt -Wl,-rpath-link,/usr/local/lib -Wl,--start-group libfdt/libfdt.so.1.7.2 /usr/local/lib/libyaml.so -Wl,--end-group
===>  Staging for dtc-1.7.2
===>   Generating temporary packing list
[  7% 1/14] /usr/local/bin/meson --internal vcstagger ../version_gen.h.in version_gen.h 1.7.2 /usr/ports/sysutils/dtc/work/dtc-617f3d9 @VCS_TAG@ '(.*)' /usr/local/bin/git describe --dirty=+
fatal: not a git repository (or any of the parent directories): .git
[ 50% 2/2] /usr/local/bin/meson install --no-rebuild
Installing libfdt/libfdt.so.1.7.2 to /usr/ports/sysutils/dtc/work/stage/usr/local/lib
Stripping target 'libfdt/libfdt.so.1.7.2'.
Installing convert-dtsv0 to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'convert-dtsv0'.
Installing dtc to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'dtc'.
Installing fdtdump to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtdump'.
Installing fdtget to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtget'.
Installing fdtput to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtput'.
Installing fdtoverlay to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtoverlay'.
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/fdt.h to /usr/ports/sysutils/dtc/work/stage/usr/local/include
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/libfdt.h to /usr/ports/sysutils/dtc/work/stage/usr/local/include
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/libfdt_env.h to /usr/ports/sysutils/dtc/work/stage/usr/local/include
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/libfdt.pc to /usr/ports/sysutils/dtc/work/stage/usr/local/libdata/pkgconfig
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/dtdiff to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Installing symlink pointing to libfdt.so.1.7.2 to /usr/ports/sysutils/dtc/work/stage/usr/local/lib/libfdt.so.1
Installing symlink pointing to libfdt.so.1 to /usr/ports/sysutils/dtc/work/stage/usr/local/lib/libfdt.so

GCC:

The Meson build system
Version: 1.7.0
Source dir: /usr/ports/sysutils/dtc/work/dtc-617f3d9
Build dir: /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build
Build type: native build
Project name: dtc
Project version: 1.7.2
C compiler for the host machine: gcc13 (gcc 13.3.0 "gcc13 (FreeBSD Ports Collection) 13.3.0")
C linker for the host machine: gcc13 ld.bfd 2.44
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wcast-qual: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wsuggest-attribute=format: YES
Compiler for C supports arguments -Wwrite-strings: YES
Found pkg-config: YES (/usr/local/bin/pkgconf) 2.4.3
Run-time dependency yaml-0.1 found: YES 0.2.5
Dependency valgrind skipped: feature valgrind disabled
Program python found: NO (disabled by: python )
Program swig skipped: feature python disabled
Compiler for C supports link arguments -Wl,--version-script=/usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/version.lds: NO
Compiler for C supports link arguments -Wl,--no-undefined: YES
Program flex found: YES (/usr/bin/flex)
Program bison found: YES (/usr/local/bin/bison)
Check usable header "fnmatch.h" : YES
Library dl found: YES
Program run_tests.sh found: YES (/usr/ports/sysutils/dtc/work/dtc-617f3d9/tests/run_tests.sh)
Build targets in project: 82

dtc 1.7.2

  User defined options
    auto_features     : enabled
    b_colorout        : never
    buildtype         : release
    default_library   : shared
    infodir           : share/info
    localstatedir     : /var
    optimization      : plain
    prefix            : /usr/local
    python            : disabled
    python.bytecompile: -1
    strip             : true
    tests             : true
    valgrind          : disabled

Found ninja-1.11.1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
===>  Building for dtc-1.7.2
[  2% 8/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o -c ../libfdt/fdt_empty_tree.c
[  4% 9/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o -c ../libfdt/fdt_addresses.c
[  6% 10/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_check.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_check.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_check.c.o -c ../libfdt/fdt_check.c
[  8% 11/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o -c ../libfdt/fdt_strerror.c
[ 11% 12/45] /usr/bin/flex -o convert-dtsv0.p/convert-dtsv0-lexer.l.lex.c ../convert-dtsv0-lexer.l
[ 13% 13/45] /usr/bin/flex -o dtc.p/dtc-lexer.l.lex.c ../dtc-lexer.l
[ 15% 14/45] /usr/local/bin/meson --internal vcstagger ../version_gen.h.in version_gen.h 1.7.2 /usr/ports/sysutils/dtc/work/dtc-617f3d9 @VCS_TAG@ '(.*)' /usr/local/bin/git describe --dirty=+
fatal: not a git repository (or any of the parent directories): .git
[ 17% 15/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o -c ../libfdt/fdt_wip.c
[ 20% 16/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt.c.o -c ../libfdt/fdt.c
[ 22% 17/45] /usr/local/bin/bison ../dtc-parser.y --defines=dtc.p/dtc-parser.tab.h --output=dtc.p/dtc-parser.tab.c
[ 24% 18/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o -c ../libfdt/fdt_sw.c
[ 26% 19/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o -c ../libfdt/fdt_rw.c
[ 28% 20/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o -c ../libfdt/fdt_overlay.c
[ 31% 21/45] gcc13 -Iconvert-dtsv0.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ convert-dtsv0.p/srcpos.c.o -MF convert-dtsv0.p/srcpos.c.o.d -o convert-dtsv0.p/srcpos.c.o -c ../srcpos.c
[ 33% 22/45] gcc13 -Ilibfdt/libfdt.so.1.7.2.p -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -fPIC -MD -MQ libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o -MF libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o.d -o libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o -c ../libfdt/fdt_ro.c
[ 35% 23/45] gcc13  -o libfdt/libfdt.so.1.7.2 libfdt/libfdt.so.1.7.2.p/fdt.c.o libfdt/libfdt.so.1.7.2.p/fdt_addresses.c.o libfdt/libfdt.so.1.7.2.p/fdt_check.c.o libfdt/libfdt.so.1.7.2.p/fdt_empty_tree.c.o libfdt/libfdt.so.1.7.2.p/fdt_overlay.c.o libfdt/libfdt.so.1.7.2.p/fdt_ro.c.o libfdt/libfdt.so.1.7.2.p/fdt_rw.c.o libfdt/libfdt.so.1.7.2.p/fdt_strerror.c.o libfdt/libfdt.so.1.7.2.p/fdt_sw.c.o libfdt/libfdt.so.1.7.2.p/fdt_wip.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libfdt.so.1 -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -Wl,--no-undefined
[ 37% 24/45] gcc13 -Iconvert-dtsv0.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ convert-dtsv0.p/util.c.o -MF convert-dtsv0.p/util.c.o.d -o convert-dtsv0.p/util.c.o -c ../util.c
[ 40% 25/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/dtc.c.o -MF dtc.p/dtc.c.o.d -o dtc.p/dtc.c.o -c ../dtc.c
[ 42% 26/45] gcc13 -Iconvert-dtsv0.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o -MF convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o.d -o convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o -c convert-dtsv0.p/convert-dtsv0-lexer.l.lex.c
[ 44% 27/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/fstree.c.o -MF dtc.p/fstree.c.o.d -o dtc.p/fstree.c.o -c ../fstree.c
[ 46% 28/45] /usr/local/bin/meson --internal symbolextractor /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build libfdt/libfdt.so.1.7.2 libfdt/libfdt.so.1.7.2 libfdt/libfdt.so.1.7.2.p/libfdt.so.1.7.2.symbols
[ 48% 29/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/data.c.o -MF dtc.p/data.c.o.d -o dtc.p/data.c.o -c ../data.c
[ 51% 30/45] gcc13  -o convert-dtsv0 convert-dtsv0.p/meson-generated_convert-dtsv0-lexer.l.lex.c.o convert-dtsv0.p/srcpos.c.o convert-dtsv0.p/util.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 53% 31/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/meson-generated_dtc-parser.tab.c.o -MF dtc.p/meson-generated_dtc-parser.tab.c.o.d -o dtc.p/meson-generated_dtc-parser.tab.c.o -c dtc.p/dtc-parser.tab.c
[ 55% 32/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/srcpos.c.o -MF dtc.p/srcpos.c.o.d -o dtc.p/srcpos.c.o -c ../srcpos.c
[ 57% 33/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/meson-generated_dtc-lexer.l.lex.c.o -MF dtc.p/meson-generated_dtc-lexer.l.lex.c.o.d -o dtc.p/meson-generated_dtc-lexer.l.lex.c.o -c dtc.p/dtc-lexer.l.lex.c
[ 60% 34/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/yamltree.c.o -MF dtc.p/yamltree.c.o.d -o dtc.p/yamltree.c.o -c ../yamltree.c
[ 62% 35/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/treesource.c.o -MF dtc.p/treesource.c.o.d -o dtc.p/treesource.c.o -c ../treesource.c
[ 64% 36/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/util.c.o -MF dtc.p/util.c.o.d -o dtc.p/util.c.o -c ../util.c
[ 66% 37/45] gcc13 -Ifdtdump.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtdump.p/fdtdump.c.o -MF fdtdump.p/fdtdump.c.o.d -o fdtdump.p/fdtdump.c.o -c ../fdtdump.c
[ 68% 38/45] gcc13 -Ifdtget.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtget.p/fdtget.c.o -MF fdtget.p/fdtget.c.o.d -o fdtget.p/fdtget.c.o -c ../fdtget.c
[ 71% 39/45] gcc13 -Ifdtdump.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtdump.p/util.c.o -MF fdtdump.p/util.c.o.d -o fdtdump.p/util.c.o -c ../util.c
[ 73% 40/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/flattree.c.o -MF dtc.p/flattree.c.o.d -o dtc.p/flattree.c.o -c ../flattree.c
[ 75% 41/45] gcc13 -Ifdtget.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtget.p/util.c.o -MF fdtget.p/util.c.o.d -o fdtget.p/util.c.o -c ../util.c
[ 77% 42/45] gcc13  -o fdtdump fdtdump.p/fdtdump.c.o fdtdump.p/util.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 80% 42/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/livetree.c.o -MF dtc.p/livetree.c.o.d -o dtc.p/livetree.c.o -c ../livetree.c
[ 82% 42/45] gcc13  -o fdtget fdtget.p/fdtget.c.o fdtget.p/util.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 84% 42/45] gcc13 -Ifdtput.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtput.p/fdtput.c.o -MF fdtput.p/fdtput.c.o.d -o fdtput.p/fdtput.c.o -c ../fdtput.c
[ 86% 42/45] gcc13 -Ifdtoverlay.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtoverlay.p/fdtoverlay.c.o -MF fdtoverlay.p/fdtoverlay.c.o.d -o fdtoverlay.p/fdtoverlay.c.o -c ../fdtoverlay.c
[ 88% 42/45] gcc13 -Ifdtput.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtput.p/util.c.o -MF fdtput.p/util.c.o.d -o fdtput.p/util.c.o -c ../util.c
[ 91% 43/45] gcc13  -o fdtput fdtput.p/fdtput.c.o fdtput.p/util.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 93% 43/45] gcc13 -Ifdtoverlay.p -I. -I.. -Ilibfdt -I../libfdt -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ fdtoverlay.p/util.c.o -MF fdtoverlay.p/util.c.o.d -o fdtoverlay.p/util.c.o -c ../util.c
[ 95% 44/45] gcc13  -o fdtoverlay fdtoverlay.p/fdtoverlay.c.o fdtoverlay.p/util.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt libfdt/libfdt.so.1.7.2
[ 97% 44/45] gcc13 -Idtc.p -I. -I.. -Ilibfdt -I../libfdt -I/usr/local/include -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -Wsuggest-attribute=format -Wwrite-strings -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing -MD -MQ dtc.p/checks.c.o -MF dtc.p/checks.c.o.d -o dtc.p/checks.c.o -c ../checks.c
[100% 45/45] gcc13  -o dtc dtc.p/meson-generated_dtc-lexer.l.lex.c.o dtc.p/meson-generated_dtc-parser.tab.c.o dtc.p/checks.c.o dtc.p/data.c.o dtc.p/dtc.c.o dtc.p/flattree.c.o dtc.p/fstree.c.o dtc.p/livetree.c.o dtc.p/srcpos.c.o dtc.p/treesource.c.o dtc.p/yamltree.c.o dtc.p/util.c.o -L/usr/local/lib/gcc13 -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/usr/local/lib/gcc13 -O2 -pipe -march=znver3 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/libfdt:/usr/local/lib' -Wl,-rpath-link,/usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/libfdt -Wl,-rpath-link,/usr/local/lib -Wl,--start-group libfdt/libfdt.so.1.7.2 /usr/local/lib/libyaml.so -Wl,--end-group
===>  Staging for dtc-1.7.2
===>   dtc-1.7.2 depends on executable: gcc13 - found
===>   Generating temporary packing list
[  7% 1/14] /usr/local/bin/meson --internal vcstagger ../version_gen.h.in version_gen.h 1.7.2 /usr/ports/sysutils/dtc/work/dtc-617f3d9 @VCS_TAG@ '(.*)' /usr/local/bin/git describe --dirty=+
fatal: not a git repository (or any of the parent directories): .git
[ 50% 2/2] /usr/local/bin/meson install --no-rebuild
Installing libfdt/libfdt.so.1.7.2 to /usr/ports/sysutils/dtc/work/stage/usr/local/lib
Stripping target 'libfdt/libfdt.so.1.7.2'.
Installing convert-dtsv0 to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'convert-dtsv0'.
Installing dtc to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'dtc'.
Installing fdtdump to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtdump'.
Installing fdtget to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtget'.
Installing fdtput to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtput'.
Installing fdtoverlay to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Stripping target 'fdtoverlay'.
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/fdt.h to /usr/ports/sysutils/dtc/work/stage/usr/local/include
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/libfdt.h to /usr/ports/sysutils/dtc/work/stage/usr/local/include
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/libfdt/libfdt_env.h to /usr/ports/sysutils/dtc/work/stage/usr/local/include
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/_build/meson-private/libfdt.pc to /usr/ports/sysutils/dtc/work/stage/usr/local/libdata/pkgconfig
Installing /usr/ports/sysutils/dtc/work/dtc-617f3d9/dtdiff to /usr/ports/sysutils/dtc/work/stage/usr/local/bin
Installing symlink pointing to libfdt.so.1.7.2 to /usr/ports/sysutils/dtc/work/stage/usr/local/lib/libfdt.so.1
Installing symlink pointing to libfdt.so.1 to /usr/ports/sysutils/dtc/work/stage/usr/local/lib/libfdt.so

Best regards, Daniel

diizzyy avatar Aug 03 '25 12:08 diizzyy

Sorry, I'm very confused by this reply.

This fails in Cirrus CI as well looking at the logs from latest commit of this repo

I'm not seeing that in the Cirrus testing that I've set up here. Is there another Cirrus job testing dtc somewhere that I'm not aware of?

  1. I only tried meson builds initially

Does initially mean for this ticket, or for your earlier ticket? I'm still unclear if the bug you're reporting here occurred with meson or make.

  1. I've attached a log for gmake build-gmake.log

I don't see the error you mention in this log, nor in the two meson logs you included. Under what circumstances is the error showing up?

dgibson avatar Aug 04 '25 02:08 dgibson

  1. https://cirrus-ci.com/task/4962482919309312 --> Run setup --> "Compiler for C supports link arguments -Wl,--version-script=/tmp/cirrus-ci-build/libfdt/version.lds: NO" or am I missing something?
  2. Both, I've only used Meson but I tried using gmake when you asked me to.

diizzyy avatar Aug 04 '25 05:08 diizzyy

  1. https://cirrus-ci.com/task/4962482919309312 --> Run setup --> "Compiler for C supports link arguments -Wl,--version-script=/tmp/cirrus-ci-build/libfdt/version.lds: NO" or am I missing something?

That's working as intended. AIUI, the BSD linker doesn't support a version script (or at least not in the GNU binutils format that the script we have is in). This is detecting that and so should be omitting the version script it from the link. From the errors you quote it seems like that's not happening, but I haven't figured what circumstances that's occurring in.

  1. Both, I've only used Meson but I tried using gmake when you asked me to.

Ok.

dgibson avatar Aug 04 '25 11:08 dgibson

Btw, what do you need to do to use gcc for the build on FreeBSD? It's probably worth adding that case to the CI as well.

dgibson avatar Aug 04 '25 12:08 dgibson

You put USE_GCC=yes into a port's Makefile. There are other options, you could write USE_GCC=15+ to only use GCC 15 or newer.

mandree avatar Aug 04 '25 17:08 mandree

  1. https://cirrus-ci.com/task/4962482919309312 --> Run setup --> "Compiler for C supports link arguments -Wl,--version-script=/tmp/cirrus-ci-build/libfdt/version.lds: NO" or am I missing something?

That's working as intended. AIUI, the BSD linker doesn't support a version script (or at least not in the GNU binutils format that the script we have is in). This is detecting that and so should be omitting the version script it from the link. From the errors you quote it seems like that's not happening, but I haven't figured what circumstances that's occurring in.

It does support symbols versioning scripts, but the meson test is broken. On FreeBSD, the object needs to be built before you can version it. Check meson's error log (I don't see how Cirrus CI would provide it though), and you'll probably see complaints that symbols are missing.

I've fixed similar bugs before, in other third-party software that also happens to use meson for building, see, f.i. https://cgit.freebsd.org/ports/commit/misc/libuuid?id=d39f421a4d802ff7cd7eb258371cdd3ecb7ce042 (the commit message has a typo, it should have been built not build) or https://cgit.freebsd.org/ports/commit/filesystems/libblkid?id=ccd11d773505a90ed37208bc2dff1d4a8d3ec495 (ditto).

mandree avatar Aug 04 '25 17:08 mandree

You put USE_GCC=yes into a port's Makefile. There are other options, you could write USE_GCC=15+ to only use GCC 15 or newer.

We're not dealing with a port here, but the upstream source tree. So I guess what I'm after is what's the name of the gcc package(s), and where should I expect the gcc binary to appear?

dgibson avatar Aug 05 '25 00:08 dgibson

  1. https://cirrus-ci.com/task/4962482919309312 --> Run setup --> "Compiler for C supports link arguments -Wl,--version-script=/tmp/cirrus-ci-build/libfdt/version.lds: NO" or am I missing something?

That's working as intended. AIUI, the BSD linker doesn't support a version script (or at least not in the GNU binutils format that the script we have is in). This is detecting that and so should be omitting the version script it from the link. From the errors you quote it seems like that's not happening, but I haven't figured what circumstances that's occurring in.

It does support symbols versioning scripts, but the meson test is broken. On FreeBSD, the object needs to be built before you can version it. Check meson's error log (I don't see how Cirrus CI would provide it though), and you'll probably see complaints that symbols are missing.

That's good to know, but I'm not sure what to do with the information. Do you mean you need to link the library once, without versions, then link again with the version script? How would you correctly test for version support.

I've fixed similar bugs before, in other third-party software that also happens to use meson for building, see, f.i. https://cgit.freebsd.org/ports/commit/misc/libuuid?id=d39f421a4d802ff7cd7eb258371cdd3ecb7ce042 (the commit message has a typo, it should have been built not build) or https://cgit.freebsd.org/ports/commit/filesystems/libblkid?id=ccd11d773505a90ed37208bc2dff1d4a8d3ec495 (ditto).

Unconditionally using --version-script is not a solution I can use upstream; I still need to catch possible other configurations where the script is entirely unsupported. Plus I want to allow for the possibility of meson correcting its test in future.

dgibson avatar Aug 05 '25 00:08 dgibson

  1. https://cirrus-ci.com/task/4962482919309312 --> Run setup --> "Compiler for C supports link arguments -Wl,--version-script=/tmp/cirrus-ci-build/libfdt/version.lds: NO" or am I missing something?

That's working as intended. AIUI, the BSD linker doesn't support a version script (or at least not in the GNU binutils format that the script we have is in). This is detecting that and so should be omitting the version script it from the link. From the errors you quote it seems like that's not happening, but I haven't figured what circumstances that's occurring in.

It does support symbols versioning scripts, but the meson test is broken. On FreeBSD, the object needs to be built before you can version it. Check meson's error log (I don't see how Cirrus CI would provide it though), and you'll probably see complaints that symbols are missing.

That's good to know, but I'm not sure what to do with the information. Do you mean you need to link the library once, without versions, then link again with the version script? How would you correctly test for version support.

So either you build the library and then test if you can use the versioning command line arguments, or you use a synthetic trivial library and try versioning that from the meson test you run early. Seems we no longer have a possibility to just see if the linker understands the version script arguments in an abstract manner, without concrete library objects.

mandree avatar Aug 05 '25 22:08 mandree

You put USE_GCC=yes into a port's Makefile. There are other options, you could write USE_GCC=15+ to only use GCC 15 or newer.

We're not dealing with a port here, but the upstream source tree. So I guess what I'm after is what's the name of the gcc package(s), and where should I expect the gcc binary to appear?

So you can pkg install gcc, or specific versions gcc11, gcc12, gcc13, gcc14, gcc15, or gcc16-devel. I suppose the older may go away at some point. We have a meta port called gcc which pulls in the package of the default version, currently 13, but soon to be updated to 14, and pulls that package in. Executables have the same names and appear under /usr/local/bin but should usually also be on the $PATH. The default "gcc" package installs symlinks g++, gcc, gfortran. Versioned C++ compilers appear as g++, g++13, g++15 or thereabouts. The -devel packages do not install binaries with a -devel suffic, but just stuff like this:

        /usr/local/bin/c++15
        /usr/local/bin/cpp15
        /usr/local/bin/g++15
        /usr/local/bin/gcc-ar15
        /usr/local/bin/gcc-nm15
        /usr/local/bin/gcc-ranlib15
        /usr/local/bin/gcc15
        /usr/local/bin/gcov-dump15
        /usr/local/bin/gcov-tool15
        /usr/local/bin/gcov15
        /usr/local/bin/gfortran15
        /usr/local/bin/lto-dump15

mandree avatar Aug 05 '25 22:08 mandree

Sorry, I realised I misunderstood this report from the beginning. I assumed you were getting actual errors on the final link, but instead you're just saying we're omitting the version script when we should not.

Now that I'm looking at the right problem, this makes sense. Our test for version script support is using a version script specific to the library but a dummy test object with no symbols. Working on a fix...

dgibson avatar Aug 06 '25 03:08 dgibson

Sorry this has taken a long time. It turns out writing an elegant and correct test for this is fiddlier than I anticipated.

dgibson avatar Aug 21 '25 03:08 dgibson

Thanks for looking in to it

diizzyy avatar Aug 23 '25 21:08 diizzyy