From owner-svn-src-all@FreeBSD.ORG Fri Apr 19 17:43:53 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 79593ECB; Fri, 19 Apr 2013 17:43:53 +0000 (UTC) (envelope-from dim@freebsd.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id 235305EB; Fri, 19 Apr 2013 15:57:37 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::a412:6300:63d9:cff8] (unknown [IPv6:2001:7b8:3a7:0:a412:6300:63d9:cff8]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A48015C44; Fri, 19 Apr 2013 17:57:34 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: svn commit: r249484 - head/lib From: Dimitry Andric In-Reply-To: <647B67E8-152A-47A8-89E4-E15075D20992@freebsd.org> Date: Fri, 19 Apr 2013 17:57:11 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201304141913.r3EJDqPI095965@svn.freebsd.org> <516D54F5.4010501@FreeBSD.org> <2A0FC59F-E043-4B4E-BABE-E16C6A1FBF5C@freebsd.org> <475555FA-DF6A-42FA-990D-4224ECAEAE52@FreeBSD.org> <516E900B.9090300@FreeBSD.org> <1FEABB1B-ADDE-412A-9D40-F9FB2822B654@freebsd.org> <647B67E8-152A-47A8-89E4-E15075D20992@freebsd.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1503) Cc: Ed Schouten , src-committers@freebsd.org, Juli Mallett , svn-src-all@freebsd.org, Brooks Davis , svn-src-head@freebsd.org, Tijl Coosemans X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Apr 2013 17:43:53 -0000 On Apr 19, 2013, at 06:50, Tim Kientzle wrote: > On Apr 17, 2013, at 10:33 AM, Dimitry Andric wrote: >=20 >> In any case, the layout has been like this since the initial clangbsd >> import, and I never saw any reason to change it. Maybe Ed can tell a >> bit more, since he seems to have done the initial infrastructure = setup. >=20 > FreeBSD/ARM just switched from GCC to Clang, which is > why this just got noticed. U-Boot is used quite heavily for > FreeBSD/ARM (and MIPS and PowerPC as well, I believe). >=20 > Here are the options I see for getting > cc -print-file-name=3Dinclude > to work again: >=20 > * Hack clang to handle -print-file-name=3Dinclude specially. > I did this for GCC already, but I'm not thrilled about it. >=20 > * Configure clang differently so that this option works. >=20 > * Symlink /usr/include to appear somewhere that clang expects. >=20 > * Rearrange our directory layout slightly to match clang's = expectations. You seem to have left out the most obvious one: * Fixing U-Boot's configuration script(s) so they don't depend on = undocumented compiler options. I don't understand why we would want to go through all this trouble, = just for telling U-Boot where a bunch of headers are located? What = happened to configure scripts with options, they did not disappear = overnight, I hope?