Date: Wed, 12 Apr 2017 20:51:45 +0200 From: "Ronald Klop" <ronald-lists@klop.ws> To: freebsd-arm@freebsd.org Subject: Re: newfs_nandfs compile error 11-STABLE Message-ID: <op.yylioj0ckndu52@53556c9c.cm-6-6b.dynamic.ziggo.nl> In-Reply-To: <87a7b063-f464-192f-8df4-a9cb1a3adeb4@bsd.com.br> References: <op.yx7xi01ykndu52@53556c9c.cm-6-6b.dynamic.ziggo.nl> <op.yylhgvpskndu52@53556c9c.cm-6-6b.dynamic.ziggo.nl> <87a7b063-f464-192f-8df4-a9cb1a3adeb4@bsd.com.br>
index | next in thread | previous in thread | raw e-mail
On Wed, 12 Apr 2017 20:31:52 +0200, OtacĂlio <otacilio.neto@bsd.com.br> wrote: > Em 12/04/2017 15:25, Ronald Klop escreveu: >> On Wed, 05 Apr 2017 12:46:01 +0200, Ronald Klop <ronald-lists@klop.ws> >> wrote: >> >>> Hi, >>> >>> I'm building 11-STABLE for SHEEVAPLUG on a 12-CURRENT/amd64. >>> I get this compile error. >>> How can I resolve this without a clean build? I would like to prevent >>> recompiling llvm for 12 hours. >>> >>> --- newfs_nandfs.o --- >>> cc -O -pipe -g -MD -MF.depend.newfs_nandfs.o -MTnewfs_nandfs.o >>> -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W >>> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes >>> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch >>> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline >>> -Wnested-externs -Wredundant-decls -Wold-style-definition >>> -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety >>> -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable >>> -Qunused-arguments -c /usr/src-arm/sbin/newfs_nandfs/newfs_nandfs.c >>> -o newfs_nandfs.o >>> /usr/src-arm/sbin/newfs_nandfs/newfs_nandfs.c:543:11: error: taking >>> address of packed member 'f_uuid' of class or structure >>> 'nandfs_fsdata' may result in an unaligned pointer value >>> [-Werror,-Waddress-of-packed-member] >>> uuidgen(&fsdata.f_uuid, 1); >>> ^~~~~~~~~~~~~ >>> 1 error generated. >>> *** [newfs_nandfs.o] Error code 1 >>> >>> make[4]: stopped in /usr/src-arm/sbin/newfs_nandfs >>> 1 error >>> >>> make[4]: stopped in /usr/src-arm/sbin/newfs_nandfs >>> *** [all_subdir_sbin/newfs_nandfs] Error code 2 >>> >>> >>> Do I have to clean and rebuild some specific library? >>> Or something else? >>> >>> Regards, >>> Ronald. >> >> I cleaned, did rm -r /usr/obj-arm/*, waited for half a day compiling >> llvm and got the same error. >> This is while compiling 11-STABLE/arm on 12-CURRENT/amd64. >> >> ===> sbin/newfs_nandfs (all) >> echo newfs_nandfs.full: >> /usr/obj-arm/arm.arm/usr/src-arm/tmp/usr/lib/libc.a /usr >> /obj-arm/arm.arm/usr/src-arm/tmp/usr/lib/libgeom.a >> .depend >> cc -O -pipe -g -MD -MF.depend.newfs_nandfs.o -MTnewfs_nandfs.o >> -std=gnu99 -W >> system-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter >> -Wstrict-p >> rototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type >> -Wcast-qual -Wwrite >> -strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Wi >> nline -Wnested-externs -Wredundant-decls -Wold-style-definition >> -Wno-pointer-sig >> n -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body >> -Wno-string-pl >> us-int -Wno-unused-const-variable -Qunused-arguments -c >> /usr/src-arm/sbin/newf >> s_nandfs/newfs_nandfs.c -o newfs_nandfs.o >> /usr/src-arm/sbin/newfs_nandfs/newfs_nandfs.c:543:11: error: taking >> address of p >> acked member 'f_uuid' of class or structure 'nandfs_fsdata' may result >> in an una >> ligned pointer value [-Werror,-Waddress-of-packed-member] >> uuidgen(&fsdata.f_uuid, 1); >> ^~~~~~~~~~~~~ >> 1 error generated. >> *** Error code 1 >> >> >> Any ideas? >> >> Ronald. > > What is the revision of HEAD that you are using? I did a full > buildworld/buildkernel using a beaglebone black with HEAD revision > 316378 (It took 3,5 days to finish.). > This is the host OS (amd64) which I'm building on. FreeBSD 12.0-CURRENT #33 r316684M: Mon Apr 10 23:08:07 CEST 2017 > []'s > -Otacilio > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.yylioj0ckndu52>
