From nobody Mon Jan 08 22:50:31 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T88RG3BTpz5746X for ; Mon, 8 Jan 2024 22:50:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T88RG2N2yz4vnr; Mon, 8 Jan 2024 22:50:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704754234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xk9GE8Bir7BRgmBJeKo/jms/zc8KJShIZAZJaHpMkEo=; b=geKO2ppy+bSybIZJ7ak7mmI/EEonX6/3Xjr+l8M862aFYIkPkRz8Dyp7vMouH9mHYDwzHc 31M7shMlOclWdDgrJQjivR6JTQPdv/MapweVxysjM8AWbtnp2wZ+gU/W5h5BgTZMaqjsDG AWswzLg+oAAhEpcNDdS4e7B4UYX7xAzE8t9FZl0FkcT2nvmc+6+4LT3Z+7fJvnI5dnlHl7 pxElJSC3T899ZHfpVYbxoDat8vMGrIa/AHoIkQPeHV7fEzyB2OEQB+G3BR7KbMraUqeN6K hUdG0akU2CrpY30dno3ynmyJuIEh45PR9+2BNkBPxqKc0pLfn2VBSRW2xmXkTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704754234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xk9GE8Bir7BRgmBJeKo/jms/zc8KJShIZAZJaHpMkEo=; b=Lb1ajAAR8QjyC2WDN91PjdyYLy/M0V2VlT2aU9U1AN96TiC6WPzEKmVG8iIyQFp+NJV+pm fihDSSxayTIwj6RKSgjYssVq4QrggxNiXCxmjkzmNWiRmkwiCIW7UrG/Hg9UAF1aeKulgX vyELMI1rdGrihMy8Yyz2/wlkD0dGVyp7oyAo9lnd2IrwHsgOpmmgyDsm6k+t5fVjtL+1xz /Z9zqGO84D7wGOmB90woOrK5h261jFLZFgisMeQdbVj2oVYL5LFRR/VFnGwYR+6HaX7W1d n78XnnQXqDi0C2uKHMpeVWtzP7oLLVL8mDOEObAO2385Z5JEolBU/q4n3hjbTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704754234; a=rsa-sha256; cv=none; b=fD7q3ayI2t9MpALNCOVkLqeT+X7hQVXuqxfz2AOFZueIgcRVdsooNxAC0Dns+YfyiuF+n2 HVHPvKNx9V/ZLpLXg/b2BWcVR0qTgYT5wWjT7gFVhgbM0EqPOozJUFPD4G262apzBsVa2f LMWkVJ8huW1FYIoi+o/nPMHrwuG5F2FZRblb1mOX5aO0F0ozSXn2wmDed7xq6l2v7hX/48 /3NbRTMpEBNHvOW5wZm+ibb+NjCHcPdeEaiJNQVQ2f7VH/r1caKRA7g8CcVCf3PoRMAQ5H lkE626H+INebweZz50vkiOI1AFCiBBmFvkNKgN9eroZN90e3Z8pXRaUF6wgYrQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4T88RG09pRz1Kt6; Mon, 8 Jan 2024 22:50:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 273AD54CE8; Mon, 8 Jan 2024 23:50:32 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: clang 17 and ports fallout From: Dimitry Andric In-Reply-To: <4a0db68d-bb13-4238-a251-74d02ff14a17@sentex.net> Date: Mon, 8 Jan 2024 23:50:31 +0100 Cc: FreeBSD-STABLE Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <06381879-c328-4051-bb2f-9c3620d90fa0@sentex.net> <4a0db68d-bb13-4238-a251-74d02ff14a17@sentex.net> To: mike tancsa X-Mailer: Apple Mail (2.3731.700.6) On 8 Jan 2024, at 21:57, mike tancsa wrote: >=20 > On 1/8/2024 3:40 PM, mike tancsa wrote: >> After today's MFC of clang17, I am seeing some fallout from a few = ports that build with clang16 on RELENG_13 but now fail. Any ideas what = might be going on ? I have nothing in /etc/make.conf nor /etc/src.conf >>=20 > These build on RELENG_14, so perhaps something still needs to be MFC'd = to RELENG_13 ? >=20 > I have tried both with and without poudriere. Same error in poudriere >=20 > d_la-rrd_update.lo librrdupd_la-rrd_modify.lo = librrdupd_la-quicksort.lo librrdupd_la-rrd_thread_safe.lo -lm -lwrap = -lglib-2.0 -lintl > libtool: link: ar cr .libs/librrdupd.a .libs/librrdupd_la-mutex.o = libs/librrdupd_la-optparse.o .libs/librrdupd_la-rrd_strtod.o = libs/librrdupd_la-rrd_create.o .libs/librrdupd_la-hash_32.o = libs/librrdupd_la-rrd_parsetime.o .libs/librrdupd_la-rrd_hw.o = libs/librrdupd_la-rrd_hw_math.o .libs/librrdupd_la-rrd_hw_update.o = libs/librrdupd_la-rrd_diff.o .libs/librrdupd_la-rrd_format.o = libs/librrdupd_la-rrd_info.o .libs/librrdupd_la-rrd_error.o = libs/librrdupd_la-rrd_open.o .libs/librrdupd_la-rrd_client.o = libs/librrdupd_la-rrd_nan_inf.o .libs/librrdupd_la-rrd_rpncalc.o = libs/librrdupd_la-rrd_utils.o .libs/librrdupd_la-rrd_snprintf.o = libs/librrdupd_la-rrd_update.o .libs/librrdupd_la-rrd_modify.o = libs/librrdupd_la-quicksort.o .libs/librrdupd_la-rrd_thread_safe.o > libtool: link: ranlib .libs/librrdupd.a > libtool: link: ( cd ".libs" && rm -f "librrdupd.la" && ln -s = "../librrdupd.la" "librrdupd.la" ) > /bin/sh ../libtool --tag=3DCC --mode=3Dlink cc -O2 -pipe = -fstack-protector-strong -fno-strict-aliasing -D_GNU_SOURCE = -fno-strict-aliasing -Wall -std=3Dgnu99 -pedantic -Wundef -Wshadow = -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations = -Wnested-externs -Winline -Wold-style-definition -W -I.. -D_THREAD_SAFE = -pthread -O2 -pipe -fstack-protector-strong -fno-strict-aliasing = -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=3Dgnu99 -pedantic -Wundef = -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes = -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition = -W -version-info 11:0:3 -export-symbols ./librrd.sym = -fstack-protector-strong -L/usr/local/lib -L/usr/local/lib -o = librrd.la -rpath /usr/local/lib librrd_la-rrd_version.lo = librrd_la-rrd_last.lo librrd_la-rrd_lastupdate.lo librrd_la-rrd_first.lo = librrd_la-rrd_dump.lo librrd_la-rrd_flushcached.lo = librrd_la-rrd_fetch.lo librrd_la-rrd_fetch_cb.lo librrd_la-rrd_resize.lo = librrd_la-rrd_tune.lo librrd_la-rrd_list.lo librrd_la-rrd_restore.lo = librrdupd.la -lglib-2.0 -lintl -lm -lwrap -lxml2 > libtool: link: echo "{ global:" > .libs/librrd.so.8.3.0-ver > libtool: link: sed -e "s|$|;|" < ./librrd.sym >> = libs/librrd.so.8.3.0-ver > libtool: link: echo "local: *; };" >> .libs/librrd.so.8.3.0-ver > libtool: link: cc -shared -fPIC -DPIC .libs/librrd_la-rrd_version.o = libs/librrd_la-rrd_last.o .libs/librrd_la-rrd_lastupdate.o = libs/librrd_la-rrd_first.o .libs/librrd_la-rrd_dump.o = libs/librrd_la-rrd_flushcached.o .libs/librrd_la-rrd_fetch.o = libs/librrd_la-rrd_fetch_cb.o .libs/librrd_la-rrd_resize.o = libs/librrd_la-rrd_tune.o .libs/librrd_la-rrd_list.o = libs/librrd_la-rrd_restore.o -Wl,--whole-archive ./.libs/librrdupd.a = -Wl,--no-whole-archive -L/usr/local/lib -lglib-2.0 -lintl -lm -lwrap = -lxml2 -O2 -fstack-protector-strong -pthread -O2 = -fstack-protector-strong -fstack-protector-strong -pthread -Wl,-soname = -Wl,librrd.so.8 -Wl,-version-script -Wl,.libs/librrd.so.8.3.0-ver -o = libs/librrd.so.8.3.0 > ld: error: version script assignment of 'global' to symbol 'rrd_graph' = failed: symbol not defined > ld: error: version script assignment of 'global' to symbol = 'rrd_graph_v' failed: symbol not defined > ld: error: version script assignment of 'global' to symbol 'rrd_lcd' = failed: symbol not defined > ld: error: version script assignment of 'global' to symbol = 'rrd_reduce_data' failed: symbol not defined > ld: error: version script assignment of 'global' to symbol 'rrd_xport' = failed: symbol not defined > cc: error: linker command failed with exit code 1 (use -v to see = invocation) > gmake[3]: *** [Makefile:773: librrd.la] Error 1 > gmake[3]: Leaving directory = '/wrkdirs/usr/ports/databases/rrdtool/work/rrdtool-1.8.0/src' > gmake[2]: *** [Makefile:618: all] Error 2 > gmake[2]: Leaving directory = '/wrkdirs/usr/ports/databases/rrdtool/work/rrdtool-1.8.0/src' > gmake[1]: *** [Makefile:504: all-recursive] Error 1 > gmake[1]: Leaving directory = '/wrkdirs/usr/ports/databases/rrdtool/work/rrdtool-1.8.0' > *** Error code 1 I fixed a lot of ports in the run-up to merging llvm-17 in 15-CURRENT, but I could not get them all. The preferred way is fixing the port by removing the undefined symbols from the linker version script in the port, but if that is not possible or difficult, add -Wl,--undefined-version to the linker flags suppresses the error. E.g. in the port Makefile: LDFLAGS+=3D -Wl,--undefined-version For an example, see: = https://github.com/freebsd/freebsd-ports/commit/37790b26cbda11cd4bb6f237b8= 6cd94739c4059c -Dimitry