Hi! On Sun, 2021-05-16 21:53:45 +0200, Jan-Benedict Glaw <jbglaw%lug-owl.de@localhost> wrote: > On Fri, 2021-05-14 16:11:19 -0400, Christos Zoulas <christos%zoulas.com@localhost> wrote: > > Save the failed build and compare it with a successful one (file sizes). > > See which files are different and where. Something must be broken. > > So here's another round of builds. I bind-mounted some scratch space > /short and > /loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong > and started builds in these two directories. [...] > So it's actually .rodata that's being sized up here. Dumping .rodata > (readelf -x .rodata) actually reveals many occurrecnces of the > looooong dirname and comparing to sources, I guess the "culprit" > pulling in the source filenames (with full path) is _DIAGASSERT() as > used from within NetBSD's libc. These two builds were, however, done > without the patch (by Izumi Tsutsui) adding "DBG+= -DNDEBUG" to > distrib/sun2/miniroot/Makefile. If libc is built with this DBG flag, > that might actually help. Will give this a try next. Tried. And failed. The resulting binary is (md5sum) the same as before in both cases. So it seems building for sun2 right now really means that you're nailed to a "short" directory? I'll play with it some more, but it seems it's the actual source path of the "src" repo that's showing up, not the obj dir or $DESTDIR. Running the m68k-strings on such a binary, grepping (and cleaning it up a bit) for the long pathname, these show up: /loo...ong/NetBSD-src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ether.c /loo...ong/NetBSD-src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c /loo...ong/NetBSD-src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/media.c /loo...ong/NetBSD-src/common/lib/libprop/prop_string.c /loo...ong/NetBSD-src/common/lib/libprop/prop_object.c /loo...ong/NetBSD-src/common/lib/libprop/prop_number.c /loo...ong/NetBSD-src/common/lib/libprop/prop_dictionary.c /loo...ong/NetBSD-src/common/lib/libprop/prop_data.c /loo...ong/NetBSD-src/common/lib/libprop/prop_bool.c /loo...ong/NetBSD-src/common/lib/libprop/prop_array.c /loo...ong/NetBSD-src/common/lib/libprop/prop_stack.c /loo...ong/NetBSD-src/lib/libc/string/strmode.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/stdlib/_strtoul.h /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/stdlib/_strtoi.h /loo...ong/NetBSD-src/lib/libc/stdlib/strsuftoll.c /loo...ong/NetBSD-src/lib/libc/stdlib/putenv.c /loo...ong/NetBSD-src/lib/libc/stdlib/getopt.c /loo...ong/NetBSD-src/lib/libc/stdlib/atof.c /loo...ong/NetBSD-src/lib/libc/stdio/setbuf.c /loo...ong/NetBSD-src/lib/libc/stdio/fgetc.c /loo...ong/NetBSD-src/lib/libc/net/rcmd.c /loo...ong/NetBSD-src/lib/libc/net/linkaddr.c /loo...ong/NetBSD-src/lib/libc/net/ethers.c /loo...ong/NetBSD-src/lib/libc/gen/setmode.c /loo...ong/NetBSD-src/lib/libc/gen/initgroups.c /loo...ong/NetBSD-src/lib/libc/gen/humanize_number.c /loo...ong/NetBSD-src/lib/libc/gen/getmntinfo.c /loo...ong/NetBSD-src/lib/libc/gen/fstab.c /loo...ong/NetBSD-src/lib/libc/string/stresep.c /loo...ong/NetBSD-src/lib/libc/stdlib/setenv.c /loo...ong/NetBSD-src/lib/libc/stdio/setvbuf.c /loo...ong/NetBSD-src/lib/libc/regex/regfree.c /loo...ong/NetBSD-src/lib/libc/net/getprotobyname_r.c /loo...ong/NetBSD-src/lib/libc/inet/inet_network.c /loo...ong/NetBSD-src/lib/libc/gen/unvis.c /loo...ong/NetBSD-src/lib/libc/gen/pwcache.c /loo...ong/NetBSD-src/lib/libc/gen/execvp.c /loo...ong/NetBSD-src/lib/libc/stdio/vsscanf.c /loo...ong/NetBSD-src/lib/libc/stdio/vfscanf.c /loo...ong/NetBSD-src/lib/libc/stdio/ungetc.c /loo...ong/NetBSD-src/lib/libc/gen/closedir.c /loo...ong/NetBSD-src/lib/libc/string/strcoll.c /loo...ong/NetBSD-src/lib/libc/gen/opendir.c /loo...ong/NetBSD-src/lib/libc/gen/initdir.c /loo...ong/NetBSD-src/lib/libc/gen/alphasort.c /loo...ong/NetBSD-src/lib/libc/stdlib/merge.c /loo...ong/NetBSD-src/lib/libc/gen/telldir.c /loo...ong/NetBSD-src/lib/libc/gen/getdomainname.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/string/strlcpy.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/string/strlcat.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/string/strncasecmp.c /loo...ong/NetBSD-src/lib/libc/stdlib/getenv.c /loo...ong/NetBSD-src/lib/libc/stdlib/_env.c /loo...ong/NetBSD-src/lib/libc/stdio/vsnprintf_ss.c /loo...ong/NetBSD-src/lib/libc/string/strtok_r.c /loo...ong/NetBSD-src/lib/libc/net/getnameinfo.c /loo...ong/NetBSD-src/lib/libc/stdio/fileno.c /loo...ong/NetBSD-src/lib/libc/net/getaddrinfo.c /loo...ong/NetBSD-src/lib/libc/net/getservbyname_r.c /loo...ong/NetBSD-src/lib/libc/stdio/vasprintf.c /loo...ong/NetBSD-src/lib/libc/net/getifaddrs.c /loo...ong/NetBSD-src/lib/libc/stdlib/atoi.c /loo...ong/NetBSD-src/lib/libc/resolv/res_debug.c /loo...ong/NetBSD-src/lib/libc/nameser/ns_print.c /loo...ong/NetBSD-src/lib/libc/nameser/ns_parse.c /loo...ong/NetBSD-src/lib/libc/net/base64.c /loo...ong/NetBSD-src/lib/libc/inet/nsap_addr.c /loo...ong/NetBSD-src/lib/libc/nameser/ns_ttl.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/string/strsep.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/stdlib/_strtol.h /loo...ong/NetBSD-src/lib/libc/stdio/fgets.c /loo...ong/NetBSD-src/lib/libc/stdio/rewind.c /loo...ong/NetBSD-src/lib/libc/net/gethnamaddr.c /loo...ong/NetBSD-src/lib/libc/inet/inet_pton.c /loo...ong/NetBSD-src/lib/libc/inet/inet_ntop.c /loo...ong/NetBSD-src/lib/libc/stdio/fseeko.c /loo...ong/NetBSD-src/lib/libc/stdio/fparseln.c /loo...ong/NetBSD-src/lib/libc/stdio/fgetstr.c /loo...ong/NetBSD-src/lib/libc/resolv/res_comp.c /loo...ong/NetBSD-src/lib/libc/nameser/ns_name.c /loo...ong/NetBSD-src/lib/libc/stdio/vsprintf.c /loo...ong/NetBSD-src/lib/libc/stdio/getdelim.c /loo...ong/NetBSD-src/lib/libc/net/nsdispatch.c /loo...ong/NetBSD-src/lib/libc/time/localtime.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/string/strcasecmp.c /loo...ong/NetBSD-src/lib/libc/stdlib/bsearch.c /loo...ong/NetBSD-src/lib/libc/stdlib/atexit.c /loo...ong/NetBSD-src/lib/libc/stdio/vsnprintf.c /loo...ong/NetBSD-src/lib/libc/stdio/fread.c /loo...ong/NetBSD-src/lib/libc/stdio/fopen.c /loo...ong/NetBSD-src/lib/libc/stdio/wbuf.c /loo...ong/NetBSD-src/lib/libc/stdio/vfwprintf.c /loo...ong/NetBSD-src/lib/libc/string/strndup.c /loo...ong/NetBSD-src/lib/libc/string/strdup.c /loo...ong/NetBSD-src/lib/libc/gen/gethostname.c /loo...ong/NetBSD-src/lib/libc/stdio/getc.c /loo...ong/NetBSD-src/lib/libc/stdio/flags.c /loo...ong/NetBSD-src/lib/libc/stdio/fclose.c /loo...ong/NetBSD-src/lib/libc/stdio/rget.c /loo...ong/NetBSD-src/lib/libc/stdio/refill.c /loo...ong/NetBSD-src/lib/libc/stdio/mkstemp.c /loo...ong/NetBSD-src/lib/libc/stdio/gettemp.c /loo...ong/NetBSD-src/lib/libc/gen/arc4random.c /loo...ong/NetBSD-src/lib/libc/gen/getpagesize.c /loo...ong/NetBSD-src/lib/libc/stdlib/qsort.c /loo...ong/NetBSD-src/lib/libc/stdio/fvwrite.c /loo...ong/NetBSD-src/lib/libc/stdio/fflush.c /loo...ong/NetBSD-src/lib/libc/stdio/wsetup.c /loo...ong/NetBSD-src/lib/libc/stdio/makebuf.c /loo...ong/NetBSD-src/lib/libc/termios/tcgetattr.c /loo...ong/NetBSD-src/lib/libc/stdio/stdio.c /loo...ong/NetBSD-src/lib/libc/citrus/citrus_none.c /loo...ong/NetBSD-src/lib/libc/dlfcn/dlfcn_elf.c /loo...ong/NetBSD-src/lib/libc/stdio/fwalk.c /loo...ong/NetBSD-src/lib/libc/resolv/res_mkquery.c /loo...ong/NetBSD-src/lib/libc/../../common/lib/libc/md/md5c.c /loo...ong/NetBSD-src/lib/libc/net/sethostent.c /loo...ong/NetBSD-src/lib/libc/net/nsparser.y /loo...ong/NetBSD-src/lib/libc/stdio/ferror.c /loo...ong/NetBSD-src/lib/libc/stdio/clrerr.c MfG, JBG --
Attachment:
signature.asc
Description: PGP signature