From owner-freebsd-current@freebsd.org Fri Feb 21 20:57:54 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B7A3D242F5E for ; Fri, 21 Feb 2020 20:57:54 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48PP1G3sZxz3KX7; Fri, 21 Feb 2020 20:57:54 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 582821C97A; Fri, 21 Feb 2020 20:57:54 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f170.google.com with SMTP id d5so2307431qto.0; Fri, 21 Feb 2020 12:57:54 -0800 (PST) X-Gm-Message-State: APjAAAVvnnQ2v9Sm24QOEDxr8BFWLtt03vzKLeBAYhtLNTroCJo4Iod3 Rinv0XAxjH7CBqLzV0JQ3Nn6+HtT7gUqH1qAk1k= X-Google-Smtp-Source: APXvYqz2Mfgin33xl9+BrY/mA3JdautjcHg+N0xvhwFiJ94DLX46/mdW74IHu7mQh1dFbAzaKGd0lRYKd9w2154u5kI= X-Received: by 2002:aed:3f70:: with SMTP id q45mr33126409qtf.310.1582318673651; Fri, 21 Feb 2020 12:57:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Fri, 21 Feb 2020 14:57:41 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can't cross-compile HEAD To: Pavel Timofeev Cc: freebsd-current , Adrian Chadd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 21 Feb 2020 20:57:54 -0000 On Fri, Feb 21, 2020 at 3:27 AM Pavel Timofeev wrote: > > =D0=BF=D1=82, 10 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 22:05, Kyle Evan= s : > > > > On Fri, Jan 10, 2020 at 12:59 PM Pavel Timofeev wrot= e: > > > > > > =D0=BF=D1=82, 10 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 17:48, Kyle = Evans : > > > > > > > > On Fri, Jan 10, 2020 at 12:31 AM Pavel Timofeev = wrote: > > > > > > > > > > =D1=87=D1=82, 9 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 16:52, Pa= vel Timofeev : > > > > > > > > > > > > Hello > > > > > > > > > > > > I'm trying to cross-compile HEAD r356551 for mips on my FreeBSD= -12.1 amd64. > > > > > > I'm using mips-gcc6-6.5.0 and this > > > > > > https://github.com/freebsd/freebsd-wifi-build nice project to b= uild > > > > > > image for my tl-wdr3600 > > > > > > > > > > > > The error I'm getting is: > > > > > > ... > > > > > > =3D=3D=3D> usr.sbin/fmtree (all) > > > > > > =3D=3D=3D> usr.bin/vi (all) > > > > > > =3D=3D=3D> usr.sbin/freebsd-update (all) > > > > > > =3D=3D=3D> usr.sbin/gpioctl (all) > > > > > > =3D=3D=3D> usr.sbin/inetd (all) > > > > > > /usr/home/pavel.timofeev/mips/head/usr.sbin/inetd/inetd.c: In f= unction > > > > > > 'getconfigent': > > > > > > /usr/home/pavel.timofeev/mips/head/usr.sbin/inetd/inetd.c:1614:= 6: > > > > > > warning: variable 'v4bind' set but not used > > > > > > [-Wunused-but-set-variable] > > > > > > int v4bind; > > > > > > ^~~~~~ > > > > > > At top level: > > > > > > /usr/home/pavel.timofeev/mips/head/usr.sbin/inetd/inetd.c:33:19= : > > > > > > warning: 'copyright' defined but not used [-Wunused-const-varia= ble=3D] > > > > > > static const char copyright[] =3D > > > > > > ^~~~~~~~~ > > > > > > /usr/home/pavel.timofeev/mips/head/usr.sbin/inetd/inetd.c: In f= unction 'setup': > > > > > > /usr/home/pavel.timofeev/mips/head/usr.sbin/inetd/inetd.c:1368:= 4: > > > > > > error: 'netid' may be used uninitialized in this function > > > > > > [-Werror=3Dmaybe-uninitialized] > > > > > > rpcb_set(sep->se_rpc_prog, i, netid, &nbuf); > > > > > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > cc1: all warnings being treated as errors > > > > > > --- inetd.o --- > > > > > > *** [inetd.o] Error code 1 > > > > > > > > > > > > > > > > > > Could anybody please help fix that? > > > > > > > > > > > > > > > > > > > > Terribly sorry, I forgot to mention a very important detail. > > > > > My src.conf has the only option now. > > > > > It's WITHOUT_INET6=3D"YES" > > > > > > > > Thanks for that addition- you saved me a little bit of effort > > > > examining why it's unused. =3D-) > > > > > > > > The inetd build should be clear after r356602, but you'll need to > > > > build WITHOUT_GOOGLETEST=3Dyes for now with the gcc ports. There ar= e > > > > some fundamental issues with mips-gcc{6,9} trying to emit > > > > __floatunsidf references, but that's a hidden symbol in our libgcc. > > > > > > > > I expect to, by the end of the day, either have a fix pending or ma= rk > > > > it as a BROKEN_OPTION on mips+gcc while we hash out the details , a= s > > > > gcc{6,9} is the only option we support for building mips at the > > > > moment. > > > > > > > > Thanks, > > > > > > > > Kyle Evans > > > > > > Thanks a lot, Kyle! > > > Build process passes further! > > > Now I'm on r356606 and have these in src.conf > > > WITHOUT_GOOGLETEST=3Dyes > > > WITHOUT_INET6=3D"YES" > > > > > > Getting different error: > > > .... > > > > I'm re-running the build WITHOUT_GOOGLETEST here outside of a > > freebsd-wifi-build context, but CC'ing Adrian in case he's already > > familiar since he's been battling libarchive stuff recently. Leaving > > the context below intact in case he's not received this. > > > Hi, > Ok, seems like I found how to fix that particular libarchive/zstd > issue. It happened during bsdbox build proccess BTW. > So here is what I did: > > $ svn diff head/tools/bsdbox > Index: head/tools/bsdbox/Makefile.base > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- head/tools/bsdbox/Makefile.base (revision 358209) > +++ head/tools/bsdbox/Makefile.base (working copy) > @@ -19,7 +19,7 @@ > # CRUNCH_PROGS_usr.bin+=3D tar > CRUNCH_PROGS_usr.bin+=3D cpio > # XXX SSL ? > -CRUNCH_LIBS+=3D -larchive -lbz2 -lz -llzma -lbsdxml -lssl -lcry= pto > +CRUNCH_LIBS+=3D -larchive -lbz2 -lz -llzma -lbsdxml -lssl > -lcrypto -lprivatezstd -lthr > > # Clear requires tput, and it's a shell script so it won't be crunched > CRUNCH_PROGS_usr.bin+=3D tput > Index: head/tools/bsdbox/Makefile.depend > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- head/tools/bsdbox/Makefile.depend (revision 358209) > +++ head/tools/bsdbox/Makefile.depend (working copy) > @@ -11,6 +11,8 @@ > lib/${CSU_DIR} \ > lib/lib80211 \ > lib/libalias/libalias \ > + lib/libzstd \ > + lib/libthr \ > lib/libarchive \ > lib/libbsm \ > lib/libbz2 \ > Ahhh, this makes more sense now. > Not sure about Makefile.depend file as it says 'Autogenerated - do NOT > edit!' (would be great to extend the comment with info autogenerated > by 'what' exactly), and not sure if I pointed dependency dirs right. > We'll just drop the Makefile.depend hunk of the patch -- this is autogenerated and maintained by particular people, and shouldn't need active attention. > As far as I know Andrian is trying to get rid of libarchive entirely > in freebsd-wifi-build project, so this should not be a problem in the > future. > > But isn't it has to be fixed right now until we get a replacement? > I'd be inclined to agree. Unless Adrian objects, I think it'd be a good idea to go ahead and commit the additional linkage until he does get it hashed out. Thanks, Kyle Evans