NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/56456: build fails to build release with clang or x11



>Number:         56456
>Category:       port-amd64
>Synopsis:       clang and x11 (which uses clang) releases will not build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 16 08:10:00 +0000 2021
>Originator:     Greywolf <greywolf%starwolf.com@localhost>
>Release:        NetBSD 9.99.88
>Organization:
>Environment:
System: NetBSD eddie.starwolf.com 9.99.88 NetBSD 9.99.88 (EDDIE) #16: Tue Aug 31 19:14:47 PDT 2021 greywolf%eddie.starwolf.com@localhost:/sys/arch/amd64/compile/EDDIE amd64
Architecture: x86_64
Machine: amd64
-- full envariables --
BSDSRCDIR=/usr/src
DESTDIR=/build/amd64/build
TOOLDIR=/build/amd64/tools
SHELL=/bin/bash
BUILD_MACHINE=amd64
BUILD_ARCH=x86_64
oCVSROOT=:pserver:greywolf@cvs:/export/repo/cvs
[less relevant below]
LESS=PAt ?pB%pB\%:byte %bB. of ?f%f:stdin. ?e(Done):(More\.\.\.).$esqwrF
type=-d
DCOLOR_PATH=/holt/greywolf/+libdata/+dmap
SSH_AUTH_SOCK=/tmp/ssh-RI6ob6wBHv/agent.23411
IRCNICK=[Wolf]
EDITOR=jove
RELEASEDIR=/build/amd64/release
PWD=/var/named/master
IRCSERVER=irc.starwolf.com
LOGNAME=greywolf
DOMAIN=starwolf.com
MANPATH=/build/amd64/tools/man:/usr/local/man:/usr/share/man
BSDCVS=:pserver:anoncvs%anoncvs.netbsd.org@localhost:/cvsroot
x=/build/amd64
CDPATH=:..:../..:/holt/greywolf:/sys:/usr/src:/holt/greywolf/+src
LINES=83
i=2
HOME=/root
OIFS= 	

EXINIT=so /holt/greywolf/.exrc
COLUMNS=274
BASE_TERM=xterm
IRCNAME=Wraukon the Excellent
MAKEOBJDIR=/build/amd64/obj
PKG_REPO_DIR=/space/repo/pkg/amd64-x86_64/All
SSH_CONNECTION=172.21.12.13 28609 172.21.12.11 2112
RCMD_CMD=ssh
MAKEFLAGS=
TERM=xterm
OTD=/build/amd64/tools
USER=greywolf
GIT_PAGER=cat
MORE=-s
SHLVL=2
CVS_RSH=ssh
IFS= 	

JOVE_TERM=rxvt
FORMAT=%3lR %3lU user %3lS system
PS3=Pick one of 
aname=ary
PS4=+ 
BSDOBJDIR=/build/amd64/obj
MAILER=pine
XTERM_CONFDIR=/holt/greywolf/+libdata
PATH=/build/amd64/tools/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11/sbin:/usr/src/tools/bin:/root/bin:/holt/greywolf/+sbin:/root/bashmodules
BLOCKSIZE=1k
MAIL=/var/mail/greywolf
SSH_TTY=/dev/pts/0
SSLROOT=/root/SSL/admin
SVPATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11/sbin:/usr/src/tools/bin:/root/bin:/holt/greywolf/+sbin
SU_FROM=greywolf
CDROM=/dev/rcd0d
OLDPWD=/var/named

---- /etc/mk.conf ----
#
# mk.conf.
#
# updated 29 Sep 2021 greywolf%starwolf.com@localhost

.ifdef BSD_PKG_MK
# only for pkgsrc
    LOCALBASE=/usr/local
    .include "/etc/mk.conf.pkg"
.else
# for main system build
    MKDYNAMICROOT=no
# build LVM tools and libraries
    MKLVM=yes
    SLOPPY_FLIST=yes
.endif	# BSD_PKG_MK

>Description:
	build.sh command:    ./build.sh -a x86_64 -m amd64 -D /build/amd64/build -O /build/amd64/obj -R /build/amd64/release -T /build/amd64/tools -j18 -x release

	This command fails to build a release.  Also building a release
	with -c clang fails to build.  Looks like one or more files which
	are supposed to be placed into the build tree are not getting placed there.  Relevant part of the failure shown below.

	--- Error.d ---
#    create  libLLVMObject/Error.d
CC=/build/amd64/tools/bin/x86_64--netbsd-c++ /build/amd64/tools/bin/nbmkdep -f Error.d.tmp  --   -std=c++14   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config     /usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/lib/Object/Error.cpp &&  mv -f Error.d.tmp Error.d
--- FaultMapParser.d ---
#    create  libLLVMObject/FaultMapParser.d
CC=/build/amd64/tools/bin/x86_64--netbsd-c++ /build/amd64/tools/bin/nbmkdep -f FaultMapParser.d.tmp  --   -std=c++14   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config     /usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/lib/Object/FaultMapParser.cpp &&  mv -f FaultMapParser.d.tmp FaultMapParser.d
--- IRObjectFile.d ---
#    create  libLLVMObject/IRObjectFile.d
CC=/build/amd64/tools/bin/x86_64--netbsd-c++ /build/amd64/tools/bin/nbmkdep -f IRObjectFile.d.tmp  --   -std=c++14   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config     /usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/lib/Object/IRObjectFile.cpp &&  mv -f IRObjectFile.d.tmp IRObjectFile.d
--- dependall-libLLVMipo ---
--- OpenMPOpt.pico ---
/build/amd64/tools/bin/x86_64--netbsd-objcopy -x  OpenMPOpt.pico
--- dependall-libLLVMObject ---
--- IRSymtab.d ---
#    create  libLLVMObject/IRSymtab.d
CC=/build/amd64/tools/bin/x86_64--netbsd-c++ /build/amd64/tools/bin/nbmkdep -f IRSymtab.d.tmp  --   -std=c++14   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config     /usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/lib/Object/IRSymtab.cpp &&  mv -f IRSymtab.d.tmp IRSymtab.d
--- MachOObjectFile.d ---
#    create  libLLVMObject/MachOObjectFile.d
CC=/build/amd64/tools/bin/x86_64--netbsd-c++ /build/amd64/tools/bin/nbmkdep -f MachOObjectFile.d.tmp  --   -std=c++14   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config -I/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../config     /usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/lib/Object/MachOObjectFile.cpp &&  mv -f MachOObjectFile.d.tmp MachOObjectFile.d
--- dependall-libLLVMipo ---
--- StripDeadPrototypes.pico ---
/build/amd64/tools/bin/x86_64--netbsd-objcopy -x  StripDeadPrototypes.pico
--- dependall-libLLVMMC ---
--- MCCodeEmitter.pico ---
#   compile  libLLVMMC/MCCodeEmitter.pico
/build/amd64/tools/bin/x86_64--netbsd-c++ -frandom-seed=3086e98e -O2 -Werror -Wno-error=init-list-lifetime -fPIE  -std=c++14 -fno-rtti -fno-exceptions  -fno-strict-aliasing  -ffunction-sections -fdata-sections   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../config  -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../config  -c    -fPIC   /usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../dist/llvm/lib/MC/MCCodeEmitter.cpp -o MCCodeEmitter.pico
/build/amd64/tools/bin/x86_64--netbsd-objcopy -x  MCCodeEmitter.pico
--- MCCodeView.pico ---
#   compile  libLLVMMC/MCCodeView.pico
/build/amd64/tools/bin/x86_64--netbsd-c++ -frandom-seed=705011f8 -O2 -Werror -Wno-error=init-list-lifetime -fPIE  -std=c++14 -fno-rtti -fno-exceptions  -fno-strict-aliasing  -ffunction-sections -fdata-sections   --sysroot=/build/amd64/build -I. -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../dist/clang/include -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../dist/llvm/include -I/build/amd64/obj/external/apache2/llvm/include -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../config  -I/usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../config  -c    -fPIC   /usr/src/external/apache2/llvm/librt/libLLVMMC/../../lib/../dist/llvm/lib/MC/MCCodeView.cpp -o MCCodeView.pico
--- dependall-libLLVMObject ---
--- IRSymtab.d ---
/usr/src/external/apache2/llvm/librt/libLLVMObject/../../lib/../dist/llvm/lib/Object/IRSymtab.cpp:34:10: fatal error: llvm/Support/VCSRevision.h: No such file or directory
   34 | #include "llvm/Support/VCSRevision.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
