Bug 230240 - import clang 7.0.0 (tracking PR)
Summary: import clang 7.0.0 (tracking PR)
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: tracking
Depends on: 230355 234040
Blocks: 228911 233094
  Show dependency treegraph
 
Reported: 2018-07-31 14:26 UTC by Ed Maste
Modified: 2019-05-27 14:56 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2018-07-31 14:26:39 UTC
Update to Clang/LLVM/lld 7.0.0
Comment 1 Conrad Meyer freebsd_committer 2018-07-31 16:00:46 UTC
Re: blocking 228911,

Does LLVM 7.0 even have a concrete release date?  Typical cadence for LLVM is every six months and even assuming they're on-time, that would push code slush all the way back to September.  12 is already pretty late.
Comment 2 Ed Maste freebsd_committer 2018-07-31 16:25:56 UTC
(In reply to Conrad Meyer from comment #1)

LLVM's schedule is:

2018-08-01 branch & RC1
2018-08-22 RC2
2018-09-05 final

There is a discussion ongoing with re@ and toolchain people (dim@ et al) about Clang 7.  dim is working on a clang700-import branch already.

This PR as a blocker of 228911 does not mean it will necessarily make it into 12.0 or that 12.0 will be held up for it, only that re@ and toolchain folks will track it.
Comment 3 Conrad Meyer freebsd_committer 2018-07-31 16:33:12 UTC
> This PR as a blocker of 228911 does not mean it will necessarily make it into 12.0 or that 12.0 will be held up for it, only that re@ and toolchain folks will track it.

Ok.  That makes more sense than my initial interpretation. :-)
Comment 4 Dimitry Andric freebsd_committer 2018-07-31 17:21:51 UTC
Work branch: https://svnweb.freebsd.org/base/projects/clang700-import/
Comment 5 Dimitry Andric freebsd_committer 2018-08-05 21:32:17 UTC
Most of universe builds now, but two rather trick problems remain:
1) i386's lldb now requires atomic 64 bit libcalls, so it doesn't link
2) arm's lld doesn't link due to "relocation truncated to fit"

Regarding 1), we have always had the problem that i386 didn't support atomic 64 bit operations, at least not with the default CPU (i486) that we target.  Now clang 7.0 does correctly emit some libcalls for __atomic_load_8 and friends, and this causes lldb to fail to link.  We need to either provide some sort of atomic wrappers in libc, a separate libatomic, or force lldb to be compiled with at least CPUTYPE=i586?

Regarding 2), I'm getting the following with 'make buildworld TARGET=arm':

/home/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/tmp/usr/lib/libgcc.a(floatundidf.o): In function `__floatundidf':
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/floatundidf.c:43: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dadd@@FBSDprivate_1.0' defined in .plt section in /h
ome/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/floatundidf.c:43: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dadd@@FBSDprivate_1.0' defined in .plt section in /h
ome/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/tmp/usr/lib/libgcc.a(floatdidf.o): In function `__floatdidf':
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/floatdidf.c:38: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_i2d@@FBSDprivate_1.0' defined in .plt section in /home
/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/floatdidf.c:38: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dmul@@FBSDprivate_1.0' defined in .plt section in /hom
e/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/floatdidf.c:41: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dadd@@FBSDprivate_1.0' defined in .plt section in /hom
e/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/floatdidf.c:41: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dadd@@FBSDprivate_1.0' defined in .plt section in /hom
e/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/tmp/usr/lib/libgcc.a(clear_cache.o): In function `__clear_cache':
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/clear_cache.c:113: relocation truncated to fit: R_ARM_CALL against symbol `sysarch@@FBSD_1.0' defined in .plt section in /home/dim/obj
/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/tmp/usr/lib/libgcc.a(fixunsdfdi.o): In function `__fixunsdfdi':
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/fixunsdfdi.c:22: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dcmple@@FBSDprivate_1.0' defined in .plt section in /
home/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/fixunsdfdi.c:23: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dmul@@FBSDprivate_1.0' defined in .plt section in /ho
me/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/fixunsdfdi.c:24: relocation truncated to fit: R_ARM_CALL against symbol `__aeabi_dmul@@FBSDprivate_1.0' defined in .plt section in /ho
me/dim/obj/clang700-import/home/dim/src/clang700-import/arm.arm/lib/clang/libllvm/libllvm.a(regexec.o)
/home/dim/src/clang700-import/contrib/compiler-rt/lib/builtins/fixunsdfdi.c:24: additional relocation overflows omitted from the output
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [ld.lld.full] Error code 1

