From owner-freebsd-current@freebsd.org Tue Jul 17 06:27:29 2018 Return-Path: Delivered-To: freebsd-current@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 138F3102BD74 for ; Tue, 17 Jul 2018 06:27:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-12.consmr.mail.ne1.yahoo.com (sonic308-12.consmr.mail.ne1.yahoo.com [66.163.187.35]) (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 96F1676751 for ; Tue, 17 Jul 2018 06:27:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 7NvtL4AVM1k.jXyQ10Eag6ofixLspV9qHoRFjIMi_ZDjqyfeaLSc2gjw.K6K20P ZPGkrd3EnTJpRnLQQjvv2Isp7cGumig8m4Lt0LPPRpLMGQHkMJSLAvLduXKokQ_2GREl8gp7ahuG R3RNc34Bfdo.qLEqt3F_Ts3I043o1g8ivmY.iHS8rBuwr7LxpDcRw0QwvLkWsodzKVLeN.DkQFSZ ZxaqzDturucD4z0vGVHEYM96nQPiX1pttqIfe5OCMPQVvnCdZaPB.dDqjzRvZ3TdQIswFFc4zGHm TASil.vJ.4nvQ51_dLvpX9HPBtnxdd83k2k4jgcstUMySR3mG63lEfKcb.9XRjHnCfhUgjW.ZEO_ 65ImkHy.HJUzo76R7Lj.WzRY_ljS6xk0XUsdUSIinTbOyJ53Ml8892m5su0OtHU3Kz1BzEDCsDZk x5FaB.fV57UDyZBZRQ0C1lLFDsU6Uljbx4ROc4q7LL6ZCyErF22kJV6yHmtjklQZjhENEoy2U5jP f6sTLmqTdZe8xBcVn0g33FWRYW7nbuaOxfXF3oYeA29gL6NPDEK.w3gGnapFNeHIMZ3mbydhGNNw 56rm0AvFO74N7Ihk.V1_B1o9qm4eoLDc0vA_TDU43.dllGftsMQLoHsLi35zHjIFDWKMXGmWFuQ9 VwKrNOz6d1ZNfTMM7c4u5ps1v9vjZgHRmA5enNS9ZSlW3jmkOSbraC2df4.BRkmRbddreeF.MEvr h8DuEWkQXm5FDFzGk86g6gcRw7O6wZVNYyopBtAqoOEH7w_1AFTnHvrEdlLtX1UHkvCb6.UrgcXz WtNSTNvRHvk7uUaLcgytNWJuytvk5k0mEU33UWdPSouFOJIXlfbiF62UwbAmePzHD9Ms73hir.Yw kiPjTzJeFhMS9T0tW27b9tUpQtedsw9qrNDgLrBY00CwLN6PIq5VZa9dhQU8I.NUGf_SZ7pyQErQ xhrx6JaEC_PNRwvQilRkjJZ_LoAjV2KcWuoEeTWrf3hbDIEIWQ7JP_L4fIDDbrcU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Tue, 17 Jul 2018 06:27:22 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp409.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 183b733193674b237cac0aae09e96821; Tue, 17 Jul 2018 06:27:21 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: head -r335782 (?) broke ci.freebsd.org's FreeBSD-head-amd64-gcc build (lib32 part of build) From: Mark Millard In-Reply-To: Date: Mon, 16 Jul 2018 23:27:19 -0700 Cc: Dimitry Andric , Bryan Drewery , svn-src-head@freebsd.org, FreeBSD Current Content-Transfer-Encoding: 7bit Message-Id: <9251BE92-A8CE-45E3-B4BF-706E7219321A@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> <65b19cc4-eaf0-13ed-43e6-9f04a1f7f196@FreeBSD.org> <49BF6569-96A9-4104-BDE6-8BB94C0D9626@yahoo.com> To: John Baldwin X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Tue, 17 Jul 2018 06:27:29 -0000 On 2018-Jul-1, at 6:34 AM, Mark Millard wrote: > My brain finally engaged for showing exactly what files are included > for the gcc builds: the .meta files include that information explicitly > (along with other files that are opened during the operation). > > amd64 is as I reported, just one header file from gcc: float.h . > > powerpc64 builds Lex/Lexer.cpp without defining __ALTIVEC__ and so > is not including . Building without __ALTIVEC__ might > be an error itself but would be a workaround for the altivec.h > file name aliasing vs. search-path problem. > > . . . Going in a different direction, what of the unchanged Makefile.inc1 code block: .if ${WANT_COMPILER_TYPE} == gcc || \ (defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc) # GCC requires -isystem and -L when using a cross-compiler. --sysroot # won't set header path and -L is used to ensure the base library path # is added before the port PREFIX library path. CD2CFLAGS+= -isystem ${XDDESTDIR}/usr/include -L${XDDESTDIR}/usr/lib # GCC requires -B to find /usr/lib/crti.o when using a cross-compiler # combined with --sysroot. CD2CFLAGS+= -B${XDDESTDIR}/usr/lib # Force using libc++ for external GCC. .if defined(X_COMPILER_TYPE) && \ ${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800 CD2CXXFLAGS+= -isystem ${XDDESTDIR}/usr/include/c++/v1 -std=c++11 \ -nostdinc++ .endif .endif Why is that pair of -isystem uses that gives the old search order okay? Or was the block just missed? (Similarly for other options listed above.) Note: Locally I've reverted the -r335782 changes in order for my use of devel/*-gcc as cross compilers to work where they used to (hopefully: still building), restoring the historical search order for the directories for now. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)