Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2017 12:52:16 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>
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>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?660AE7B2-AB5D-4D8A-9359-3D08BE6DAB7E>