From nobody Thu Mar 21 20:13:36 2024 X-Original-To: current@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 4V0xVX2wBlz5FPxQ for ; Thu, 21 Mar 2024 20:13:40 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V0xVX0clSz4PkL; Thu, 21 Mar 2024 20:13:40 +0000 (UTC) (envelope-from tuexen@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:499b:2fb4:e4d2:c5fd]) (Authenticated sender: micmac) by drew.franken.de (Postfix) with ESMTPSA id 94F62721E2806; Thu, 21 Mar 2024 21:13:36 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: Problem with make installworld From: tuexen@freebsd.org In-Reply-To: Date: Thu, 21 Mar 2024 21:13:36 +0100 Cc: current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5C76C958-3BBB-4887-96C8-84F663AC2D78@freebsd.org> References: <3DCD0639-057D-4BC9-96B7-FDD6F05E6BB5@freebsd.org> To: Dimitry Andric X-Mailer: Apple Mail (2.3774.500.171.1.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:193.174.0.0/15, country:DE] X-Rspamd-Queue-Id: 4V0xVX0clSz4PkL > On 21. Mar 2024, at 18:12, Dimitry Andric wrote: >=20 > On 21 Mar 2024, at 01:12, tuexen@freebsd.org wrote: >>=20 >>> On 21. Mar 2024, at 00:27, Dimitry Andric wrote: >>>=20 >>> On 20 Mar 2024, at 21:44, tuexen@freebsd.org wrote: >>>>=20 >>>> I'm trying to run make buildworld / make installworld on a recent = main branch >>>> (some days old). >>>>=20 >>>> The problem is related to lib/libc/tests/ssp/Makefile >>>> which contains: >>>> _libclang_rt_ubsan=3D = ${SYSROOT}${SANITIZER_LIBDIR}/libclang_rt.ubsan_standalone-${CRTARCH}.a >>>> if exists(${_libclang_rt_ubsan}) >>>> PROGS+=3D h_raw >>>> LDADD.h_raw+=3D ${SANITIZER_LDFLAGS} >>>>=20 >>>> When running make buildworld, we have >>>> ${SYSROOT} =3D = /usr/obj/usr/home/tuexen/freebsd-src/powerpc.powerpc64/tmp >>>> ${SANITIZER_LIBDIR} =3D /usr/lib/clang/17/lib/freebsd >>>> and so the script is looking for >>>> = /usr/obj/usr/home/tuexen/freebsd-src/powerpc.powerpc64/tmp/usr/lib/clang/1= 7/lib/freebsd/libclang_rt.ubsan_standalone-powerpc64.a >>>> which does not exist: >>>> tuexen@blackbird:~ % ls -l = /usr/obj/usr/home/tuexen/freebsd-src/powerpc.powerpc64/tmp/usr/lib/clang/1= 7/lib/freebsd/ >>>> total 652 >>>> -r--r--r-- 1 root wheel 284316 Mar 20 18:03 = libclang_rt.profile-powerpc.a >>>> -r--r--r-- 1 root wheel 380704 Mar 20 17:41 = libclang_rt.profile-powerpc64.a >>>>=20 >>>> Therefore, h_raw to NOT built. >>>=20 >>> As far as I can see, for powerpc64 it should have been built = somewhere during the libraries stage. So it's a bit strange that you = don't have the file. Did you use any special options to build? >> No, not any I'm aware of. I can run tests or provide further = information. >=20 > This was my mistake: I recently refactored lib/libclang_rt/Makefile to = make it more readable and maintainable, but it accidentally broke = building of most of the libclang_rt*.a files for powerpc64. It should = now be fixed by https://cgit.freebsd.org/src/commit/?id=3Df0620ceeccf0 . Hi Dimitry, I tested the main branch with your fix and I can confirm that the problem is fixed. Thank you very much for the quick fix! Best regards Michael >=20 > -Dimitry >=20