Date: Fri, 3 Nov 2017 12:42:37 -0700 From: Mark Millard <markmi@dsl-only.net> To: Bryan Drewery <bdrewery@FreeBSD.org> Cc: freebsd-hackers <freebsd-hackers@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: Example of Bryan Drewery's "Something is very wrong" (from his disabling head/Makefile)?: obj-cross-tools path referenced but file is under obj-bootstrap-tools Message-ID: <25840EFC-69DD-4A2A-B89A-0D6D51C9BA14@dsl-only.net> In-Reply-To: <12bff2b7-655d-b236-5f96-d405870e53d0@FreeBSD.org> References: <40F1D1F0-A67D-4BF9-9936-EF07A9E01912@dsl-only.net> <b770de86-325e-89a4-5841-bb66b7216329@FreeBSD.org> <A75C90ED-3727-4A01-9110-EFBA673C25E3@dsl-only.net> <83ae760f-7bd5-811c-f32e-9d8f03074b49@FreeBSD.org> <20E6AE67-83F8-40D5-A4DA-01C02FA0A02B@dsl-only.net> <6E2B2A5E-A52E-4027-B73B-C6E78D9C0EED@dsl-only.net> <8D698E5D-C986-4FBA-BD56-6BA4E7D7F519@dsl-only.net> <12bff2b7-655d-b236-5f96-d405870e53d0@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-Nov-3, at 11:31 AM, Bryan Drewery <bdrewery@FreeBSD.org> wrote: > On 11/3/17 1:52 AM, Mark Millard wrote: >> I did get another problem after buildworld, buildkernel, = installkernel >> without future source code dates: the installworld got a "cc not = found" >> for the amd64 native build based on -r325351 --that also appears to = be >> set up to report: >>=20 >> ERROR-tried-to-rebuild-during-make-install >>=20 >> if cc had been found: >>=20 >> .if defined(SRCTOP) >> # Prevent rebuilding during install to support read-only objdirs. >> .if ${.TARGETS:M*install*} =3D=3D ${.TARGETS} && = empty(.MAKE.MODE:Mmeta) >> CFLAGS+=3D ERROR-tried-to-rebuild-during-make-install >> .endif=20 >> .endif=20 >>=20 >=20 > This one usually only happens if it is trying to compile at = installtime, > which usually means a file is missing (wrong OBJDIR perhaps) or the > timestamps are off. >=20 > I'll play with this more and see what I can come up with, but I didn't > run into anything like this myself yet. I locally forced a -dm on the ${MAKE} command involved and the result reported: Examining beforeinstall...non-existent....PHONY node...out-of-date. recheck(beforeinstall): update time from 16:00:00 Dec 31, 1969 to now Examining machine...modified 20:13:03 Nov 03, 2017...up-to-date. Examining x86...modified 20:13:07 Nov 03, 2017...up-to-date. Examining autoload.c...modified 2:27:17 Nov 03, 2016...up-to-date. Examining autoload.o...modified 0:10:12 Nov 03, 2017...modified before = source x86...out-of-date. cc -target x86_64-unknown-freebsd12.0 = --sysroot=3D/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp = -B/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/bin -O2 = -pipe -ffreestanding -Wformat -mno-mmx -mno-sse -mno-avx -msoft-float = -fshort-wchar -mno-red-zone -mno-aes -DLOADER_UFS_SUPPORT = -DLOADER_DISK_SUPPORT -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT = -DLOADER_GELI_SUPPORT -I/usr/src/sys/boot/libsa -I/usr/src/sys/boot/zfs = -DEFI_ZFS_BOOT -fPIC -DTERM_EMU -I/usr/src/sys/boot/efi/loader = -I/usr/src/sys/boot/efi/loader/arch/amd64 = -I/usr/src/sys/boot/efi/include -I/usr/src/sys/boot/efi/include/amd64 = -I/usr/src/sys/contrib/dev/acpica/include -I/usr/src/sys = -I/usr/src/sys/boot/i386/libi386 -DNO_PCI -DEFI -DSMBIOS_SERIAL_NUMBERS = -I/usr/src/sys/boot/common -fPIC -I/usr/src/sys/boot/ficl = -I/usr/src/sys/boot/ficl/amd64 -I/usr/src/sys/boot/common -DBOOT_FORTH = -DBF_DICTSIZE=3D15000 -g -std=3Dgnu99 -Wsystem-headers -Wall = -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized = -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value = -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion = -Wno-unused-local-typedef -Wno-address-of-packed-member = -Qunused-arguments ERROR-tried-to-rebuild-during-make-install -c = /usr/src/sys/boot/efi/loader/autoload.c -o autoload.o /tmp/install.intsn5IS/sh: cc: not found *** Error code 127 So far I've not found anything with matching times for: Examining machine...modified 20:13:03 Nov 03, 2017...up-to-date. Examining x86...modified 20:13:07 Nov 03, 2017...up-to-date. But the reason for rebuild is listed as: modified before source x86...out-of-date. I'll keep looking. The odd time (future) is in the ball park of others from when the virtual machine apparently had a bad time setting. I'm not sure if the x86 is a file vs. a directory here. A directory would seem a bit strange for forcing a rebuild. (Similarly for machine.) =3D=3D=3D Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25840EFC-69DD-4A2A-B89A-0D6D51C9BA14>