From owner-svn-src-head@freebsd.org Sat Jun 30 01:02:27 2018 Return-Path: Delivered-To: svn-src-head@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 B7CDFFDC87C for ; Sat, 30 Jun 2018 01:02:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-9.consmr.mail.gq1.yahoo.com (sonic316-9.consmr.mail.gq1.yahoo.com [98.137.69.33]) (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 39C4983B4A for ; Sat, 30 Jun 2018 01:02:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: gsWnNjkVM1mKsS8iC4u_UCrJvS3oP9r7JnvHfapCkT94oXxCQ2wJZqAnSKI.rA2 FD01zFi53MbNl2q_XyzCeztmmCOeX8xkU4JOkSEe_9bPe6L..BG2lRcbk5ejCZxDHGJl05cywAgm 28mc8rrGSjdHm9xDkwnNsa38KLV8Qt_6aaIIvHEaEJi6.tEgZenSjJl3dMWZ3mltIQac1uj4j2Z6 XKkGyBk5wRVctD.wPX_zIpQ6asOG0HwP4nGnmPQeh8AlRRfEiGe3S4ygqM4_wfy4CkvIFxIebi7Y 8QcRMF_7bBS_Fot9dbzbaCevD5pawmag2rIpxwVPz9rj38G0Jhn2FK10WeZto.6CPikrPjT71o6u 5zmIOvTG9M7LmkwfM8KnRq7.cW8BMW1EJBmmHSLLwM0.rGq3oGS9j98Or3wHETGz3D_BPWAxxHav Ud_F3xWowaDIHLKRbho0oyNghyLGV7_k_riFN_ThZGOr8lxYoLrliOb2HKJrXwvROIip_tZQ2mZ7 2qUZJ9Pqo_E.8ZvHFzy5tFq_FqL1WKRrujaQoSA.fQRaTjZ49x1YMqOMrK3_gmGM31.WWvCxB4si U5GUNIasJxFo1Shc.Pt2SnidJiT2.48IO245da7Si8wq1GVKr6YhrXpOWiirpCKY33SfgTIIHhxw ULaCsE9.CX2npMJYo5amLxSoF4DXxuRWApV3Yr.yLMfiVu3ncUK8LexiYBnJJ4EzlWSNM0BzviHR BY2ZzYiAyhM5lz.e0IFmR3gIBmwvTcsy21X96SWRWU6g3IwzBuB8ra4Buwbf.qV1QFQ3mVZjbCkI 72bHImslvu7bCeFJoHNwiryRYXIyb_75RQ3WdXMOym.1MpAHUjsC.Z_DcPGFd4WeZ2rpOF9Bfy1N pBGlEAtRmoBo8gMxKSvzGITF6mhKtThL9yJlvoZlp0yCRAmUreRfzLEE20sXCdOPgnmpcEkKBOgF P_7aVjbYzWkqkI_q4WNZjTsG1bwWOvw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sat, 30 Jun 2018 01:02:20 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp420.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 10f15d5305dd862f0cfb450bf9eee85e; Sat, 30 Jun 2018 01:02:15 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: head -r335782 (?) broke ci.freebsd.org's FreeBSD-head-amd64-gcc build (lib32 part of build) From: Mark Millard In-Reply-To: <003509F0-F2F4-4A43-82FE-3F6FC23D19D4@yahoo.com> Date: Fri, 29 Jun 2018 18:02:13 -0700 Cc: Bryan Drewery , svn-src-head@freebsd.org, FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <3010D324-3852-4EFC-BC7C-E4A905A0F665@yahoo.com> References: <00D1127A-1F0E-4E0E-B86C-1C5AA5B2E085@yahoo.com> <7A845F2C-C994-4828-823D-33A97B7B6EB0@yahoo.com> <72081b02-cf23-82ec-32df-7f5793c35f57@FreeBSD.org> <003509F0-F2F4-4A43-82FE-3F6FC23D19D4@yahoo.com> To: John Baldwin X-Mailer: Apple Mail (2.3445.8.2) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jun 2018 01:02:28 -0000 On 2018-Jun-29, at 2:37 PM, Mark Millard wrote: > [I expect this is more than just amd64-gcc related but that is all > that ci.freebsd.org normally builds via a devel/*-gcc .] >=20 > On 2018-Jun-29, at 10:38 AM, John Baldwin wrote: >=20 >> On 6/28/18 7:54 PM, Mark Millard wrote: >>> On 2018-Jun-28, at 6:04 PM, Mark Millard = wrote: >>>=20 >>>> On 2018-Jun-28, at 5:39 PM, Mark Millard = wrote: >>>>=20 >>>> . . . >>>> Later below expand the failing and previoly good commands, one >>>> option per line. The summary of the distinction in content is >>>> a one line difference, the working example ( -r335773 )had the >>>> option: >>>>=20 >>>> -isystem = /workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/include >>>>=20 >>>> but the failing one did not. Working ( -r335773 ) is shown first. >>>>=20 >>>> --- catrigl.o --- >>>> /usr/local/bin/x86_64-unknown-freebsd11.1-gcc >>>> -DCOMPAT_32BIT >>>> -march=3Di686 >>>> -mmmx >>>> -msse >>>> -msse2 >>>> -m32 >>>> -L/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/lib32 >>>> --sysroot=3D/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp >>>> -B/usr/local/x86_64-unknown-freebsd11.1/bin/ >>>> -B/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/lib32 >>>> -isystem = /workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/include >>>> -O2 >>>> -pipe >>>> -I/workspace/src/lib/msun/x86 >>>> -I/workspace/src/lib/msun/ld80 >>>> -I/workspace/src/lib/msun/i387 >>>> -I/workspace/src/lib/msun/src >>>> -I/workspace/src/lib/libc/include >>>> -I/workspace/src/lib/libc/i386 >>>> . . . >>>>=20 >>>> --- catrigl.o --- >>>> /usr/local/bin/x86_64-unknown-freebsd11.1-gcc >>>> -DCOMPAT_32BIT >>>> -march=3Di686 >>>> -mmmx >>>> -msse >>>> -msse2 >>>> -m32 >>>> -L/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/lib32 >>>> --sysroot=3D/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp >>>> -B/usr/local/x86_64-unknown-freebsd11.1/bin/ >>>> -B/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/lib32 >>>> -O2 >>>> -pipe >>>> -I/workspace/src/lib/msun/x86 >>>> -I/workspace/src/lib/msun/ld80 >>>> -I/workspace/src/lib/msun/i387 >>>> -I/workspace/src/lib/msun/src >>>> -I/workspace/src/lib/libc/include=20 >>>> -I/workspace/src/lib/libc/i386 >>>> . . . >>>=20 >>>=20 >>> For the report: >>>=20 >>>> The xtoolchain GCC packages have not required these flags since = ports >>>> commits r465416 and r466701 >>>=20 >>> Looking at = https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/6331/consoleText >>> there is: >>>=20 >>>> Updating FreeBSD repository catalogue... >>>> FreeBSD repository is up to date. >>>> All repositories are up to date. >>>> The following 6 package(s) will be affected (of 0 checked): >>>>=20 >>>> New packages to be INSTALLED: >>>> amd64-xtoolchain-gcc: 0.4_1 >>>> amd64-gcc: 6.4.0 >>>> mpfr: 4.0.1 >>>> gmp: 6.1.2 >>>> mpc: 1.1.0_1 >>>> amd64-binutils: 2.30_3,1 >>>=20 >>> and amd64-gcc being 6.4.0 (via powerpc64-gcc) is from -r466834 >>> (via looking up in https://svnweb.freebsd.org/ports/head/devel/ ). >>>=20 >>> This indicates that -r465416 and -r466701 did not cause: >>>=20 >>> --sysroot=3D/workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp >>>=20 >>> to lead to include files being looked up in: >>>=20 >>> /workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/include >>>=20 >>> Thus there appears to still be a need for: >>>=20 >>> -isystem = /workspace/obj/workspace/src/amd64.amd64/obj-lib32/tmp/usr/include >>>=20 >>> unless more is done to the devel/*-gcc to make them look >>> in that additional place automatically (based on --sysroot). >>=20 >> --sysroot does work, and you can verify it by doing the following: >>=20 >> % touch empty.c >> % x86_64-unknown-freebsd11.2-gcc -c -v empty.c >> Using built-in specs. >> COLLECT_GCC=3Dx86_64-unknown-freebsd11.2-gcc >> Target: x86_64-unknown-freebsd11.2 >> ... >> ignoring nonexistent directory = "/usr/local/lib/gcc/x86_64-unknown-freebsd11.2/6.4.0/include-fixed" >> ignoring nonexistent directory = "/usr/local/lib/gcc/x86_64-unknown-freebsd11.2/6.4.0/../../../../x86_64-un= known-freebsd11.2/include" >> #include "..." search starts here: >> #include <...> search starts here: >> /usr/local/lib/gcc/x86_64-unknown-freebsd11.2/6.4.0/include >> /usr/include >> End of search list. >> ... >> % x86_64-unknown-freebsd11.2-gcc -c -v empty.c --sysroot=3D/foo >> Using built-in specs. >> COLLECT_GCC=3Dx86_64-unknown-freebsd11.2-gcc >> Target: x86_64-unknown-freebsd11.2 >> ... >> ignoring nonexistent directory = "/usr/local/lib/gcc/x86_64-unknown-freebsd11.2/6.4.0/include-fixed" >> ignoring nonexistent directory = "/usr/local/lib/gcc/x86_64-unknown-freebsd11.2/6.4.0/../../../../x86_64-un= known-freebsd11.2/include" >> ignoring nonexistent directory "/foo/usr/include" >> #include "..." search starts here: >> #include <...> search starts here: >> /usr/local/lib/gcc/x86_64-unknown-freebsd11.2/6.4.0/include >> End of search list. >>=20 >> I will see if I can reproduce the failure locally. >=20 > The: >=20 > ignoring nonexistent directory "/foo/usr/include" >=20 > means that the order of the search alternatives was not shown > ("search starts here"). That is what I expect is different. >=20 > It will take a while before I'll have a build from either > before or after the change to show a search order with. > (And longer to have both for comparison.) >=20 > My context is freebsd12.0 . My buildworld buildkernel > context has: >=20 > # more ~/src.configs/make.conf=20 > CFLAGS.gcc+=3D -v >=20 > so my script file for a build is very explicit about the > order. >=20 > I'll be starting from # uname -apKU > FreeBSD FBSDUSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r335245M amd64 = amd64 1200069 1200069 >=20 Here is what head -r335245 got for my build . . . = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/li= b/msun/catrigl.o.meta shows: ignoring nonexistent directory = "/usr/local/lib/gcc/x86_64-unknown-freebsd12.0/6.4.0/include-fixed" ignoring nonexistent directory = "/usr/local/lib/gcc/x86_64-unknown-freebsd12.0/6.4.0/../../../../x86_64-un= known-freebsd12.0/include" ignoring duplicate directory = "/usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/t= mp/usr/include" #include "..." search starts here: #include <...> search starts here: /usr/src/lib/msun/x86 /usr/src/lib/msun/ld80 /usr/src/lib/msun/i387 /usr/src/lib/msun/src /usr/src/lib/libc/include /usr/src/lib/libc/i386 = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/tm= p/usr/include /usr/local/lib/gcc/x86_64-unknown-freebsd12.0/6.4.0/include End of search list. It will be some time before I have an attempted build of -r335782 or later to compare such with. But the above found FreeBSD's: # ls -lT = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/tm= p/usr/include/float.h=20 lrwxr-xr-x 1 root wheel 15 Jun 29 16:27:34 2018 = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/tm= p/usr/include/float.h -> machine/float.h # ls -lT = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/tm= p/usr/include/machine/float.h -rwxr-xr-x 1 root wheel 151 Nov 3 02:27:25 2016 = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/obj-lib32/tm= p/usr/include/machine/float.h instead of: # ls -lT = /usr/local/lib/gcc/x86_64-unknown-freebsd12.0/6.4.0/include/float.h=20 -rw-r--r-- 1 root wheel 8729 May 26 05:05:37 2018 = /usr/local/lib/gcc/x86_64-unknown-freebsd12.0/6.4.0/include/float.h =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)