From owner-freebsd-current@freebsd.org Fri Jan 10 19:05:20 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 A75D91F07C8 for ; Fri, 10 Jan 2020 19:05:20 +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 47vXVm4kRnz3yg0; Fri, 10 Jan 2020 19:05:20 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 8D3EC2F5F; Fri, 10 Jan 2020 19:05:20 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f180.google.com with SMTP id a203so2892823qkc.3; Fri, 10 Jan 2020 11:05:20 -0800 (PST) X-Gm-Message-State: APjAAAX8G0/WWocKYQpfYjNehsioS9L2+ze5U+o1mRgw+nRVVBEi8PKa pW7vU42Llm3Iq7OGzs6Kb/x6BQGqnNMJWkLo1Vg= X-Google-Smtp-Source: APXvYqzhrYmC9mPqOMSHQROPeJ9ZFzqu6TZiN+ESqnSG4WNhe06nh4zmo454Cju74h/bowwpE49hB9WHvAD1zW8E9OU= X-Received: by 2002:ae9:e10e:: with SMTP id g14mr4846645qkm.430.1578683120086; Fri, 10 Jan 2020 11:05:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Fri, 10 Jan 2020 13:05:08 -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, 10 Jan 2020 19:05:20 -0000 On Fri, Jan 10, 2020 at 12:59 PM Pavel Timofeev wrote: > > =D0=BF=D1=82, 10 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 17:48, Kyle Evan= s : > > > > On Fri, Jan 10, 2020 at 12:31 AM Pavel Timofeev wrot= e: > > > > > > =D1=87=D1=82, 9 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 16:52, Pavel = 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 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 funct= ion > > > > '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 funct= ion '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 > > 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. > =3D=3D=3D> usr.sbin/sendmail (all) > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c:33:19: > warning: 'copyright' defined but not used [-Wunused-const-variable=3D] > static const char copyright[] =3D > ^~~~~~~~~ > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c: In function > 'getname': > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c:520:6: > warning: variable 'ppp_state' might be clobbered by 'longjmp' or > 'vfork' [-Wclobbered] > int ppp_state =3D 0; > ^~~~~~~~~ > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c:521:6: > warning: variable 'ppp_connection' might be clobbered by 'longjmp' or > 'vfork' [-Wclobbered] > int ppp_connection =3D 0; > ^~~~~~~~~~~~~~ > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c: In function > 'main': > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c:183:6: > warning: variable 'first_sleep' might be clobbered by 'longjmp' or > 'vfork' [-Wclobbered] > int first_sleep =3D 1, first_time =3D 1; > ^~~~~~~~~~~ > /usr/home/pavel.timofeev/mips/head/libexec/getty/main.c:183:23: > warning: variable 'first_time' might be clobbered by 'longjmp' or > 'vfork' [-Wclobbered] > int first_sleep =3D 1, first_time =3D 1; > ^~~~~~~~~~ > /usr/home/pavel.timofeev/mips/head/libexec/getty/init.c:36:19: > warning: 'rcsid' defined but not used [-Wunused-const-variable=3D] > static const char rcsid[] =3D > ^~~~~ > /usr/home/pavel.timofeev/mips/head/libexec/getty/subr.c:36:19: > warning: 'rcsid' defined but not used [-Wunused-const-variable=3D] > static const char rcsid[] =3D > ^~~~~ > /usr/local/bin/mips-unknown-freebsd12.0-ld: nc.lo: in function `main': > /usr/home/pavel.timofeev/mips/head/contrib/netcat/netcat.c:365: > warning: warning: mktemp() possibly used unsafely; consider using > mkstemp() > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_write_add_filter_zst= d.o): > in fun > ction `archive_compressor_zstd_free': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:128: > undefined reference to `ZSTD_freeCStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:128: > undefined reference to `ZSTD_freeCStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_write_add_filter_zst= d.o): > in fun > ction `archive_compressor_zstd_options': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:150: > undefined reference to `ZSTD_maxCLevel' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:150: > undefined reference to `ZSTD_maxCLevel' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_write_add_filter_zst= d.o): > in fun > ction `archive_compressor_zstd_open': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:200: > undefined reference to `ZSTD_initCStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:200: > undefined reference to `ZSTD_initCStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:200: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:200: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:177: > undefined reference to `ZSTD_CStreamOutSize' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:177: > undefined reference to `ZSTD_CStreamOutSize' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_write_add_filter_zst= d.o): > in fun > ction `drive_compressor': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:270: > undefined reference to `ZSTD_compressStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:270: > undefined reference to `ZSTD_compressStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:272: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:272: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:273: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:273: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:270: > undefined reference to `ZSTD_endStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:270: > undefined reference to `ZSTD_endStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:272: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:272: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:273: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:273: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_write_add_filter_zst= d.o): > in fun > ction `archive_write_add_filter_zstd': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:101: > undefined reference to `ZSTD_createCStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= write_add_filter_zstd.c:101: > undefined reference to `ZSTD_createCStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_read_support_filter_= zstd.o): > in > function `zstd_filter_close': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:285: > undefined reference to `ZSTD_freeDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:285: > undefined reference to `ZSTD_freeDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_read_support_filter_= zstd.o): > in > function `zstd_bidder_init': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:166: > undefined reference to `ZSTD_DStreamOutSize' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:166: > undefined reference to `ZSTD_DStreamOutSize' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:175: > undefined reference to `ZSTD_createDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:175: > undefined reference to `ZSTD_createDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:180: > undefined reference to `ZSTD_freeDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:180: > undefined reference to `ZSTD_freeDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/../obj/mips_ap//usr/home/pavel.timofee= v/mips/head/mips.mips/tmp/usr/lib/libarchive.a(archive_read_support_filter_= zstd.o): > in > function `zstd_filter_read': > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:247: > undefined reference to `ZSTD_decompressStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:247: > undefined reference to `ZSTD_decompressStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:250: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:250: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:217: > undefined reference to `ZSTD_initDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:217: > undefined reference to `ZSTD_initDStream' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:218: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:218: > undefined reference to `ZSTD_isError' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:219: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:219: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:251: > undefined reference to `ZSTD_getErrorName' > /usr/local/bin/mips-unknown-freebsd12.0-ld: > /usr/home/pavel.timofeev/mips/head/contrib/libarchive/libarchive/archive_= read_support_filter_zstd.c:251: > undefined reference to `ZSTD_getErrorName' > collect2: error: ld returned 1 exit status > --- bsdbox --- > *** [bsdbox] Error code 1 > > make[4]: stopped in > /usr/home/pavel.timofeev/mips/obj/mips_ap/usr/home/pavel.timofeev/mips/he= ad/mips.mips/tools/bsdbox > ......