From owner-freebsd-current@freebsd.org Sat Oct 24 21:39:23 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64E2DA1D4E9 for ; Sat, 24 Oct 2015 21:39:23 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (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 36564DC5; Sat, 24 Oct 2015 21:39:23 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by padhk11 with SMTP id hk11so149253537pad.1; Sat, 24 Oct 2015 14:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UOKTNdWddSO0vj/QJL7kGy5EW5fJlK61JIIEkFDaEzs=; b=U9tLoRsHG0VcINTbliE3INc1cqlh8hSntvWUWGFl549IYeCP80LdAsuPdm4IVo3zye 4GQ6Irqb3Om6xDTBXnZ9O14oI67eZDG+296YJ0TWGP0xl5SzASZ4tyftMp2XihyCw2Q+ BISwA67E004+RqZxBPe4xFDFdIoCPKNOrlgotofzqWDmlwGVlli3K/gmwwwSusKbem9Z vo+0hq2IXljFiI/3pvTYqyV6G32I54qm75VNOTedI+AWKIfY82TTm7tykxfpcV6H140U To3qDgFdaMYwp/42q2nh9Lx/ZCx7iAO66rgAzJpwo7v40hiqGIjWISNaqOS9EA91VyB2 zmzQ== X-Received: by 10.66.90.165 with SMTP id bx5mr12926710pab.87.1445722762791; Sat, 24 Oct 2015 14:39:22 -0700 (PDT) Received: from ?IPv6:2601:601:800:126d:6c5b:a5fd:aec8:13bf? ([2601:601:800:126d:6c5b:a5fd:aec8:13bf]) by smtp.gmail.com with ESMTPSA id cn4sm25762163pbc.94.2015.10.24.14.39.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 Oct 2015 14:39:22 -0700 (PDT) Subject: Re: EFI bootloader often trys to build itself at installworld stage Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=utf-8 From: NGie Cooper X-Priority: 3 (Normal) In-Reply-To: Date: Sat, 24 Oct 2015 14:39:21 -0700 Cc: freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: <2907660F-8DB5-4655-83D6-8E215ECC25AC@gmail.com> References: <1124529854.20151025002803@serebryakov.spb.ru> To: lev@FreeBSD.org X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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, 24 Oct 2015 21:39:23 -0000 > On Oct 24, 2015, at 14:35, NGie Cooper wrote: >=20 >=20 >> On Oct 24, 2015, at 14:28, Lev Serebryakov wrote: >>=20 >> Hello freebsd-current, >>=20 >> Each other time "make installworld" from object directory created = several hours ago >> try to build efiloader again (and fails in my case as this world = doesn't >> contain compiler): >>=20 >> =3D=3D=3D> sys/boot/efi/loader (install) >> cc -O2 -pipe -fPIC -I/data/src/sys/boot/efi/loader = -I/data/src/sys/boot/efi/loader/arch/amd64 = -I/data/src/sys/boot/efi/loader/../include = -I/data/src/sys/boot/efi/loader/../include/amd64 = -I/data/src/sys/boot/efi/loader/../../../contrib/dev/acpica/include = -I/data/src/sys/boot/efi/loader/../../.. = -I/data/src/sys/boot/efi/loader/../../i386/libi386 -DNO_PCI -DEFI = -DBOOT_FORTH -I/data/src/sys/boot/efi/loader/../../ficl = -I/data/src/sys/boot/efi/loader/../../ficl/amd64 -DLOADER_DISK_SUPPORT = -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT = -I/data/src/sys/boot/efi/loader/../../common -ffreestanding -Wformat = -msoft-float -mno-mmx -mno-sse -mno-avx -fshort-wchar -mno-red-zone = -mno-aes -std=3Dgnu99 -Qunused-arguments -c = /data/src/sys/boot/efi/loader/autoload.c -o autoload.o >> /tmp/install.Ku58dvCm/sh: cc: not found >>=20 >> Only LOCAL fileystems are in use, and computer has ntpd-synchronized = clock. >>=20 >> "installworld" right after "buildworld" works Ok, but if I need to >> re-create same nanobsd image without changing world (and sources), = its often >> fails to perform "installworld" for second time at this exact point: = efi/loader. >=20 > Hi lev, > Be sure to run buildworld with -DNO_CLEAN after updating your = sources when using make installworld. Unfortunately many of the = Makefiles under sys/boot are sensitive to updates, i.e. you=E2=80=99ll = have to rebuild them (otherwise it will try to rebuild them at install = and fail as noted above). > That being said, what you described seems interesting. Not sure = why it would be failing. Could you please dump all the debug output from = make? > Thanks! > -NGie Uh=E2=80=A6 yeah. I see some non-atomic logic in = sys/boot/common/newvers.sh (it=E2=80=99s writing out to vers.c multiple = times in the file) instead of once to the file, or multiple times to a = temp file then moving to the final file. There are probably other = issues. sys/boot is a mess. I had a patch to better integrate it into the build = process, but I wasn=E2=80=99t a committer at the time, so I couldn=E2=80=99= t commit my patch (it=E2=80=99s been lost since then).=