Re: amd64 -r321109 -> -r321371 buildworld update failed (spans clang 5 update); error: too few arguments provided to function-like macro invocation; , METAMODE and -j8 was used

From: Mark Millard <markmi_at_dsl-only.net>
Date: Sat, 22 Jul 2017 16:43:18 -0700
[I've added a "more" of /root/src.configs/make.conf that I
had omitted but it only adds a "CFLAGS.gcc+= -v" to the
build context. That should not matter here.]

On 2017-Jul-22, at 4:32 PM, Mark Millard <markmi_at_dsl-only.net> wrote:

> My first attempt to update amd64 to a clang 5 based /usr/src
> failed ( -r321109 -> -r321371 ). Listing just the first
> error initially:
> 
> --- ToolDrivers/llvm-lib/LibDriver.o ---
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:92: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                           ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> 
> I list the build context information before the full failure
> information. I've not tried a from scratch build yet. I'll
> start another build in a bit but it will take some time to
> get back t the same point once I start it.
> 
> Build Context:
> 
> # svnlite info /usr/src/ | grep "Re[plv]"
> Relative URL: ^/head
> Repository Root: svn://svn.freebsd.org/base
> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Revision: 321371
> Last Changed Rev: 321371
> 
> # more ~/sys_build_scripts.amd64-host/make_amd64_nodebug_clang-amd64-host.sh 
> kldload -n filemon && \
> script ~/sys_typescripts/typescript_make_amd64_nodebug_clang-amd64-host-$(date +%Y-%m-%d:%H:%M:%S) \
> env __MAKE_CONF="/root/src.configs/make.conf" SRCCONF="/dev/null" SRC_ENV_CONF="/root/src.configs/src.conf.amd64-clang.amd64-host" \
> WITH_META_MODE=yes \
> MAKEOBJDIRPREFIX="/usr/obj/amd64_clang/amd64.amd64" \
> make $*

# more /root/src.configs/make.conf
CFLAGS.gcc+= -v

