From owner-svn-src-all@freebsd.org Fri May 27 23:04:04 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7E36B4DE29; Fri, 27 May 2016 23:04:04 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A3D6F143B; Fri, 27 May 2016 23:04:04 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 92395150D; Fri, 27 May 2016 23:04:04 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 4372C1C75E; Fri, 27 May 2016 23:04:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id WNoLc-9psR8D; Fri, 27 May 2016 23:03:57 +0000 (UTC) Subject: Re: svn commit: r300770 - in head: . contrib/libc++/include contrib/libc++/include/experimental contrib/libc++/include/ext contrib/libc++/src contrib/libc++/src/include contrib/libc++/src/support lib/l... DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com EAFBC1C755 To: Alan Somers , Dimitry Andric References: <201605261852.u4QIqn5w073953@repo.freebsd.org> <403f6f39-85e2-aa5f-0ca1-beba256a88e8@FreeBSD.org> Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: Date: Fri, 27 May 2016 16:04:00 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <403f6f39-85e2-aa5f-0ca1-beba256a88e8@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OBWVEbi9TJX1QP2oH4r00ahIiULwEM4xt" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 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, 27 May 2016 23:04:04 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --OBWVEbi9TJX1QP2oH4r00ahIiULwEM4xt Content-Type: multipart/mixed; boundary="gpt0xPkiXTuESU1pRCPOi5R6pBGcfpgpC" From: Bryan Drewery To: Alan Somers , Dimitry Andric Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Message-ID: Subject: Re: svn commit: r300770 - in head: . contrib/libc++/include contrib/libc++/include/experimental contrib/libc++/include/ext contrib/libc++/src contrib/libc++/src/include contrib/libc++/src/support lib/l... References: <201605261852.u4QIqn5w073953@repo.freebsd.org> <403f6f39-85e2-aa5f-0ca1-beba256a88e8@FreeBSD.org> In-Reply-To: <403f6f39-85e2-aa5f-0ca1-beba256a88e8@FreeBSD.org> --gpt0xPkiXTuESU1pRCPOi5R6pBGcfpgpC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 5/27/2016 12:18 PM, Bryan Drewery wrote: > On 5/27/2016 12:09 PM, Alan Somers wrote: >> On Fri, May 27, 2016 at 10:19 AM, Dimitry Andric wro= te: >>> On 27 May 2016, at 18:01, Alan Somers wrote: >>>> >>>> On Fri, May 27, 2016 at 9:42 AM, Dimitry Andric wr= ote: >>> ... >>>>> My guess is that either ${MAKEOBJDIRPREFIX}/usr/include/c++/v1 need= s to >>>>> be added to the C++ include path, or some other path in the list is= >>>>> missing, at least for C++ compilation. >>>>> >>>>> -Dimitry >>>> >>>> Here it is. It looks right to me; >>>> $MAKEOBJDIRPREFIX/home/asomers/freebsd/head/lib32/usr/include/c++/v1= >>>> is in the path, and stddef.h exists in that directory. >>>> >>>> $ c++ -v -m32 -DCOMPAT_32BIT -march=3Di686 -mmmx -msse -msse2 >>>> -L/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/lib32= >>>> --sysroot=3D/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32= >>>> -B/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/lib32= >>>> -isystem /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/us= r/include >>>> -O2 -pipe -MD -MF.depend.consumer.o -MTconsumer.o >>>> -fstack-protector-strong -Wsystem-headers -Werror -Wall >>>> -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith >>>> -Wno-uninitialized -Wno-empty-body -Wno-string-plus-int >>>> -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-val= ue >>>> -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion >>>> -Wno-unused-local-typedef -Qunused-arguments -Wno-c++11-extensions >>>> -c /home/asomers/freebsd/head/lib/libdevdctl/consumer.cc -o consumer= =2Eo >>>> FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based o= n >>>> LLVM 3.8.0) >>>> Target: i386-unknown-freebsd11.0 >>>> Thread model: posix >>>> InstalledDir: /scratch/tmp/asomers/obj/home/asomers/freebsd/head/tmp= /usr/bin >>>> "/scratch/tmp/asomers/obj/home/asomers/freebsd/head/tmp/usr/bin/c++"= >>>> -cc1 -triple i386-unknown-freebsd11.0 -emit-obj -disable-free >>>> -main-file-name consumer.cc -mrelocation-model static -mthread-model= >>>> posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases >>>> -target-cpu i686 -target-feature +mmx -target-feature +sse >>>> -target-feature +sse2 -v -dwarf-column-info -debugger-tuning=3Dgdb >>>> -coverage-file /scratch/tmp/asomers/obj/home/asomers/freebsd/head/wo= rld32/home/asomers/freebsd/head/lib/libdevdctl/consumer.o >>>> -resource-dir /scratch/tmp/asomers/obj/home/asomers/freebsd/head/tmp= /usr/bin/../lib/clang/3.8.0 >>>> -dependency-file .depend.consumer.o -sys-header-deps -MT consumer.o >>>> -isystem /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/us= r/include >>>> -D COMPAT_32BIT -isysroot >>>> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32 >>>> -internal-isystem >>>> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include= /c++/v1 >>>> -O2 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W >>>> -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized >>>> -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable >>>> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equalit= y >>>> -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef >>>> -Wno-c++11-extensions -fdeprecated-macro -fdebug-compilation-dir >>>> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/world32/home/asom= ers/freebsd/head/lib/libdevdctl >>>> -ferror-limit 19 -fmessage-length 80 -stack-protector 2 >>>> -fobjc-runtime=3Dgnustep -fcxx-exceptions -fexceptions >>>> -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops >>>> -vectorize-slp -o consumer.o -x c++ >>>> /home/asomers/freebsd/head/lib/libdevdctl/consumer.cc >>>> clang -cc1 version 3.8.0 based upon LLVM 3.8.0 default target >>>> x86_64-unknown-freebsd11.0 >>>> ignoring duplicate directory >>>> "/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/includ= e" >>>> #include "..." search starts here: >>>> #include <...> search starts here: >>>> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include= >>>> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include= /c++/v1 >>>> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/tmp/usr/bin/../li= b/clang/3.8.0/include >>>> End of search list. >>> >>> The problem appears to be that the .../usr/include/c++/v1 directory >>> should come *before* the .../usr/include directory, otherwise the >>> #include_next<> logic will not work as expected. >>> >>> This is most likely caused by the option: >>> >>> -isystem /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/u= sr/include >>> >>> because that forces this path to become before any auto-detected syst= em >>> include directory. Note that this option is not needed, since the ot= her >>> option: >>> >>> --sysroot=3D/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib3= 2 >>> >>> is already taking care of adding the right include directories. It e= ven >>> warns about the duplicate directory: >>> >>> ignoring duplicate directory >>> "/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/inclu= de" >>> >>> So what happens if you delete the -isystem option and its argument? >>> >>> -Dimitry >>> >> >> If I take out -isystem, it compiles successfully. >> >=20 > I'm looking at this more now. I added that -isystem in, but it should > have only been there for external GCC usage from first glance. >=20 It should all be fixed now after r300886. --=20 Regards, Bryan Drewery --gpt0xPkiXTuESU1pRCPOi5R6pBGcfpgpC-- --OBWVEbi9TJX1QP2oH4r00ahIiULwEM4xt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXSNJgAAoJEDXXcbtuRpfPTJQIAMDz7v/rUf4SuxAyEBlsLqj0 RJEpnJdNB+GfIUNaZJvBUvrruG33J9Ddj0rV8/fmdC8lrLOh61R8jfAWmYYtZVcv Sih+8z3ckBJecVpmoALr0JVVtm4nc5OrMgmXW8mtYyty558JJQ5AXI66ePuJEFHD Ps6Sp0hdBghvGIRsWofS/tlcyjjoZj39YHTdSZ/oPVex8su/s/xzGUjtwAUYGxGe Q9GP0GHMUcOeKymj+OY5jgxBqYv6TgOpXnYoKs9NEa6elgRVGyetfDMWm2YQliKL H11l6IspJovYMoFvbvxhweb5hhUzKE46TSzRX3YsrfdpD2oBOcWPyg2V1F5iVP4= =1XgX -----END PGP SIGNATURE----- --OBWVEbi9TJX1QP2oH4r00ahIiULwEM4xt--