From owner-freebsd-ports@freebsd.org Sat Jul 28 16:39:49 2018 Return-Path: Delivered-To: freebsd-ports@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 BF89910565A4 for ; Sat, 28 Jul 2018 16:39:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-19.consmr.mail.gq1.yahoo.com (sonic314-19.consmr.mail.gq1.yahoo.com [98.137.69.82]) (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 1A2A47505B for ; Sat, 28 Jul 2018 16:39:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: fjANJvQVM1lFIBLlYMS_lvnRmjYh7ZQ_3IHrgpuPE3fkZR5Ka4L9pYdMEYiQkIQ IwBLwVDefM351mUsIJjRKUjNz4MTYX0_QeesBrr_L2gUwOuXVtXqhwrcDHpOl5Q9uoX8.NLEbueo p_6NBFV_65uysvP0jPqUC7XOOJn6udmU22nxR9K.w2UYShNR.SFgaDu2gJE7l9PTk5yQRlaOBKWt RIBIN0fU9oKQ01jOYDOqBTLKHj4EIxmlGnwpViOhz2a3cR52PH4yZ1l27OZ2uyHPYP0Wpzp2g2lS sFyCe7_WsEenMs2zqZRtNib8BslGsH4Ub1UsqI9RdYYL2CA76kr0vaMhvJLq7EnwWRetQG.UQxZx v074p1hL.znC7dcNN7v.YxCuq3rJPiPxWFJbwjeJXRDUM9.nx0sYLfc46htNSdiYY4YYJdYFhGtB H2zR8OmEWv0M9Pur7nivzSKzfvOBcjF4OFN0TzdIF5u7Erg2IFwhKO90Pb6hnDKGg3crFEtfpiCS kMyAdmkYlX7YZaqDgx7WTgFvUa0Gxjml64YfwpmC8cQre9YUAuSqsuVrshITrx1E4sha_Ch0AG_v IUIchEjH76MmwGV1Il8P72ZpOG.KvbDHe33qgrA4GoCzLisO6LRQzjl2Wy0zmAkHnrzO0vSqj_UK EbLd.mtTLZslluGXf0BpAhVuOlgPHb_7GKl32FzuuNDEzvAakldYPKLy4UfB9vmwLJEcyCN1mrtR L4kTvD0f6WrlEePPSDTx.K_DIrkc02X9R.p_U8um1gy2o9BAUoydcQcC0BLJ6urXdi2fTdgeGpIC s7Av2gsOPvfGV419QzWrSHc8RTmQlHqBt198HLPGB.k8Gm43DeWei_358F0PGhJJDPrDiJfsOoTF ggvpZE889K2G_LeJPQ7O4gnfpt3lKH0wam1WQEoZrVGhKCmlHUpUFZpyL3rNEsRl6cuI.Ak1HD37 a6MvhU1Hqmmhpc_oEhipiCFfXiu_1rEmDb7Nb_HCUPaEiLdccu33OdPXJiz7qLXfTyLju4UbyzFR 2q0Y816P0LC.9UfIWyI_Yjn7H Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Sat, 28 Jul 2018 16:39:47 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp406.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 050e15fad34960de75deecb409384db5; Sat, 28 Jul 2018 16:39:45 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Building devel/powerpc64-gcc and devel/amd64-gcc and the like fail: "Unable to access file" for many files in work/stage/... From: Mark Millard In-Reply-To: <884de41d-011e-a025-bfec-4e61b5546336@FreeBSD.org> Date: Sat, 28 Jul 2018 09:39:44 -0700 Cc: FreeBSD Ports , Bryan Drewery Content-Transfer-Encoding: quoted-printable Message-Id: <47AE95CB-1BD7-42DA-AA17-3EC0252FAF59@yahoo.com> References: <3A54CD6F-FEE9-4813-97B8-76A3E619D7F4@yahoo.com> <884de41d-011e-a025-bfec-4e61b5546336@FreeBSD.org> To: John Baldwin , mat@FreeBSD.org X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2018 16:39:50 -0000 [Older directions of investigation omitted.] On 2018-Jul-26, at 10:24 AM, John Baldwin wrote: > On 7/26/18 12:02 AM, Mark Millard wrote: >> Based on attempting to update (via poudriere-devel and pkg) to = -r475344 (from >> a prior 2018-Jul-15 6.4.0_1 build and installation of such = devel/*-gcc --and >> other things). . . >>=20 >> =3D=3D=3D> Building package for powerpc64-gcc-6.4.0_2 >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/gtype.state:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/ada/gcc-interface/ada-tree.de= f:No such file or directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/addresses.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/alias.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/all-tree.def:No such file = or directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/alloc-pool.h:No such file = or directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/ansidecl.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/asan.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/attribs.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/auto-host.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/auto-profile.h:No such file = or directory >> . . . >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/xcoff.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/plugin/include/xcoffout.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/libexec/gcc/po= werpc64-unknown-freebsd12.0/6.4.0/plugin/gengtype:No such file or = directory >> *** Error code 1 >>=20 >>=20 >> =3D=3D=3D> Building package for amd64-gcc-6.4.0_2 >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/gtype.state:No such file or directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/ada/gcc-interface/ada-tree.def:No = such file or directo >> ry >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/addresses.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/alias.h:No such file or directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/all-tree.def:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/alloc-pool.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/ansidecl.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/asan.h:No such file or directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/attribs.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/auto-host.h:No such file or = directory >> pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/plugin/include/auto-profile.h:No such file or = directory >> . . . >>=20 >> I'll not list devel/aarch64 materials but they are similar. >>=20 >>=20 >> Looking around for, say, gtype.state shows the likes of: >>=20 >> # find /wrkdirs/usr/ports/devel/ -name gtype.state -print | more >> /wrkdirs/usr/ports/devel/powerpc64-gcc/work/.build/gcc/gtype.state >> /wrkdirs/usr/ports/devel/amd64-gcc/work/.build/gcc/gtype.state >>=20 >> ( Nothing in work/stage/... ) >>=20 >>=20 >> In fact: >>=20 >> # ls -laTt = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/lib/gcc/powerp= c64-unknown-freebsd12.0/6.4.0/ >> total 16 >> drwxr-xr-x 4 root wheel 512 Jul 25 22:00:28 2018 . >> drwxr-xr-x 3 root wheel 512 Jul 25 21:59:38 2018 install-tools >> drwxr-xr-x 2 root wheel 512 Jul 25 21:59:37 2018 include >> drwxr-xr-x 3 root wheel 512 Jul 25 21:59:26 2018 .. >>=20 >> # ls -laTt = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/lib/gcc/x86_64-unk= nown-freebsd12.0/6.4.0/ >> total 16 >> drwxr-xr-x 4 root wheel 512 Jul 25 22:07:48 2018 . >> drwxr-xr-x 2 root wheel 2048 Jul 25 22:07:48 2018 include >> drwxr-xr-x 3 root wheel 512 Jul 25 22:07:47 2018 install-tools >> drwxr-xr-x 3 root wheel 512 Jul 25 22:07:44 2018 .. >>=20 >> # ls -laTt = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/libexec/gcc/po= werpc64-unknown-freebsd12.0/6.4.0/ >> total 284336 >> drwxr-xr-x 3 root wheel 512 Jul 25 22:00:28 2018 . >> -r-xr-xr-x 1 root wheel 2812448 Jul 25 22:00:26 2018 lto-wrapper >> drwxr-xr-x 2 root wheel 512 Jul 25 21:59:38 2018 = install-tools >> -r-xr-xr-x 1 root wheel 101453496 Jul 25 21:59:35 2018 cc1plus >> -r-xr-xr-x 1 root wheel 2402600 Jul 25 21:59:35 2018 collect2 >> -r-xr-xr-x 1 root wheel 90112408 Jul 25 21:59:35 2018 lto1 >> -r-xr-xr-x 1 root wheel 93819272 Jul 25 21:59:34 2018 cc1 >> lrwxr-xr-x 1 root wheel 22 Jul 25 21:59:28 2018 = liblto_plugin.so -> liblto_plugin.so.0.0.0 >> lrwxr-xr-x 1 root wheel 22 Jul 25 21:59:28 2018 = liblto_plugin.so.0 -> liblto_plugin.so.0.0.0 >> -rwxr-xr-x 1 root wheel 264360 Jul 25 21:59:28 2018 = liblto_plugin.so.0.0.0 >> drwxr-xr-x 3 root wheel 512 Jul 25 21:59:26 2018 .. >>=20 >> # ls -laTt = /wrkdirs/usr/ports/devel/amd64-gcc/work/stage/usr/local/libexec/gcc/x86_64= -unknown-freebsd12.0/6.4.0/ >> total 317648 >> drwxr-xr-x 3 root wheel 512 Jul 25 22:07:48 2018 . >> drwxr-xr-x 2 root wheel 512 Jul 25 22:07:47 2018 = install-tools >> -r-xr-xr-x 1 root wheel 2829704 Jul 25 22:07:47 2018 lto-wrapper >> -r-xr-xr-x 1 root wheel 105180264 Jul 25 22:07:46 2018 cc1 >> -r-xr-xr-x 1 root wheel 112817696 Jul 25 22:07:46 2018 cc1plus >> -r-xr-xr-x 1 root wheel 2404680 Jul 25 22:07:46 2018 collect2 >> -r-xr-xr-x 1 root wheel 101541352 Jul 25 22:07:46 2018 lto1 >> drwxr-xr-x 3 root wheel 512 Jul 25 22:07:44 2018 .. >> lrwxr-xr-x 1 root wheel 22 Jul 25 22:07:44 2018 = liblto_plugin.so -> liblto_plugin.so.0.0.0 >> lrwxr-xr-x 1 root wheel 22 Jul 25 22:07:44 2018 = liblto_plugin.so.0 -> liblto_plugin.so.0.0.0 >> -rwxr-xr-x 1 root wheel 264168 Jul 25 22:07:44 2018 = liblto_plugin.so.0.0.0 >>=20 >> So no plugin paths at all. So looking . . . >>=20 >> # find /wrkdirs/usr/ports/devel/ -name plugin -print | more >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/libjava/classpath/na= tive/plugin >> /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/libgomp/plugin >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/liboffloadmic/plugin= >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/gcc/testsuite/objc.d= g/plugin >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/gcc/testsuite/gcc.dg= /plugin >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/gcc/testsuite/g++.dg= /plugin >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/gcc/testsuite/obj-c+= +.dg/plugin >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/libjava/classpath/native= /plugin >> /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/libgomp/plugin >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/liboffloadmic/plugin >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/gcc/testsuite/objc.dg/pl= ugin >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/gcc/testsuite/gcc.dg/plu= gin >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/gcc/testsuite/g++.dg/plu= gin >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/gcc/testsuite/obj-c++.dg= /plugin >>=20 >> (None of which seem to be a match.) >>=20 >> Picking a plugin/include/*.h file and looking for it: >>=20 >> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/xcoff.h >>=20 >> # find /wrkdirs/usr/ports/devel/ -name xcoff.h -print | more >> = /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/gcc/config/rs6000/xc= off.h >> /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.4.0/gcc/xcoff.h >> = /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/gcc/config/rs6000/xcoff.= h >> /wrkdirs/usr/ports/devel/amd64-gcc/work/gcc-6.4.0/gcc/xcoff.h >>=20 >>=20 >> Note: the devel/*-binutils builds worked fine, as did devel/gdb . >> ( lang/gcc8 is still rebuilding. ) >>=20 >> Context: >>=20 >> # uname -apKU >> FreeBSD FBSDUSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r336693M amd64 = amd64 1200075 1200075 >=20 > Hmm, I'll investigate. I wonder if it's the fact that I fixed the = --host to correctly > use x86_64 instead of amd64 when building a !amd64 GCC on an amd64 = host (r475291). I reverted -r475361 and started a poudriere-devel based build to test if it is contributing to the above. I'll report back later. This was: Author: mat Date: Thu Jul 26 11:09:46 2018 New Revision: 475361 URL:=20 https://svnweb.freebsd.org/changeset/ports/475361 Log: Extract PLIST_SUB substitutions into a sed script. =20 This fixes PLIST_SUB being too big and PLIST_SUB_SED getting bigger = than _POSIX2_LINE_MAX. =20 PR: 222355 Reported by: asomers Reviewed by: asomers, mfechner Sponsored by: Absolight Differential Revision: =20 https://reviews.freebsd.org/D14014 Modified: head/Mk/Scripts/check-stagedir.sh (contents, props changed) head/Mk/Scripts/check_leftovers.sh (contents, props changed) head/Mk/Scripts/plist_sub_sed_sort.sh (contents, props changed) # svnlite update -r475360 /usr/ports/Mk/Scripts/check-stagedir.sh = /usr/ports/Mk/Scripts/check_leftovers.sh = /usr/ports/Mk/Scripts/plist_sub_sed_sort.sh Updating '/usr/ports/Mk/Scripts/check-stagedir.sh': U /usr/ports/Mk/Scripts/check-stagedir.sh Updated to revision 475360. Updating '/usr/ports/Mk/Scripts/check_leftovers.sh': U /usr/ports/Mk/Scripts/check_leftovers.sh Updated to revision 475360. Updating '/usr/ports/Mk/Scripts/plist_sub_sed_sort.sh': U /usr/ports/Mk/Scripts/plist_sub_sed_sort.sh Updated to revision 475360. Summary of updates: Updated '/usr/ports/Mk/Scripts/check-stagedir.sh' to r475360. Updated '/usr/ports/Mk/Scripts/check_leftovers.sh' to r475360. Updated '/usr/ports/Mk/Scripts/plist_sub_sed_sort.sh' to r475360. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)