Re: kernel compile broken in latest HEAD

看板FB_current作者時間12年前 (2013/07/10 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/9 (看更多)
On 09.07.13 22:33, Alexander Leidinger wrote: > On Tue, 9 Jul 2013 17:32:33 +0200 > Gary Jennejohn <gljennjohn@googlemail.com> wrote: > >> I just saw this breakage while compiling a kernel on HEAD updated >> minutes ago: So did I. > Is your cc a gcc or clang? My one is clang and I didn't get build > errors when I tested the commit. I was told there are those errors with > gcc. My question in the corresponding thread is so far unanswered. My cc is gcc, stock. > Here's what I wrote as a reference: > ---snip--- > Does someone know what this is supposed to result in? > > I would assume as the unions are unnamed and no variable is declared > inside the struct with it, that the size of the struct is the same as > not having those unions inside the structs. > > If this is correct I would assume the correct fix would be to #if-0 > them out. > ---snip--- I did so and my kernelbuild is happy now. Yes, I do not use this header at all. >> These line numbers all point at nameless unions. >> >> Seems to me that a union needs a name, otherwise one cannot >> access its contents. >> >> I simply named them all x to get the kernel to compile, which >> succeeded. > > Did you name it x ("union x {...};"), or did you declare a variable > x with it ("union {...} x;")? _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1Ht85IMp (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1Ht85IMp (FB_current)