On 2017-Jul-22, at 5:09 PM, Dimitry Andric <dim at FreeBSD.org> wrote: > On 23 Jul 2017, at 02:02, Mark Millard <markmi at dsl-only.net> wrote: >> >> On 2017-Jul-22, at 4:50 PM, Dimitry Andric <dim_at_FreeBSD.org> wrote: >>> On 23 Jul 2017, at 01:32, 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, >>>> ^ >>> >>> Yeah, I think this can happen with an incremental build, and if you >>> enable MK_CLANG_EXTRAS. There was only one Options.inc file first, in >>> $WORLDTMP/usr/src/lib/clang/libllvm, but now there are two different >>> ones, under $WORLDTMP/usr/src/lib/clang/libllvm/llvm-lib and >>> $WORLDTMP/usr/src/lib/clang/libllvm/llvm-dlltool. This is a rather >>> unfortunate change from upstream. >>> >>> I'm unsure what to do here, maybe it is a good idea to explicitly rm >>> the incorrect file before make starts to search the directory. Bryan, >>> any clues? IIRC there were some other precedents where stale objects >>> could get in the way, and would have to be force-deleted before even >>> the depend stage? >> >> I've done: >> >> # mv /usr/obj/amd64_clang /usr/obj/amd64_clang_r321109_r321371 >> >> before starting a rebuild --in to preserve my >> failed-build context in case that record of >> the result of the attempt can help. > > What you could try with the old objdir is: > > rm /usr/obj/amd64_clang/amd64.amd64/usr/src/lib/clang/libllvm/Options.inc > > then doing another incremental build. I think that will work. Comparing the Options.inc list from a failed cross build update to -r321371 to one that has been rebuilt: Note rebuilt yet (I deliberately did not clean out any old Options.inc files first): # find /usr/obj/cortexA53_clang/ -name Options.inc -print | sort /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/lib/clang/libclang/clang/Driver/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/lib/clang/libllvm/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/tmp/usr/src/lib/clang/libclang/clang/Driver/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/tmp/usr/src/lib/clang/libllvm/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/tmp/usr/src/lib/clang/libllvm/llvm-dlltool/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/tmp/usr/src/lib/clang/libllvm/llvm-lib/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/tmp/usr/src/usr.bin/clang/lld/ELF/Options.inc /usr/obj/cortexA53_clang/arm64.aarch64/usr/src/usr.bin/clang/lld/ELF/Options.inc vs. rebuilt (with first cleaning out sufficient Options.inc files): # find /usr/obj/powerpc64vtsc_clang_altbinutils/ -name Options.inc -print | sort /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib/clang/libclang/clang/Driver/Options.inc /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib/clang/libllvm/llvm-dlltool/Options.inc /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib/clang/libllvm/llvm-lib/Options.inc /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/src/lib/clang/libclang/clang/Driver/Options.inc /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/src/lib/clang/libllvm/llvm-dlltool/Options.inc /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/src/lib/clang/libllvm/llvm-lib/Options.inc /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/usr.bin/clang/lld/ELF/Options.inc It looks like all the following are "old only": . . ./usr/src/lib/clang/libllvm/Options.inc . . ./usr/src/tmp/usr/src/lib/clang/libllvm/Options.inc . . ./usr/src/tmp/usr/src/usr.bin/clang/lld/ELF/Options.inc And comparing the rebuilt to something that has not had an attempted update to a clang 5 version at all: # find /usr/obj/armv7_clang/ -name Options.inc -print | sort /usr/obj/armv7_clang/arm.armv6/usr/src/lib/clang/libclang/clang/Driver/Options.inc /usr/obj/armv7_clang/arm.armv6/usr/src/lib/clang/libllvm/Options.inc /usr/obj/armv7_clang/arm.armv6/usr/src/tmp/usr/src/lib/clang/libclang/clang/Driver/Options.inc /usr/obj/armv7_clang/arm.armv6/usr/src/tmp/usr/src/lib/clang/libllvm/Options.inc /usr/obj/armv7_clang/arm.armv6/usr/src/usr.bin/clang/lld/ELF/Options.inc It looks like all the following are "old only": . . ./usr/src/lib/clang/libllvm/Options.inc . . ./usr/src/tmp/usr/src/lib/clang/libllvm/Options.inc === Mark Millard markmi at dsl-only.netReceived on Sun Jul 23 2017 - 22:27:39 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC