From owner-freebsd-current@freebsd.org Sat Jun 23 13:41:00 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 836E010219F4 for ; Sat, 23 Jun 2018 13:41:00 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 12FD782C24 for ; Sat, 23 Jun 2018 13:41:00 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C5DFD10219F3; Sat, 23 Jun 2018 13:40:59 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DEB210219F2 for ; Sat, 23 Jun 2018 13:40:59 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EC4382C21 for ; Sat, 23 Jun 2018 13:40:59 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id 69-v6so5425543wmf.3 for ; Sat, 23 Jun 2018 06:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:reply-to:mime-version :content-transfer-encoding; bh=Kh93RH4FYl6QwelP9LH4Ivt1erBK4Q7BDZ65H+HHckE=; b=NAkZm0ejw9f4GaXYVUVqUK97k6WfbWbWMHZemL5pm58mhU6vOiKdzFRwCWLYD+xNWx xTtrPro3VvNr3berwyQ4iw5nXt/wUj0OZtRwjBlZguN2TqZY84l0IhOoAK2kOH5cX8G1 ca2M2ZVmb/r9px8xibl5sdDZVVLfQnbZlLZ1WJxFucgYfJZxR7dDhSRTLViMVtu7a0th a/O2UFHZANfZZWbMp+0HOVQfJkvndtr4EpJHS6FtiuV8nz8S5SvS/wNO/hMuuB362Woy tEReBI/S5Be3diWLRIbCpShIq6S188t614fJH8XFT8G/4P6KMDgyCFuJ/aE2YzoKDtUh 6ZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :mime-version:content-transfer-encoding; bh=Kh93RH4FYl6QwelP9LH4Ivt1erBK4Q7BDZ65H+HHckE=; b=iTNFr8jzotWvJfPFFwJVMQnR23lBM8pgaj/qDFET2k272As4PnEjXbBW2v98hS5vNR lriVjtsOuw3vrDY3J8iDu7k0e9LkHPJFy9Dz/KouTxmwUg81rmtVanC7B2CCJIP8dq+j aogfbE7HXBYdAN7lY28mCDRTX628x50yDrkls/+cbYp1duiL7g6L3ilEs5enlTNEn0Fw 1cUHLYgdBRhaMK5edhjW8q+9GvRVFCzezRA53uZQ5Np3QqG6GfqdqbAndCrYmgwiRMbo EtRrwjQoqnAls6r2u2ngoETHOFcqfhVpYg/GzW42MZPsCyElXW4m8RRzIzNpqkOm3eHf GufA== X-Gm-Message-State: APt69E1AzLpdvOAaV/v3W1DJ0OdTmK8xDuLUn6oOAjwSdyJWTAU+E6oT aCWbqvspUsF7waxRwOUDFJxMeg== X-Google-Smtp-Source: ADUXVKLZMgU9Te+5t+sUFaLgeTjdf6s8etV0cYPg0UIQpFxBYZuLuXy39+YLqmV89NnRQ68ovdaa9w== X-Received: by 2002:a1c:c44c:: with SMTP id u73-v6mr4162408wmf.99.1529761257874; Sat, 23 Jun 2018 06:40:57 -0700 (PDT) Received: from ernst.home (p5B02381D.dip0.t-ipconnect.de. [91.2.56.29]) by smtp.gmail.com with ESMTPSA id h18-v6sm12900134wrq.36.2018.06.23.06.40.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Jun 2018 06:40:56 -0700 (PDT) Date: Sat, 23 Jun 2018 15:40:48 +0200 From: Gary Jennejohn To: current@freebsd.org Subject: error building clang in HEAD Message-ID: <20180623154048.1b228df0@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2018 13:41:00 -0000 There is a strange error building clang with this use case: cd /usr/src make -j10 makeworld which produces this error output: ===> lib/clang/libclang (all) error: unable to rename temporary 'Sema/SemaTemplate-12ad7e30.o.tmp' to output file 'Sema/SemaTemplate.o': 'No such file or directory' 1 error generated. --- Sema/SemaTemplate.o --- *** [Sema/SemaTemplate.o] Error code 1 make[6]: stopped in /usr/src/lib/clang/libclang .ERROR_TARGET='Sema/SemaTemplate.o' .ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/Sema_SemaTemplate.o.meta' .MAKE.LEVEL='6' MAKEFILE='' .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes' _ERROR_CMD='c++ -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -DNO_MALLOC_EXTRAS -I/usr/obj/usr/src/amd64.amd64/lib/clang/libclang -I/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm -I/usr/src/contrib/llvm/tools/clang/lib/Basic -I/usr/src/contrib/llvm/tools/clang/lib/Driver -I/usr/src/contrib/llvm/tools/clang/include -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_STATIC_ANALYZER -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DDEFAULT_SYSROOT=\"\" -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86Tar getInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -Qunused-arguments -DNO_MALLOC_EXTRAS -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/contrib/llvm/tools/clang/lib/Sema/SemaTemplate.cpp -o Sema/SemaTemplate.o;' .CURDIR='/usr/src/lib/clang/libclang' .MAKE='make' .OBJDIR='/usr/obj/usr/src/amd64.amd64/lib/clang/libclang' .TARGETS='all' DESTDIR='/usr/obj/usr/src/amd64.amd64/tmp' LD_LIBRARY_PATH='' MACHINE='amd64' MACHINE_ARCH='amd64' MAKEOBJDIRPREFIX='' MAKESYSPATH='/usr/src/share/mk' MAKE_VERSION='20180512' PATH='/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin' SRCTOP='/usr/src' OBJTOP='/usr/obj/usr/src/amd64.amd64' .MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk /etc/src-env.conf /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk /etc/make.conf /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk /etc/src.conf /usr/src/lib/clang/libclang/Makefile /usr/src/share/mk/src.opts.mk /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk /usr/src/lib/clang/clang.pre.mk /usr/src/lib/clang/llvm.pre.mk /usr/src/lib/clang/clang.build.mk /usr/src/lib/clang/llvm.build.mk /usr/src/share/mk/bsd.lib.mk /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk /usr/src/lib/clang/libclang/../Makefile.inc /usr/src/share/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/bsd.symver.mk /usr/src/share/mk/bsd.nls.mk /usr/src /share/mk/bsd.files.mk /usr/src/share/mk/bsd.incs.mk /usr/src/share/mk/bsd.confs.mk /usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.sys.mk' .PATH='. /usr/src/lib/clang/libclang /usr/src/contrib/llvm/tools/clang/lib' 1 error However, if I do this cd /usr/src/lib/clang/libclang make -j10 depend all it succeeds. I have META_MODE enabled. It also succeeds with a simple make buildworld, but that's extremely slow. Note that this started happening after rm -rf /usr/obj/usr. -- Gary Jennejohn