From owner-freebsd-toolchain@freebsd.org Tue Aug 29 19:59:00 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DD59DE43CB for ; Tue, 29 Aug 2017 19:59:00 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-93.reflexion.net [208.70.210.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2E166F15E for ; Tue, 29 Aug 2017 19:58:59 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 26847 invoked from network); 29 Aug 2017 19:52:18 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 29 Aug 2017 19:52:18 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.2) with SMTP; Tue, 29 Aug 2017 15:52:18 -0400 (EDT) Received: (qmail 9496 invoked from network); 29 Aug 2017 19:52:18 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Aug 2017 19:52:18 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 9B23CEC936E; Tue, 29 Aug 2017 12:52:17 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: stable/11 -r322591 using WITH_LLD_IS_LD= : delete-old removes . . ./usr/bin/ld Message-Id: <660AE7B2-AB5D-4D8A-9359-3D08BE6DAB7E@dsl-only.net> Date: Tue, 29 Aug 2017 12:52:16 -0700 To: FreeBSD Toolchain , freebsd-arm X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2017 19:59:00 -0000 In some build experiments for amd64 -> aarch64 cross builds/local-file-system-installs for stable/11 -r322591 with WITH_LLD_IS_LD=3D I got examples of delete-old delete-old-libs deleting the path to ld after a from-scratch build: >>> Removing old files (only deletes safe to delete libs) = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/share/man= /man4/hv_vss.4.gz /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/ld >>> Old files removed >>> Removing old directories = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/lib/debug= /usr/lib/private >>> Old directories removed To remove old libraries run 'make delete-old-libs'. >>> Removing old libraries Please be sure no application still uses those libraries, else you can not start such an application. Consult UPDATING for more information regarding how to cope with the removal/revision bump of a specific library. >>> Old libraries removed # ls -lT = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/*ld* -r-xr-xr-x 1 root wheel 200056 Aug 29 11:40:10 2017 = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/colld= ef -r-xr-xr-x 1 root wheel 199968 Aug 29 11:40:12 2017 = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/fold -r-xr-xr-x 1 root wheel 25171560 Aug 29 11:40:16 2017 = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/ld.ll= d -r-xr-xr-x 1 root wheel 199760 Aug 29 11:40:13 2017 = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/ldd -r-xr-xr-x 1 root wheel 40441008 Aug 29 11:40:16 2017 = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/lldb -r-xr-xr-x 1 root wheel 7802624 Aug 29 11:40:15 2017 = /usr/obj/DESTDIRs/clang-cortexA53-installworld-dist-from-src/usr/bin/llvm-= rtdyld So no hard or symbolic link pointing to ld.lld . Context details: # svnlite info /usr/src/ | grep "Re[plv]" Relative URL: ^/stable/11 Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 322591 Last Changed Rev: 322591 # more ~/src.configs/src.conf.cortexA53-clang-bootstrap.amd64-host TO_TYPE=3Daarch64 TOOLS_TO_TYPE=3D${TO_TYPE} # KERNCONF=3DGENERIC-NODBG TARGET=3Darm64 .if ${.MAKE.LEVEL} =3D=3D 0 TARGET_ARCH=3D${TO_TYPE} .export TARGET_ARCH .endif # WITH_CROSS_COMPILER=3D WITHOUT_SYSTEM_COMPILER=3D # WITH_LIBCPLUSPLUS=3D WITHOUT_BINUTILS_BOOTSTRAP=3D WITH_ELFTOOLCHAIN_BOOTSTRAP=3D WITH_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D WITH_CLANG_FULL=3D WITH_CLANG_EXTRAS=3D WITH_LLD_BOOTSTRAP=3D WITH_LLD=3D WITH_LLD_IS_LD=3D WITH_LLDB=3D # WITH_BOOT=3D WITHOUT_LIB32=3D # WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GCC_IS_CC=3D WITHOUT_GNUCXX=3D # NO_WERROR=3D #WERROR=3D MALLOC_PRODUCTION=3D # WITH_REPRODUCIBLE_BUILD=3D WITH_DEBUG_FILES=3D # #CROSS_BINUTILS_PREFIX=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ XCFLAGS+=3D -mcpu=3Dcortex-a53 XCXXFLAGS+=3D -mcpu=3Dcortex-a53 # There is no XCPPFLAGS but XCPP gets XCFLAGS content. # more /usr/src/sys/arm64/conf/GENERIC-NODBG=20 # # GENERIC -- Custom configuration for the arm64/aarch64 # include "GENERIC" ident GENERIC-NODBG makeoptions DEBUG=3D-g # Build kernel with gdb(1) = debug symbols options ALT_BREAK_TO_DEBUGGER options KDB # Enable kernel debugger support # For minimum debugger support (stable branch) use: #options KDB_TRACE # Print a stack trace for a = panic options DDB # Enable the kernel debugger # Extra stuff: #options VERBOSE_SYSINIT # Enable verbose sysinit = messages #options BOOTVERBOSE=3D1 #options BOOTHOWTO=3DRB_VERBOSE #options KTR #options KTR_MASK=3DKTR_TRAP ##options KTR_CPUMASK=3D0xF #options KTR_VERBOSE # Disable any extra checking for. . . nooptions DEADLKRES # Enable the deadlock resolver nooptions INVARIANTS # Enable calls of extra sanity = checking nooptions INVARIANT_SUPPORT # Extra sanity checks of = internal structures, required by INVARIANTS nooptions WITNESS # Enable checks to detect = deadlocks and cycles nooptions WITNESS_SKIPSPIN # Don't run witness on spinlocks = for speed nooptions DIAGNOSTIC nooptions MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones nooptions BUF_TRACKING =3D=3D=3D Mark Millard markmi at dsl-only.net