I suspected that the distance between the functions is getting too large, so I tried adding -mlong-calls to lib/libcompiler-rt's Makefile, but that made things worse: clang started crashing with a message to the effect of "can't use -mlong-calls and -fPIC!".

E.g., everything in libcompiler-rt.a is still compiled with -fPIC, probably to support linking it statically into .so files and PIE executables, so it can't use -mlong-calls at all.

I have no idea how to get out of this conundrum.  Maybe attempt to add -mlong-calls to lld's Makefile?  Compile the entirety of libllvm.a with -fPIC?
Comment 6 Ed Maste freebsd_committer 2018-08-06 00:18:27 UTC
(In reply to Dimitry Andric from comment #5)
So the problem in #2 is that GNU ld on arm (v5) is unable to link lld; perhaps lld with the WIP patches to add armv5/v6 thunk support could link itself?
Comment 7 Antoine Brodin freebsd_committer 2018-08-11 17:10:36 UTC
(In reply to Ed Maste from comment #2)
Another discussion where portmgr@ is not invited.

From portmgr@ point of view, clang 7 is not ready at all (more than 10000 ports skipped).
Comment 8 commit-hook freebsd_committer 2018-08-18 12:11:30 UTC
A commit references this bug:

Author: dim
Date: Sat Aug 18 12:11:23 UTC 2018
New revision: 338014
URL: https://svnweb.freebsd.org/changeset/base/338014

Log:
  Merge llvm, clang, lld, lldb, compiler-rt and libc++ release_70 branch
  r339999, resolve conflicts, and bump version numbers.

  PR:		230240,230355

Changes:
_U  projects/clang700-import/contrib/compiler-rt/
_U  projects/clang700-import/contrib/libc++/
  projects/clang700-import/contrib/libc++/include/__config
  projects/clang700-import/contrib/libc++/include/cstdlib
  projects/clang700-import/contrib/libc++/include/ctime
  projects/clang700-import/contrib/libc++/include/new
_U  projects/clang700-import/contrib/llvm/
  projects/clang700-import/contrib/llvm/lib/Analysis/BasicAliasAnalysis.cpp
  projects/clang700-import/contrib/llvm/lib/Analysis/InstructionSimplify.cpp
  projects/clang700-import/contrib/llvm/lib/Analysis/MemorySSA.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  projects/clang700-import/contrib/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
_U  projects/clang700-import/contrib/llvm/tools/clang/
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/ASTContext.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/OpenMPClause.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/Attr.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticGroups.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Driver/Options.td
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/ASTContext.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/DeclPrinter.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/MicrosoftMangle.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/OpenMPClause.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGException.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGObjCGNU.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGObjCRuntime.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGObjCRuntime.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGOpenMPRuntime.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CodeGenFunction.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/Darwin.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Frontend/InitPreprocessor.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Serialization/ASTReaderStmt.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Serialization/ASTWriterStmt.cpp
_U  projects/clang700-import/contrib/llvm/tools/lld/
  projects/clang700-import/contrib/llvm/tools/lld/COFF/Driver.cpp
  projects/clang700-import/contrib/llvm/tools/lld/ELF/SyntheticSections.cpp
  projects/clang700-import/contrib/llvm/tools/lld/docs/ReleaseNotes.rst
_U  projects/clang700-import/contrib/llvm/tools/lldb/
  projects/clang700-import/lib/clang/include/clang/Basic/Version.inc
  projects/clang700-import/lib/clang/include/lld/Common/Version.inc
  projects/clang700-import/lib/clang/include/lldb/Host/Config.h
  projects/clang700-import/lib/clang/include/llvm/Config/config.h
  projects/clang700-import/lib/clang/include/llvm/Config/llvm-config.h
Comment 9 commit-hook freebsd_committer 2018-08-29 20:54:00 UTC
A commit references this bug:

Author: dim
Date: Wed Aug 29 20:53:30 UTC 2018
New revision: 338391
URL: https://svnweb.freebsd.org/changeset/base/338391

Log:
  Merge llvm, clang, lld, lldb, compiler-rt and libc++ release_70 branch
  r340910, resolve conflicts, and bump version numbers.

  PR:		230240, 230355

Changes:
_U  projects/clang700-import/contrib/compiler-rt/
  projects/clang700-import/contrib/compiler-rt/lib/lsan/lsan_common.cc
_U  projects/clang700-import/contrib/libc++/
  projects/clang700-import/contrib/libc++/include/__node_handle
_U  projects/clang700-import/contrib/llvm/
  projects/clang700-import/contrib/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
  projects/clang700-import/contrib/llvm/include/llvm/IR/Function.h
  projects/clang700-import/contrib/llvm/include/llvm/MC/MCExpr.h
  projects/clang700-import/contrib/llvm/include/llvm/MC/MCParser/MCAsmParserUtils.h
  projects/clang700-import/contrib/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
  projects/clang700-import/contrib/llvm/lib/CodeGen/CodeGenPrepare.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
  projects/clang700-import/contrib/llvm/lib/IR/DebugInfo.cpp
  projects/clang700-import/contrib/llvm/lib/MC/MCExpr.cpp
  projects/clang700-import/contrib/llvm/lib/MC/MCParser/AsmParser.cpp
  projects/clang700-import/contrib/llvm/lib/Support/Path.cpp
  projects/clang700-import/contrib/llvm/lib/Support/Windows/Path.inc
  projects/clang700-import/contrib/llvm/lib/Target/AArch64/AArch64SystemOperands.td
  projects/clang700-import/contrib/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
  projects/clang700-import/contrib/llvm/lib/Target/X86/MCTargetDesc/X86MCExpr.h
  projects/clang700-import/contrib/llvm/lib/Transforms/Utils/BypassSlowDivision.cpp
_U  projects/clang700-import/contrib/llvm/tools/clang/
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/Comment.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/Decl.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/DeclBase.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/DeclCXX.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/DeclObjC.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/DeclarationName.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/Expr.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/ExprCXX.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/ExprObjC.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/ExprOpenMP.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/OpenMPClause.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/RawCommentList.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/Stmt.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/StmtCXX.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/StmtObjC.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/StmtOpenMP.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Analysis/CloneDetection.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/BuiltinsX86_64.def
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Sema/DeclSpec.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/DeclObjC.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/Expr.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/ExprCXX.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/MicrosoftMangle.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/Stmt.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/StmtObjC.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Analysis/CloneDetection.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGExpr.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Headers/intrin.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaChecking.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp
_U  projects/clang700-import/contrib/llvm/tools/lld/
  projects/clang700-import/contrib/llvm/tools/lld/docs/ReleaseNotes.rst
_U  projects/clang700-import/contrib/llvm/tools/lldb/
  projects/clang700-import/lib/clang/include/clang/Basic/Version.inc
  projects/clang700-import/lib/clang/include/clang/Config/config.h
  projects/clang700-import/lib/clang/include/lld/Common/Version.inc
  projects/clang700-import/lib/clang/include/llvm/Support/DataTypes.h
  projects/clang700-import/lib/clang/include/llvm/Support/VCSRevision.h
Comment 10 commit-hook freebsd_committer 2018-09-11 18:51:05 UTC
A commit references this bug:

Author: dim
Date: Tue Sep 11 18:50:47 UTC 2018
New revision: 338597
URL: https://svnweb.freebsd.org/changeset/base/338597

Log:
  Merge llvm, clang, lld, lldb, compiler-rt and libc++ release_70 branch
  r341916, resolve conflicts, and bump version numbers.

  PR:		230240, 230355

Changes:
_U  projects/clang700-import/contrib/compiler-rt/
  projects/clang700-import/contrib/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
_U  projects/clang700-import/contrib/libc++/
  projects/clang700-import/contrib/libc++/include/memory
  projects/clang700-import/contrib/libc++/include/regex
_U  projects/clang700-import/contrib/llvm/
  projects/clang700-import/contrib/llvm/lib/MC/MCParser/AsmParser.cpp
  projects/clang700-import/contrib/llvm/lib/Support/Unix/Path.inc
  projects/clang700-import/contrib/llvm/lib/Support/Unix/Process.inc
  projects/clang700-import/contrib/llvm/lib/Target/AMDGPU/AMDGPU.h
  projects/clang700-import/contrib/llvm/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
  projects/clang700-import/contrib/llvm/lib/Target/AMDGPU/AMDGPUAliasAnalysis.h
  projects/clang700-import/contrib/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  projects/clang700-import/contrib/llvm/lib/Target/ARM/ARMFrameLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Target/ARM/ARMInstrFormats.td
  projects/clang700-import/contrib/llvm/lib/Target/ARM/ARMInstrThumb2.td
  projects/clang700-import/contrib/llvm/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h
  projects/clang700-import/contrib/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
  projects/clang700-import/contrib/llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
  projects/clang700-import/contrib/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Scalar/LoopSink.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Scalar/SROA.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Utils/CloneFunction.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
_U  projects/clang700-import/contrib/llvm/tools/clang/
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp
_U  projects/clang700-import/contrib/llvm/tools/lld/
  projects/clang700-import/contrib/llvm/tools/lld/COFF/Driver.cpp
  projects/clang700-import/contrib/llvm/tools/lld/COFF/Driver.h
  projects/clang700-import/contrib/llvm/tools/lld/docs/ReleaseNotes.rst
  projects/clang700-import/contrib/llvm/tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
_U  projects/clang700-import/contrib/llvm/tools/lldb/
  projects/clang700-import/lib/clang/include/clang/Basic/Version.inc
  projects/clang700-import/lib/clang/include/lld/Common/Version.inc
  projects/clang700-import/lib/clang/include/llvm/Support/VCSRevision.h
Comment 11 commit-hook freebsd_committer 2018-09-17 19:04:21 UTC
A commit references this bug:

Author: dim
Date: Mon Sep 17 19:04:16 UTC 2018
New revision: 338730
URL: https://svnweb.freebsd.org/changeset/base/338730

Log:
  Merge llvm, clang, lld, lldb, compiler-rt and libc++ 7.0.0 release
  r342383, and bump version numbers.

  PR:		230240, 230355

Changes:
_U  projects/clang700-import/contrib/compiler-rt/
_U  projects/clang700-import/contrib/libc++/
_U  projects/clang700-import/contrib/llvm/
_U  projects/clang700-import/contrib/llvm/tools/clang/
  projects/clang700-import/contrib/llvm/tools/clang/lib/Basic/Version.cpp
_U  projects/clang700-import/contrib/llvm/tools/lld/
  projects/clang700-import/contrib/llvm/tools/lld/docs/ReleaseNotes.rst
_U  projects/clang700-import/contrib/llvm/tools/lldb/
  projects/clang700-import/lib/clang/include/clang/Basic/Version.inc
  projects/clang700-import/lib/clang/include/lld/Common/Version.inc
  projects/clang700-import/lib/clang/include/llvm/Support/VCSRevision.h
Comment 12 commit-hook freebsd_committer 2018-11-04 15:47:27 UTC
A commit references this bug:

Author: dim
Date: Sun Nov  4 15:46:38 UTC 2018
New revision: 340125
URL: https://svnweb.freebsd.org/changeset/base/340125

Log:
  Merge llvm, clang, lld, lldb, compiler-rt and libc++ release_70 branch
  r346007 (effectively 7.0.1 rc2), resolve conflicts, and bump version
  numbers.

  PR:		230240, 230355

Changes:
  projects/clang700-import/ObsoleteFiles.inc
_U  projects/clang700-import/contrib/compiler-rt/
_U  projects/clang700-import/contrib/libc++/
_U  projects/clang700-import/contrib/llvm/
  projects/clang700-import/contrib/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h
  projects/clang700-import/contrib/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  projects/clang700-import/contrib/llvm/lib/Target/X86/X86DomainReassignment.cpp
  projects/clang700-import/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Target/X86/X86InstrInfo.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/IPO/FunctionImport.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
_U  projects/clang700-import/contrib/llvm/tools/clang/
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/Decl.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Driver/Options.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Sema/Sema.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/Basic/Version.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/Driver.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/Gnu.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaOverload.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaTemplate.cpp
_U  projects/clang700-import/contrib/llvm/tools/lld/
  projects/clang700-import/contrib/llvm/tools/lld/COFF/Chunks.h
  projects/clang700-import/contrib/llvm/tools/lld/ELF/ScriptParser.cpp
  projects/clang700-import/contrib/llvm/tools/lld/ELF/Symbols.cpp
_U  projects/clang700-import/contrib/llvm/tools/lldb/
  projects/clang700-import/contrib/llvm/tools/llvm-xray/xray-account.cpp
  projects/clang700-import/etc/mtree/BSD.debug.dist
  projects/clang700-import/etc/mtree/BSD.usr.dist
  projects/clang700-import/lib/clang/headers/Makefile
  projects/clang700-import/lib/clang/include/clang/Basic/Version.inc
  projects/clang700-import/lib/clang/include/clang/Config/config.h
  projects/clang700-import/lib/clang/include/lld/Common/Version.inc
  projects/clang700-import/lib/clang/include/llvm/Config/config.h
  projects/clang700-import/lib/clang/include/llvm/Config/llvm-config.h
  projects/clang700-import/lib/clang/include/llvm/Support/VCSRevision.h
  projects/clang700-import/lib/libclang_rt/Makefile.inc
  projects/clang700-import/tools/build/mk/OptionalObsoleteFiles.inc
Comment 13 yu shan wei 2018-11-05 04:56:08 UTC
FreeBSD www.XX.cn 13.0-CURRENT FreeBSD 13.0-CURRENT r340145 GENERIC  amd64
setenv TARGET mips
setenv TARGET_ARCH mips64el

make    buildkernel:
cc --sysroot=/root/obj/mips64el/root/src/mips.mips64el/tmp -B/root/obj/mips64el/root/src/mips.mips64el/tmp/usr/bin -c -O -pipe -g -nostdinc -I. -I/root/src/sys -I/root/src/sys/contrib/ck/include -I/root/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -MD -MF.depend.genoffset.o -MTgenoffset.o -msoft-float -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -std=iso9899:1999 /root/src/sys/kern/genoffset.c
cc: warning: argument unused during compilation: '-mno-abicalls' [-Wunused-command-line-argument]
cc: warning: argument unused during compilation: '-G 0' [-Wunused-command-line-argument]
cc: warning: argument unused during compilation: '-mabi=64' [-Wunused-command-line-argument]
error: unknown target CPU 'mips64'
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont,
      goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge,
      core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cannonlake,
      icelake-client, icelake-server, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3,
      athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3,
      bdver4, znver1, x86-64
*** Error code 1

Stop.
make[2]: stopped in /root/obj/mips64el/root/src/mips.mips64el/sys/MALTA64EL
*** Error code 1

Stop.
make[1]: stopped in /root/src
*** Error code 1

Stop.
make: stopped in /root/src
Comment 14 Dimitry Andric freebsd_committer 2018-11-05 06:27:09 UTC
(In reply to yushanwei from comment #13)
> FreeBSD www.XX.cn 13.0-CURRENT FreeBSD 13.0-CURRENT r340145 GENERIC  amd64
> setenv TARGET mips
> setenv TARGET_ARCH mips64el
> 
> make    buildkernel:
> cc --sysroot=/root/obj/mips64el/root/src/mips.mips64el/tmp
> -B/root/obj/mips64el/root/src/mips.mips64el/tmp/usr/bin -c -O -pipe -g
> -nostdinc -I. -I/root/src/sys -I/root/src/sys/contrib/ck/include
> -I/root/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
> -include opt_global.h -fno-pic -mno-abicalls -G0
> -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -MD
> -MF.depend.genoffset.o -MTgenoffset.o -msoft-float -ffreestanding -fwrapv
> -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
> -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
> -fdiagnostics-show-option -Wno-unknown-pragmas
> -Wno-error-tautological-compare -Wno-error-empty-body
> -Wno-error-parentheses-equality -Wno-error-unused-function
> -Wno-error-pointer-sign -Wno-error-shift-negative-value
> -Wno-address-of-packed-member -std=iso9899:1999
> /root/src/sys/kern/genoffset.c
> cc: warning: argument unused during compilation: '-mno-abicalls'
> [-Wunused-command-line-argument]
> cc: warning: argument unused during compilation: '-G 0'
> [-Wunused-command-line-argument]
> cc: warning: argument unused during compilation: '-mabi=64'
> [-Wunused-command-line-argument]
> error: unknown target CPU 'mips64'
> note: valid target CPU values are: nocona, core2, penryn, bonnell, atom,
> silvermont, slm, goldmont,
>       goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge,
> corei7-avx, ivybridge,
>       core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512,
> skx, cannonlake,
>       icelake-client, icelake-server, knl, knm, k8, athlon64, athlon-fx,
> opteron, k8-sse3,
>       athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2,
> bdver1, bdver2, bdver3,
>       bdver4, znver1, x86-64
> *** Error code 1
> 
> Stop.
> make[2]: stopped in /root/obj/mips64el/root/src/mips.mips64el/sys/MALTA64EL

Did you run "make buildworld", or at least "make kernel-toolchain" before this?
Comment 15 yu shan wei 2018-11-05 06:35:21 UTC
(In reply to Dimitry Andric from comment #14)
no,sorry.but I keep doing like this
Comment 16 yu shan wei 2018-11-06 00:00:36 UTC
(In reply to Dimitry Andric from comment #14)
without -DNO_CLEAN,it is OK.
Comment 17 yu shan wei 2018-11-08 03:27:55 UTC
---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-CURRENT r340242 GENERIC amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
WARNING: WITNESS option enabled, expect reduced performance.

6.0.1? right?
Comment 18 yu shan wei 2018-11-08 03:28:56 UTC
(In reply to yu shan wei from comment #17)
root@www:~ # cc -v
FreeBSD clang version 7.0.1 (branches/release_70 346007) (based on LLVM 7.0.1)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
root@www:~ # ld -v
LLD 7.0.1 (FreeBSD 346007-1300001) (compatible with GNU linkers)
Comment 19 yu shan wei 2018-11-15 03:25:34 UTC
Starting Network: vtnet0.
vtnet0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 00:a0:98:f0:55:05
        media: Ethernet 10Gbase-T <full-duplex>
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
Comment 20 commit-hook freebsd_committer 2018-12-09 11:37:15 UTC
A commit references this bug:

Author: dim
Date: Sun Dec  9 11:36:11 UTC 2018
New revision: 341763
URL: https://svnweb.freebsd.org/changeset/base/341763

Log:
  Merge llvm, clang, lld, lldb, compiler-rt and libc++ release_70 branch
  r348686 (effectively 7.0.1 rc3), resolve conflicts, and bump version
  numbers.

  PR:		230240, 230355

Changes:
_U  projects/clang700-import/contrib/compiler-rt/
_U  projects/clang700-import/contrib/libc++/
  projects/clang700-import/contrib/libc++/src/filesystem/operations.cpp
_U  projects/clang700-import/contrib/llvm/
  projects/clang700-import/contrib/llvm/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h
  projects/clang700-import/contrib/llvm/include/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h
  projects/clang700-import/contrib/llvm/include/llvm/ExecutionEngine/Orc/Core.h
  projects/clang700-import/contrib/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
  projects/clang700-import/contrib/llvm/include/llvm/MC/MCAsmBackend.h
  projects/clang700-import/contrib/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
  projects/clang700-import/contrib/llvm/include/llvm/Support/GenericDomTreeConstruction.h
  projects/clang700-import/contrib/llvm/include/llvm/Transforms/Utils/SSAUpdater.h
  projects/clang700-import/contrib/llvm/include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  projects/clang700-import/contrib/llvm/lib/Analysis/MemorySSA.cpp
  projects/clang700-import/contrib/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  projects/clang700-import/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  projects/clang700-import/contrib/llvm/lib/MC/MCExpr.cpp
  projects/clang700-import/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Target/AMDGPU/AMDGPULibFunc.cpp
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
  projects/clang700-import/contrib/llvm/lib/Target/Mips/Mips64InstrInfo.td
  projects/clang700-import/contrib/llvm/lib/Target/Mips/Mips64r6InstrInfo.td
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MipsFastISel.cpp
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MipsInstrFPU.td
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  projects/clang700-import/contrib/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
  projects/clang700-import/contrib/llvm/lib/Target/PowerPC/P9InstrResources.td
  projects/clang700-import/contrib/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  projects/clang700-import/contrib/llvm/lib/Target/PowerPC/PPCInstrVSX.td
  projects/clang700-import/contrib/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Utils/LCSSA.cpp
  projects/clang700-import/contrib/llvm/lib/Transforms/Utils/SSAUpdater.cpp
_U  projects/clang700-import/contrib/llvm/tools/clang/
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/AST/DeclBase.h
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/Attr.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/AttrDocs.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td
  projects/clang700-import/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/ASTContext.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/AST/Decl.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CodeGenFunction.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/PPC.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/Driver/ToolChains/OpenBSD.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Headers/altivec.h
  projects/clang700-import/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp
  projects/clang700-import/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
_U  projects/clang700-import/contrib/llvm/tools/lld/
_U  projects/clang700-import/contrib/llvm/tools/lldb/
  projects/clang700-import/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  projects/clang700-import/lib/clang/include/clang/Basic/Version.inc
  projects/clang700-import/lib/clang/include/lld/Common/Version.inc
  projects/clang700-import/lib/clang/include/llvm/Support/VCSRevision.h
Comment 21 commit-hook freebsd_committer 2018-12-15 14:08:52 UTC
A commit references this bug:

Author: dim
Date: Sat Dec 15 14:08:42 UTC 2018
New revision: 342123
URL: https://svnweb.freebsd.org/changeset/base/342123

Log:
  Update clang, llvm, lld, lldb, compiler-rt and libc++ version number to
  7.0.1 release r349250.  There were no functional changes since the 7.0.1
  rc3 import.

  PR:		230240, 230355
  Relnotes:	yes
  MFC after:	2 months
  X-MFC-With:	r341825

Changes:
_U  head/contrib/compiler-rt/
_U  head/contrib/libc++/
_U  head/contrib/llvm/
_U  head/contrib/llvm/tools/clang/
  head/contrib/llvm/tools/clang/lib/Basic/Version.cpp
_U  head/contrib/llvm/tools/lld/
_U  head/contrib/llvm/tools/lldb/
  head/lib/clang/include/clang/Basic/Version.inc
  head/lib/clang/include/lld/Common/Version.inc
  head/lib/clang/include/llvm/Support/VCSRevision.h
Comment 22 Ed Maste freebsd_committer 2019-05-27 14:56:39 UTC
Clang 7 and Clang 8 imported