From owner-freebsd-toolchain@freebsd.org Sat Oct 27 03:42:40 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58D0410D5E73 for ; Sat, 27 Oct 2018 03:42:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-22.consmr.mail.ne1.yahoo.com (sonic306-22.consmr.mail.ne1.yahoo.com [66.163.189.84]) (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 E4A9F7A8A5 for ; Sat, 27 Oct 2018 03:42:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: zwJnZtgVM1mOGeludfG9oWedVFYUTG_HiFweCrfJxeEb_8qlDSCiXVZSxzANXXT Ao9YIfs2.9b97JIjVPCkK.d0XWBdtD039da.gNkHUkYPM3b8xVbxpQM9ZcUajWnGRYJ7WwgpNB4B i97vo25sPnxDkF5szOHq51ZlBk3DkOnxUV8_2Xo.3KeSkOqlb5oPpZaYVFWb3zxfIeouEdBzwcec 1xMUq.znqLql9URk_mWl2s9IUSKTX.Hwa.OOn8VNM9ApBcLvezcj68a8yKaLjrfIpggMXxqySDiz HblhdPlUq8JOHY_nJddx.5uO3I_d4bJNpczwFb03JAEE7qzzu9oTHB2bmxXSkwXDvy2bOSCanEAa DSZs0MMVQI7.Si49kowURiqcW_.TLVfKXLmSqqPgU2rsFBJ5EOQNE0Yt7TynURSySEEtoqiGYDNN yNIrEFJFeT3PnaNmVNzJcXq512A6ev76bZ.liIPeng7MFDdQAfcYckrIDwywSG071X4BSr9_JXCP 2.Uzbma2QtyQQf3eXH6cwTKrITAe.JymyodWzRYscEdFUa.1mRQYUPVVkLp0zKTY9qI2ASN028Ef 06Tgxm1rV1hE2iEk..YN6Q7PB.iLiAj5hGNq7grRkgfnOvn0Z7Zl8hAI78RYXhMo.L9afhLLh4ZC qGbJsW8MtByle.I8ZTn87fq4VUGETdHqcqbFavgSCDEb2SvCG7WCl2i_VeHGXKlUG5QhXKsfQoc_ Xo1lEscWwVGL_QOVM_PY_rrf7CO86PF2j5vLqP3vn2cnzumDvK9qnUeUuHqXXh.cBuwt4gX5PaNc IjK6JtAR8ilsc1yWk4PkiqQ0ZJiPz81zEvKWDtMdXjBUffQM45I__7NAvZABuqNg6n.E7O9Resge O9ViEqj45fSmG88KgUwysiIK2XZPAFH9.kjC1ButvrCBgSnpnGhvR_1fyJ6CG5avKeeQiZbXhnuK 6eO3ZVQ3t2Fyig83MSansUyxuvOQ3xhMzA1VLKNzBWnIZw69pRbC605EXfOJXKkMBpj8PyrYGbu7 ShnoCJwdsMmAm0ifFHXdSYjLBnt4QURy0BeYJxuZa0.Y- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 27 Oct 2018 03:42:33 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp420.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3e151b3eb4af58016b2110c5cbe634ff; Sat, 27 Oct 2018 03:42:28 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: head -r339076 amd64 -> armv7 port cross build attempt with native tools involved: hangs between a cc (wait) and its child ld (uwait) Message-Id: <33C58480-1E76-4748-83B4-CB39FAD8584A@yahoo.com> Date: Fri, 26 Oct 2018 20:42:27 -0700 To: FreeBSD Toolchain , freeBSD X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2018 03:42:40 -0000 In trying to amd64 -> armv7 cross build ports via poudriere-devel use with native cross tools involved (and UFS, not ZFS), I'm getting about 117 ports that built and then one that ends up stuck in wait/uwait . ^C to poudriere and restarting it repeats the stuck behavior at the same point (a cc and its ld), for example: [00:02:51] [01] [00:00:00] Building print/texinfo | texinfo-6.5,1 ps output extraction (blank lines added for each of scanning): UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND . . . 0 42312 32181 0 52 0 12904 3904 select I 1 0:00.02 sh: = poudriere[FBSDFSSDjailArmV7-default][01]: build_pkg (texinfo-6.5,1) (sh) 0 42974 42312 0 52 0 12904 3900 wait I 1 0:00.00 sh: = poudriere[FBSDFSSDjailArmV7-default][01]: build_pkg (texinfo-6.5,1) (sh) 0 42975 42974 0 52 0 10408 1840 wait IJ 1 0:00.01 = /usr/bin/make -C /usr/ports/print/texinfo configure 0 43077 42975 0 52 0 10252 1792 wait IJ 1 0:00.00 /bin/sh = -e -c (cd /wrkdirs/usr/ports/print/texinfo/work/texinfo-6.5 && = _LATE_CONFIGURE_ARGS=3D"" ; if [ -z "" ] && ./configure --help=20 0 43375 43077 0 52 0 11164 2392 wait IJ 1 0:00.19 /bin/sh = ./configure --enable-nls --prefix=3D/usr/local --localstatedir=3D/var = --mandir=3D/usr/local/man --disable-silent-rules --infodir=3D/usr 0 46850 43375 0 52 0 11164 2388 wait IJ 1 0:00.00 /bin/sh = ./configure --enable-nls --prefix=3D/usr/local --localstatedir=3D/var = --mandir=3D/usr/local/man --disable-silent-rules --infodir=3D/usr 0 46857 46850 0 52 0 11080 2060 wait IJ 1 0:00.04 /bin/sh = ./configure --disable-option-checking --prefix=3D/usr/local --enable-nls = --localstatedir=3D/var --mandir=3D/usr/local/man --disable-s 0 47796 46857 0 52 0 113840 26184 wait IJ 1 0:00.15 = /usr/local/bin/qemu-arm-static /usr/bin/cc -o conftest -O2 -pipe = -mcpu=3Dcortex-a7 -DLIBICONV_PLUG -g -fno-strict-aliasing -mcpu=3Dcortex-a= 0 47801 47796 0 52 0 285300 39672 uwait IJ 1 0:00.22 = qemu-arm-static -L /usr/gnemul/qemu-arm /usr/bin/ld --eh-frame-hdr = -dynamic-linker /libexec/ld-elf.so.1 --hash-style=3Dboth --enable-new- So the "/usr/local/bin/qemu-arm-static /usr/bin/cc . . ." creates the child "qemu-arm-static -L /usr/gnemul/qemu-arm /usr/bin/ld . = . ." process and the two get hung up. Letting it sit for long periods does not let it progress. The full commands are (note the "-pipe" vs. the = "/tmp/conftest-6c0832.o"): /usr/local/bin/qemu-arm-static /usr/bin/cc -o conftest -O2 -pipe = -mcpu=3Dcortex-a7 -DLIBICONV_PLUG -g -fno-strict-aliasing = -mcpu=3Dcortex-a7 -DLIBICONV_PLUG conftest.c and: qemu-arm-static -L /usr/gnemul/qemu-arm /usr/bin/ld --eh-frame-hdr = -dynamic-linker /libexec/ld-elf.so.1 --hash-style=3Dboth = --enable-new-dtags -o conftest /usr/lib/crt1.o /usr/lib/crti.o = /usr/lib/crtbegin.o -L/usr/lib /tmp/conftest-6c0832.o -lgcc --as-needed = -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed = /usr/lib/crtend.o /usr/lib/crtn.o For reference for /tmp/conftest-6c0832.o : # ls -lTd = /usr/local/poudriere/data/.m/FBSDFSSDjailArmV7-default/01/tmp/conftest-6c0= 832.o -rw-r--r-- 1 root wheel 4204 Oct 26 17:33:13 2018 = /usr/local/poudriere/data/.m/FBSDFSSDjailArmV7-default/01/tmp/conftest-6c0= 832.o (I'm not using tmpfs or the like at all.) The context is based on head -r339076 an is on a Ryzen Threadripper 1950X system, natively booted (not Hyper-V). (I've not tried under Hyper-V yet.) Note: I have built ports similarly before --but the last time was back in March-May sometime. # poudriere jail -jFBSDFSSDjailArmV7 -i Jail name: FBSDFSSDjailArmV7 Jail version: 12.0-ALPHA8 Jail arch: arm.armv7 Jail method: null Jail mount: /usr/obj/DESTDIRs/clang-armv7-installworld-poud Jail fs: =20 Jail updated: 2018-10-26 16:42:55 Tree name: default Tree method: null Status: parallel_build: Building started: 2018-10-26 17:29:36 Elapsed time: 02:47:50 Packages built: 0 Packages failed: 0 Packages ignored: 0 Packages skipped: 0 Packages total: 84 Packages left: 84 # poudriere ports -l PORTSTREE METHOD TIMESTAMP PATH default null 2017-08-14 21:07:05 /usr/ports I have yet to think of a way to look into this or to work around it. But my long running build on an Orange Pi Plus 2nd Edition has finished so I'll update from that for now. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)