From owner-freebsd-current@freebsd.org Mon Mar 27 12:34:56 2017 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 29BA7D20E8D for ; Mon, 27 Mar 2017 12:34:56 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E3EFFDAD; Mon, 27 Mar 2017 12:34:55 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from um-excht-a01.um.gwdg.de ([134.76.11.221] helo=email.gwdg.de) by mailer.gwdg.de with esmtp (Exim 4.80) (envelope-from ) id 1csTrH-00008n-7b; Mon, 27 Mar 2017 14:34:51 +0200 Received: from [172.20.200.47] (134.76.242.1) by email.gwdg.de (134.76.9.210) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 27 Mar 2017 14:34:50 +0200 Subject: Re: New /head/sys/amd64/amd64/genassym.c breaks buildkernel amd64 current To: Andriy Gapon References: <74862f9a-ac5b-e39b-5178-f3db5623c172@FreeBSD.org> <9b493788-0a91-aa6b-2673-318320d8ca99@gwdg.de> <41a7d9b5-f803-7297-190c-799fa59a9f51@FreeBSD.org> CC: Manfred Antar , FreeBSD Current From: Rainer Hurling Message-ID: <25df8c27-f223-91d6-eab4-60d175164f9f@gwdg.de> Date: Mon, 27 Mar 2017 15:34:50 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <41a7d9b5-f803-7297-190c-799fa59a9f51@FreeBSD.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Avast (VPS 170326-0, 26.03.2017), Outbound message X-Antivirus-Status: Clean X-Spam-Level: - X-Virus-Scanned: (clean) by clamav X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 27 Mar 2017 12:34:56 -0000 Am 27.03.2017 um 13:07 schrieb Andriy Gapon: > On 03/27/2017 14:35, Rainer Hurling wrote: >> Am 27.03.2017 um 10:31 schrieb Andriy Gapon: >>> On 03/26/2017 00:21, Manfred Antar wrote: >>>> Recent change to genassym.c breaks building a current kernel: >>>> >>>> -------------------------------------------------------------- >>>>>>> stage 3.1: building everything >>>> -------------------------------------------------------------- >>>> cd /usr/obj/usr/src/sys/pozo; COMPILER_VERSION=40000 COMPILER_TYPE=clang >>>> COMPILER_FREEBSD_VERSION=1200006 MAKEOBJDIRPREFIX=/usr/obj >>>> MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= >>>> GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin >>>> GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font >>>> GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac >>>> CC="/usr/local/bin/ccache cc -target x86_64-unknown-freebsd12.0 >>>> --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin" >>>> CXX="/usr/local/bin/ccache c++ -target x86_64-unknown-freebsd12.0 >>>> --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin" CPP="cpp >>>> -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/tmp >>>> -B/usr/obj/usr/src/tmp/usr/bin" AS="as" AR="ar" LD="ld" LLVM_LINK="" NM=nm >>>> OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" INSTALL="sh >>>> /usr/src/tools/install.sh" >>>> PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr >>>> >>> /sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin make -m >>> /usr/src/share/mk KERNEL=kernel all -DNO_MODULES_OBJ >>>> machine -> /usr/src/sys/amd64/include >>>> x86 -> /usr/src/sys/x86/include >>>> /usr/local/bin/ccache cc -target x86_64-unknown-freebsd12.0 >>>> --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 -pipe >>>> -fno-strict-aliasing -g -nostdinc -I. -I/usr/src/sys >>>> -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include >>>> opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD >>>> -MF.depend.genassym.o -MTgenassym.o -mcmodel=kernel -mno-red-zone -mno-mmx >>>> -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv >>>> -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs >>>> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -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-error-address-of-packed-member -mno-aes -mno-avx -std=iso9 >>> 899:1999 /usr/src/sys/amd64/amd64/genassym.c >>>> In file included from /usr/src/sys/amd64/amd64/genassym.c:47: >>>> /usr/src/sys/sys/bus.h:730:10: fatal error: 'device_if.h' file not found >>>> #include "device_if.h" >>>> ^~~~~~~~~~~~~ >>>> 1 error generated. >>>> *** Error code 1 >>>> >>>> Stop. >>>> make[2]: stopped in /usr/obj/usr/src/sys/pozo >>>> *** Error code 1 >>>> >>>> Stop. >>>> make[1]: stopped in /usr/src >>>> *** Error code 1 >>>> >>>> Stop. >>>> make: stopped in /usr/src >>>> >>>> >>>> cd /usr/obj/usr/src/sys/pozo ; make device_if.h >>>> awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h >>>> >>>> also bus_if.h is missing: >>>> (pozo)5023}make >>>> /usr/local/bin/ccache cc -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. >>>> -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL >>>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer >>>> -mno-omit-leaf-frame-pointer -MD -MF.depend.genassym.o -MTgenassym.o >>>> -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >>>> -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector >>>> -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >>>> -Wmissing-prototypes -Wpointer-arith -Winline -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-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 >>>> /usr/src/sys/amd64/amd64/genassym.c >>>> In file included from /usr/src/sys/amd64/amd64/genassym.c:47: >>>> /usr/src/sys/sys/bus.h:731:10: fatal error: 'bus_if.h' file not found >>>> >>>> so: >>>> make bus_if.h >>>> awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h >>>> then the build works: >>>> >>>> MAKE=make sh /usr/src/sys/conf/newvers.sh pozo >>>> --- vers.o --- >>>> /usr/local/bin/ccache cc -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. >>>> -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL >>>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer >>>> -mno-omit-leaf-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >>>> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv >>>> -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs >>>> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -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-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 >>>> vers.c >>>> ctfconvert -L VERSION -g vers.o >>>> --- kernel.full --- >>>> linking kernel.full >>>> ctfmerge -L VERSION -g -o kernel.full ... >>>> text data bss dec hex filename >>>> 8657083 805570 3350664 12813317 0xc38405 kernel.full >>>> --- kernel.debug --- >>>> objcopy --only-keep-debug kernel.full kernel.debug >>>> --- kernel --- >>>> objcopy --strip-debug --add-gnu-debuglink=kernel.debug kernel.full kernel >>>> >>>> somehow this needs to happen before genassym.c is compiled >>>> this is a kernel without any modules >>> I've got another report about this problem, but I can not reproduce it here with >>> a clean kernel build of GENERIC. >>> I am not sure what the problem is. >>> Do you have anything unusual in make.conf, src.conf or your kernel configuration? >>> >> I get the same failures on 12.0-CURRENT amd64 r315794, even if build with >> generic kernel and without make.conf and src.conf. > Looks like it could be a timing issue because of a new dependency that is not > declared in the make files. > I am going to revert the commit while I am figuring out the details. > Seems, like r315959 is the culprit. At least, until r315958, the kernel sources build for me.