Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2017 13:35:55 +0200
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        Manfred Antar <null@pozo.com>, FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   Re: New /head/sys/amd64/amd64/genassym.c breaks buildkernel amd64 current
Message-ID:  <9b493788-0a91-aa6b-2673-318320d8ca99@gwdg.de>
In-Reply-To: <74862f9a-ac5b-e39b-5178-f3db5623c172@FreeBSD.org>
References:  <B9277145-868A-4493-B121-378B29F99B4A@pozo.com> <74862f9a-ac5b-e39b-5178-f3db5623c172@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3D40000  COMPILER_TYPE=3D=
clang  COMPILER_FREEBSD_VERSION=3D1200006 MAKEOBJDIRPREFIX=3D/usr/obj  MA=
CHINE_ARCH=3Damd64  MACHINE=3Damd64  CPUTYPE=3D GROFF_BIN_PATH=3D/usr/obj=
/usr/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legac=
y/usr/share/groff_font  GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr=
/share/tmac CC=3D"/usr/local/bin/ccache cc -target x86_64-unknown-freebsd=
12.0 --sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin" CXX=
=3D"/usr/local/bin/ccache c++  -target x86_64-unknown-freebsd12.0 --sysro=
ot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin"  CPP=3D"cpp -ta=
rget x86_64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp -B/usr/o=
bj/usr/src/tmp/usr/bin"  AS=3D"as" AR=3D"ar" LD=3D"ld" LLVM_LINK=3D""  NM=
=3Dnm OBJCOPY=3D"objcopy"  RANLIB=3Dranlib STRINGS=3D  SIZE=3D"size"  INS=
TALL=3D"sh /usr/src/tools/install.sh"  PATH=3D/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=3Dkernel 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=3D=
/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 -pipe -fno-str=
ict-aliasing -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfd=
t -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-=
frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.genassym.o -MTg=
enassym.o -mcmodel=3Dkernel -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 -W=
missing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-poin=
ter-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiag=
nostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare =
-Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-f=
unction -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-erro=
r-address-of-packed-member -mno-aes -mno-avx -std=3Diso9
>   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 fou=
nd
>> #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 -nostdin=
c -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNE=
L_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-=
leaf-frame-pointer -MD -MF.depend.genassym.o -MTgenassym.o -mcmodel=3Dker=
nel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind=
-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredund=
ant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpoi=
nter-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D=
__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno=
-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -W=
no-error-parentheses-equality -Wno-error-unused-function -Wno-error-point=
er-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-memb=
er -mno-aes -mno-avx -std=3Diso9899:1999 /usr/src/sys/amd64/amd64/genassy=
m.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=3Dmake sh /usr/src/sys/conf/newvers.sh  pozo
>> --- vers.o ---
>> /usr/local/bin/ccache cc -c -O2 -pipe -fno-strict-aliasing  -g -nostdi=
nc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KER=
NEL_OPTION_HEADERS -include opt_global.h  -fno-omit-frame-pointer -mno-om=
it-leaf-frame-pointer  -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse =
-msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fst=
ack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict=
-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wu=
ndef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-inclu=
de-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautolo=
gical-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-=
error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-v=
alue -Wno-error-address-of-packed-member  -mno-aes -mno-avx  -std=3Diso98=
99: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=3Dkernel.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 conf=
iguration?
>
I get the same failures on 12.0-CURRENT amd64 r315794, even if build=20
with generic kernel and without make.conf and src.conf.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9b493788-0a91-aa6b-2673-318320d8ca99>