Open tobiaskohlbau opened 7 months ago
This seems to be failing to link libxml2
on Zig 0.12.0-dev.2543+9eda6ccef
``` helene@fedora ~/s/regz (main)> zig build --verbose /home/helene/Workspaces/zig-linux-aarch64-0.12.0-dev.2543+9eda6ccef/zig build-lib -cflags -DLIBXML_VERSION=201105 -DLIBXML_VERSION_STRING="201105" -DLIBXML_VERSION_EXTRA="" -DLIBXML_DOTTED_VERSION="2.11.5" -DSEND_ARG2_CAST= -DGETHOSTBYNAME_ARG_CAST= -DGETHOSTBYNAME_ARG_CAST_CONST= -DLIBXML_STATIC=1 -DLIBXML_AUTOMATA_ENABLED=1 -DWITHOUT_TRIO=1 -DHAVE_ARPA_INET_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_DL_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_SHLLOAD=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_NDIR_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DLIBXML_C14N_ENABLED=1 -DLIBXML_CATALOG_ENABLED=1 -DLIBXML_DEBUG_ENABLED=1 -DLIBXML_HISTORY_ENABLED=1 -DHAVE_LIBHISTORY=1 -DHAVE_LIBREADLINE=1 -DLIBXML_HTML_ENABLED=1 -DLIBXML_ISO8859X_ENABLED=1 -DLIBXML_MINIMUM_ENABLED=1 -DLIBXML_OUTPUT_ENABLED=1 -DLIBXML_PATTERN_ENABLED=1 -DLIBXML_PUSH_ENABLED=1 -DLIBXML_READER_ENABLED=1 -DLIBXML_REGEXP_ENABLED=1 -DLIBXML_UNICODE_ENABLED=1 -DLIBXML_SAX1_ENABLED=1 -DLIBXML_SCHEMAS_ENABLED=1 -DLIBXML_SCHEMATRON_ENABLED=1 -DLIBXML_THREAD_ENABLED=1 -DHAVE_LIBPTHREAD=1 -DLIBXML_TREE_ENABLED=1 -DLIBXML_VALID_ENABLED=1 -DLIBXML_WRITER_ENABLED=1 -DLIBXML_XINCLUDE_ENABLED=1 -DLIBXML_XPATH_ENABLED=1 -DLIBXML_XPTR_ENABLED=1 -DLIBXML_MODULES_ENABLED=1 -- /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/buf.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/c14n.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/catalog.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/chvalid.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/debugXML.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/dict.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/encoding.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/entities.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/error.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/globals.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/hash.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/HTMLparser.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/HTMLtree.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/legacy.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/list.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/nanoftp.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/nanohttp.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/parser.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/parserInternals.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/pattern.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/relaxng.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/SAX.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/SAX2.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/schematron.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/threads.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/tree.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/uri.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/valid.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xinclude.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xlink.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlIO.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlmemory.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlmodule.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlreader.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlregexp.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlsave.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlschemas.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlschemastypes.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlstring.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlunicode.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xmlwriter.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xpath.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xpointer.c /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/xzlib.c -ODebug -I /home/helene/.cache/zig/p/122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d/include -I /home/helene/.cache/zig/p/122011b13203141cc965cfe6b070ffb5a8835eb906bb2cfd4650dbc17574e6e36fd5/override/include -I /home/helene/.cache/zig/p/122011b13203141cc965cfe6b070ffb5a8835eb906bb2cfd4650dbc17574e6e36fd5/override/config/posix -Mroot -lc --cache-dir /home/helene/share/regz/zig-cache --global-cache-dir /home/helene/.cache/zig --name xml2 -static --listen=- install └─ install xml2 └─ zig build-lib xml2 Debug native failure error: the linker needs one or more objects to link /home/helene/Workspaces/zig-linux-aarch64-0.12.0-dev.2543+9eda6ccef/zig build-exe /home/helene/share/regz/zig-cache/o/6f27d537734d6d30d52734ef2ccb269b/libxml2.a -ODebug -I /home/helene/share/regz/zig-cache/i/4a7b01b3879a17a90ba16abfad0cd637/include --dep clap -Mroot=/home/helene/share/regz/src/main.zig -Mclap=/home/helene/.cache/zig/p/12209e829da9d7d0bc089e4e0cbc07bb882f6192cd583277277da34df53cd05b8f2a/clap.zig -lc --cache-dir /home/helene/share/regz/zig-cache --global-cache-dir /home/helene/.cache/zig --name regz --listen=- Build Summary: 5/8 steps succeeded; 1 failed (disable with --summary none) install transitive failure └─ install xml2 transitive failure └─ zig build-lib xml2 Debug native failure error: the following build command failed with exit code 1: /home/helene/share/regz/zig-cache/o/35706f699eefeaff8f1a36aaade7a916/build /home/helene/Workspaces/zig-linux-aarch64-0.12.0-dev.2543+9eda6ccef/zig /home/helene/share/regz /home/helene/share/regz/zig-cache /home/helene/.cache/zig --seed 0xc6ef1ffc --verbose ```
This CL adds support to build regz with the latest zig nightlies. Zig renamed a few fields and made the compiler a bit more restrictive around constants and comptime.