Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2024 15:18:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261215] objcopy fails to work on itself which make buildworld with NO_CLEAN fail
Message-ID:  <bug-261215-227-7wzsifiylO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261215-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261215-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261215

Andriy Gapon <avg@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open

--- Comment #2 from Andriy Gapon <avg@FreeBSD.org> ---
I can confirm that the problem is real and the two options from comment #1
along with WITH_DEBUG_FILES are enough to reproduce it.

The problem happens because of
STRICTTMPPATH=3D  ${XPATH}:${BPATH}:${UNIVERSE_TOOLCHAIN_PATH}
in Makefile.inc1 when UNIVERSE_TOOLCHAIN_PATH is not set.

In that case TMPPATH ends up having "::" in the middle.
The empty component in PATH means current directory.
So, when objcopy is being built and objcopy executable already exists in the
build directory, the build uses that executable to create the same file from
objcopy.full.
That leads to the error.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261215-227-7wzsifiylO>