nbmkdep: compile failed.
*** Failed target: IRSymtab.d
*** Failed commands:
	${_MKTARGET_CREATE}
	${MKDEPCXX} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS}  ${CXXFLAGS:M-std=*} ${CXXFLAGS:C/-([IDU])[  ]*/-\1/Wg:M-[IDU]*}  ${CPPFLAGS:N-Wp,-iremap,*} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}  ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} &&  ${MV} ${.TARGET}.tmp ${.TARGET}
*** [IRSymtab.d] Error code 1
nbmake[7]: stopped in /usr/src/external/apache2/llvm/librt/libLLVMObject
*** Failed target:  dependall-../external/apache2/llvm/librt
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="lib/"; real="/usr/src/lib" ;; *) this="lib/${dir}/"; real="/usr/src/lib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /build/amd64/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget ../external/apache2/llvm/librt dependall
*** Error code 6
Stop.
nbmake[5]: stopped in /usr/src/lib
*** Failed target: build_install
*** Failed commands:
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U1}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U1}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U11}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U11}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U111}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U1111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U1111}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U11111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U11111}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U111111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U111111}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U1111111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U1111111}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U11111111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U11111111}:C/^/install-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U111111111}:C/^/dependall-/}
	${MAKEDIRTARGET} . ${SUBDIR_GROUP.${:U111111111}:C/^/install-/}
*** [build_install] Error code 1
nbmake[4]: stopped in /usr/src/lib
1 error
nbmake[4]: stopped in /usr/src/lib
nbmake[3]: stopped in /usr/src
nbmake[2]: stopped in /usr/src

nbmake[1]: stopped in /usr/src

nbmake: stopped in /usr/src

ERROR: Failed to make release
*** BUILD ABORTED ***


>How-To-Repeat:
	Set the following variables; adjust paths as necessary.  See also the 
	environment variables set above, again adjust paths as necessary.

	MACHINE=amd64
	MACHINE_ARCH=x86_64
	MAKEOBJDIR=/build/amd64/obj
	DESTDIR=/build/amd64/build
	RELEASEDIR=/build/amd64/release
	PATH=/build/amd64/tools/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11/sbin:/usr/src/tools/bin:/root/bin
	MANPATH=/build/amd64/tools/man:/usr/local/man:/usr/share/man
	BSDSRCDIR=/usr/src
	BSDOBJDIR=/build/amd64/obj
	BUILDROOT=/build
	TOOLDIR=/build/amd64/tools
	BUILD_MACHINE=amd64
	BUILD_ARCH=x86_64

	cd to your source directory.

	Run the build.sh command:
	./build.sh -a x86_64 -m amd64 -D /build/amd64/build -O /build/amd64/obj -R /build/amd64/release -T /build/amd64/tools -j18 -x release	

	My failure shows up whether or not whichever of the MACHINE/MACHINE_ARCH or BUILD_MACHINE/BUILD_ARCH or -a or -x
	are unnecessarily set (so I have been told) or unset.

	I would *really* like to get an X11-inclusive release built.

	Apologies for the length of this PR.

>Fix:
	Unknown but I would dearly love to know.



Home | Main Index | Thread Index | Old Index