From owner-freebsd-arm@freebsd.org Wed Apr 12 18:57:41 2017 Return-Path: Delivered-To: freebsd-arm@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 A6463D3BD1E for ; Wed, 12 Apr 2017 18:57:41 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71466EB3 for ; Wed, 12 Apr 2017 18:57:41 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cyNSU-0002sq-Tt for freebsd-arm@freebsd.org; Wed, 12 Apr 2017 20:57:39 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: newfs_nandfs compile error 11-STABLE References: <87a7b063-f464-192f-8df4-a9cb1a3adeb4@bsd.com.br> Date: Wed, 12 Apr 2017 20:57:38 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: acce7ce4444675d86ac1a19c5a5a969d X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 18:57:41 -0000 On Wed, 12 Apr 2017 20:37:22 +0200, Warner Losh wrote: > Try building WITHOUT_NAND rather than WITH_NAND. nandfs is super > broken wrt to VFS locking and is data corruption waiting to happen. > I understand that that helps. Does that still build nandtool? I use that= = to erase the nand memory before I dd a new kernel on it. NB: I stopped using nandfs a while ago, because it doesn't work reliable= = indeed. Ronald. > Warner > > On Wed, Apr 12, 2017 at 12:31 PM, Otac=C3=ADlio = > wrote: >> Em 12/04/2017 15:25, Ronald Klop escreveu: >>> >>> On Wed, 05 Apr 2017 12:46:01 +0200, Ronald Klop >>> 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 preve= nt >>>> recompiling llvm for 12 hours. >>>> >>>> --- newfs_nandfs.o --- >>>> cc -O -pipe -g -MD -MF.depend.newfs_nandfs.o -MTnewfs_nandfs.o >>>> -std=3Dgnu99 -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. >>> >>> =3D=3D=3D> 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=3Dgnu99 -W >>> system-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-paramete= r >>> -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 resu= lt = >>> 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.). >> >> []'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= " > _______________________________________________ > 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"=