From owner-freebsd-current@freebsd.org Fri Jan 10 14:48:27 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 E78DB1E9910 for ; Fri, 10 Jan 2020 14:48:27 +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 47vQpM5vDdz3C75 for ; Fri, 10 Jan 2020 14:48:27 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 B31D01077 for ; Fri, 10 Jan 2020 14:48:27 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f172.google.com with SMTP id v25so2095621qto.7 for ; Fri, 10 Jan 2020 06:48:27 -0800 (PST) X-Gm-Message-State: APjAAAUEol7ww2MkmQ0N0V94ZM82aRBjv7u7P+GOqEEkGjpnjYSu7WDU Ym6IvHriHvnPB1EbxrqpABN9f188DXsO7OV0tN8= X-Google-Smtp-Source: APXvYqwI2rxa9AkxLYnGNN7fgWDoVwSwLvLRaciL+wWN9PvpuTKsriG+nkjyfMGbsGiY1SDj/Cei+hVb2lcUJUggKgg= X-Received: by 2002:ac8:ff6:: with SMTP id f51mr2722508qtk.60.1578667707241; Fri, 10 Jan 2020 06:48:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Fri, 10 Jan 2020 08:48:15 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can't cross-compile HEAD To: Pavel Timofeev Cc: freebsd-current 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, 10 Jan 2020 14:48:28 -0000 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, Pavel Timo= feev : > > > > Hello > > > > I'm trying to cross-compile HEAD r356551 for mips on my FreeBSD-12.1 am= d64. > > I'm using mips-gcc6-6.5.0 and this > > https://github.com/freebsd/freebsd-wifi-build nice project to build > > 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 function > > '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-variable=3D] > > static const char copyright[] =3D > > ^~~~~~~~~ > > /usr/home/pavel.timofeev/mips/head/usr.sbin/inetd/inetd.c: In function = '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 are 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 mark it as a BROKEN_OPTION on mips+gcc while we hash out the details , as gcc{6,9} is the only option we support for building mips at the moment. Thanks, Kyle Evans