> # more ~/sys_build_scripts.amd64-host/make_amd64_nodebug_clang-amd64-host.sh 
> kldload -n filemon && \
> script ~/sys_typescripts/typescript_make_amd64_nodebug_clang-amd64-host-$(date +%Y-%m-%d:%H:%M:%S) \
> env __MAKE_CONF="/root/src.configs/make.conf" SRCCONF="/dev/null" SRC_ENV_CONF="/root/src.configs/src.conf.amd64-clang.amd64-host" \
> WITH_META_MODE=yes \
> MAKEOBJDIRPREFIX="/usr/obj/amd64_clang/amd64.amd64" \
> make $*
> 
> #WITH_META_MODE=yes \
> #
> FreeBSDx64OPC# more /root/src.configs/src.conf.amd64-clang.amd64-host
> TO_TYPE=amd64
> #
> KERNCONF=GENERIC-NODBG
> TARGET=${TO_TYPE}
> .if ${.MAKE.LEVEL} == 0
> TARGET_ARCH=${TO_TYPE}
> .export TARGET_ARCH
> .endif
> #
> #WITH_CROSS_COMPILER=
> WITH_SYSTEM_COMPILER=
> #
> WITH_LIBCPLUSPLUS=
> WITH_BINUTILS_BOOTSTRAP=
> WITH_ELFTOOLCHAIN_BOOTSTRAP=
> #WITH_CLANG_BOOTSTRAP=
> WITH_CLANG=
> WITH_CLANG_IS_CC=
> WITH_CLANG_FULL=
> WITH_CLANG_EXTRAS=
> WITH_LLD=
> WITHOUT_LLD_IS_LD=
> WITH_LLVM_LIBUNWIND=
> WITH_LLDB=
> #PORTS_MODULES=emulators/virtualbox-ose-additions
> #
> WITH_BOOT=
> WITH_LIB32=
> #
> WITHOUT_GCC_BOOTSTRAP=
> WITHOUT_GCC=
> WITHOUT_GCC_IS_CC=
> WITHOUT_GNUCXX=
> #
> NO_WERROR=
> #WERROR=
> MALLOC_PRODUCTION=
> #
> WITH_REPRODUCIBLE_BUILD=
> 
> 
> Failure:
> 
> --- ToolDrivers/llvm-lib/LibDriver.o ---
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:92: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                           ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:28:98: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                                 ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:7: error: missing ',' between enumerators
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:29:94: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "ignore:", ignore, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                             ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:28:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:28:7: error: missing ',' between enumerators
> OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:31:42: error: too few arguments provided to function-like macro invocation
>       "Object file search path", nullptr)
>                                         ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:29:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "ignore:", ignore, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:29:7: error: missing ',' between enumerators
> OPTION(prefix_1, "ignore:", ignore, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:32:101: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "llvmlibthin", llvmlibthin, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                                    ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:30:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "libpath:", libpath, Joined, INVALID, INVALID, nullptr, 0, 0,
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:30:7: error: missing ',' between enumerators
> OPTION(prefix_1, "libpath:", libpath, Joined, INVALID, INVALID, nullptr, 0, 0,
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:33:96: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "machine:", machine, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                               ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:32:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "llvmlibthin", llvmlibthin, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:32:7: error: missing ',' between enumerators
> OPTION(prefix_1, "llvmlibthin", llvmlibthin, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:34:91: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "nologo", nologo, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                          ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:35:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:33:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "machine:", machine, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:33:7: error: missing ',' between enumerators
> OPTION(prefix_1, "machine:", machine, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:36:47: error: too few arguments provided to function-like macro invocation
>       "Path to file to write output", nullptr)
>                                              ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp:34:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> --- ToolDrivers/llvm-dlltool/DlltoolDriver.o ---
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:92: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                           ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> --- ToolDrivers/llvm-lib/LibDriver.o ---
> *** [ToolDrivers/llvm-lib/LibDriver.o] Error code 1
> 
> make[6]: stopped in /usr/src/lib/clang/libllvm
> .ERROR_TARGET='ToolDrivers/llvm-lib/LibDriver.o'
> .ERROR_META_FILE='/usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/_usr_obj_amd64_clang_amd64.amd64_usr_src_lib_clang_libllvm_ToolDrivers_llvm-lib_LibDriver.o.meta'
> .MAKE.LEVEL='6'
> MAKEFILE=''
> .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
> _ERROR_CMD='c++  -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp -B/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp/usr/bin  -O2 -pipe -I/usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm -I/usr/src/contrib/llvm/lib/Target/AArch64 -I/usr/src/contrib/llvm/lib/Target/ARM -I/usr/src/contrib/llvm/lib/Target/Mips -I/usr/src/contrib/llvm/lib/Target/PowerPC -I/usr/src/contrib/llvm/lib/Target/Sparc -I/usr/src/contrib/llvm/lib/Target/X86 -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=\"\" -ffunction-sections -fdata-sections -fstack-protector-strong -Qunused-arguments -I/usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/llvm-lib  -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions  -c /usr/src/contrib/llvm/li
> b/ToolDrivers/llvm-lib/LibDriver.cpp -o ToolDrivers/llvm-lib/LibDriver.o;'
> .CURDIR='/usr/src/lib/clang/libllvm'
> .MAKE='make'
> .OBJDIR='/usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm'
> .TARGETS='all'
> DESTDIR='/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp'
> LD_LIBRARY_PATH=''
> MACHINE='amd64'
> MACHINE_ARCH='amd64'
> MAKEOBJDIRPREFIX='/usr/obj/amd64_clang/amd64.amd64'
> MAKESYSPATH='/usr/src/share/mk'
> MAKE_VERSION='20170711'
> PATH='/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp/legacy/usr/sbin:/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp/legacy/usr/bin:/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp/legacy/bin:/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp/usr/sbin:/usr/obj/amd64_clang/amd64.amd64/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin'
> SRCTOP='/usr/src'
> OBJTOP='/usr/obj/amd64_clang/amd64.amd64/usr/src'
> .MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk /root/src.configs/src.conf.amd64-clang.amd64-host /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/bsd.suffixes.mk /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk /dev/null /usr/src/lib/clang/libllvm/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/llvm.pre.mk llvm/IR/Attributes.gen.d llvm/IR/Intrinsics.gen.d AttributesCompatFunc.inc.d AArch64GenAsmMatcher.inc.d AArch64GenAsmWriter.inc.d AArch64GenAsmWriter1.inc.d AArch64GenCallingConv.inc.d AArch64GenDAGISel.inc.d AArch64GenDisassemblerTables.inc.d AArch64GenFastISel.inc.d AArch64GenInstrInfo.inc.d AArch64GenMCCodeEmitter.inc.d AArch64GenMCPseudoLowering.inc.d AArch64GenRegisterInfo.inc.d AArch64GenSubtargetInfo.inc.d AArch64
> GenSystemOperands.inc.d ARMGenAsmMatcher.inc.d ARMGenAsmWriter.inc.d ARMGenCallingConv.inc.d ARMGenDAGISel.inc.d ARMGenDisassemblerTables.inc.d ARMGenFastISel.inc.d ARMGenInstrInfo.inc.d ARMGenMCCodeEmitter.inc.d ARMGenMCPseudoLowering.inc.d ARMGenRegisterInfo.inc.d ARMGenSubtargetInfo.inc.d MipsGenAsmMatcher.inc.d MipsGenAsmWriter.inc.d MipsGenCallingConv.inc.d MipsGenDAGISel.inc.d MipsGenDisassemblerTables.inc.d MipsGenFastISel.inc.d MipsGenInstrInfo.inc.d MipsGenMCCodeEmitter.inc.d MipsGenMCPseudoLowering.inc.d MipsGenRegisterInfo.inc.d MipsGenSubtargetInfo.inc.d PPCGenAsmMatcher.inc.d PPCGenAsmWriter.inc.d PPCGenCallingConv.inc.d PPCGenDAGISel.inc.d PPCGenDisassemblerTables.inc.d PPCGenFastISel.inc.d PPCGenInstrInfo.inc.d PPCGenMCCodeEmitter.inc.d PPCGenRegisterInfo.inc.d PPCGenSubtargetInfo.inc.d SparcGenAsmMatcher.inc.d SparcGenAsmWriter.inc.d SparcGenCallingConv.inc.d SparcGenDAGISel.inc.d SparcGenDisassemblerTables.inc.d SparcGenInstrInfo.inc.d SparcGenMCCodeEmitter.inc.d Sp
> arcGenRegisterInfo.inc.d SparcGenSubtargetInfo.inc.d X86GenAsmMatcher.inc.d X86GenAsmWriter.inc.d X86GenAsmWriter1.inc.d X86GenCallingConv.inc.d X86GenDAGISel.inc.d X86GenDisassemblerTables.inc.d X86GenFastISel.inc.d X86GenInstrInfo.inc.d X86GenRegisterInfo.inc.d X86GenSubtargetInfo.inc.d /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/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/libllvm /usr/src/contrib/llvm/lib'
> --- ToolDrivers/llvm-dlltool/DlltoolDriver.o ---
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:28:98: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                                 ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:7: error: missing ',' between enumerators
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:29:94: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "ignore:", ignore, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                             ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:28:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:28:7: error: missing ',' between enumerators
> OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:31:42: error: too few arguments provided to function-like macro invocation
>       "Object file search path", nullptr)
>                                         ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:29:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "ignore:", ignore, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:29:7: error: missing ',' between enumerators
> OPTION(prefix_1, "ignore:", ignore, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:32:101: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "llvmlibthin", llvmlibthin, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                                    ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:30:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "libpath:", libpath, Joined, INVALID, INVALID, nullptr, 0, 0,
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:30:7: error: missing ',' between enumerators
> OPTION(prefix_1, "libpath:", libpath, Joined, INVALID, INVALID, nullptr, 0, 0,
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:33:96: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "machine:", machine, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                               ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:32:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "llvmlibthin", llvmlibthin, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:32:7: error: missing ',' between enumerators
> OPTION(prefix_1, "llvmlibthin", llvmlibthin, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:34:91: error: too few arguments provided to function-like macro invocation
> OPTION(prefix_1, "nologo", nologo, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>                                                                                          ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> In file included from /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:36:
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:33:1: error: redefinition of enumerator 'OPTION'
> OPTION(prefix_1, "machine:", machine, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:27:1: note: previous definition is here
> OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
> ^
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:33:7: error: missing ',' between enumerators
> OPTION(prefix_1, "machine:", machine, Joined, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr)
>      ^
>      , 
> /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc:36:47: error: too few arguments provided to function-like macro invocation
>       "Path to file to write output", nullptr)
>                                              ^
> /usr/src/contrib/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp:35:9: note: macro 'OPTION' defined here
> #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
>        ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> *** [ToolDrivers/llvm-dlltool/DlltoolDriver.o] Error code 1


===
Mark Millard
markmi at dsl-only.net
Received on Sat Jul 22 2017 - 21:43:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC