From owner-svn-src-head@freebsd.org Fri May 27 19:09:47 2016 Return-Path: Delivered-To: svn-src-head@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 B3AD7B4C100; Fri, 27 May 2016 19:09:47 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B668181E; Fri, 27 May 2016 19:09:47 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi0-x232.google.com with SMTP id w184so181368500oiw.2; Fri, 27 May 2016 12:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=7rgKm48xadSRbTGon4g85ZOgGzW/a6w1+vnVec7KAss=; b=eROuDKNG5l+KI8QqLDX2QgSBlKlu2AG9SjCBAhQgYWdrIyw75TstZtLLWSniPXSW6j jEkeRHNBecfjUfdP6tni82yy2qFpk9/2UIT7flv94QYvVUnFkd+/nbUjEqtr9Xh+el55 MG1KgSrxJNfv+BVWr3eb5ioCZmrep5Zg1vTUR9vIQn1hO2wsFlEiewDjoBYmRhvrfcer lobGtqAtto4A7yJh2pZZ8L1N5vTRFI3zR1NZ45hWLXUUzrdz8m3p7N6LSGJtdeuHCOUQ qevnXTVElV5tZHMuWFhbO7Z5HHwMdKoHmMTVdzisGiOBTajBTuwwP47ZmXr7QtjNyLSP N7og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=7rgKm48xadSRbTGon4g85ZOgGzW/a6w1+vnVec7KAss=; b=WBrf4kv8GkZBqbK1mLnfjMUmfnuk8DWcsXDYuIkF61Xa1pQxQr/UVW9HREAOPhSN/b vxDxsOoTxcgB8NLjdbKUg+eGWZJq/mi2FGEdnMZN7DEjD7cUq//G7gH7Lgu9fGkO+vfw wzFQd6//wxGP82mL7ZwK3KKhv4qcdbxvJ13EBBxCCfoYSk71fY6YfcGMaaIvmtZkB6wj gPOMUoZWlke6prgij70yK4a1VNyPmP7zGlX7bLMUwY6tGcjmBFKRvZIhB9rclFvbTbxk ltHYFfxkNLNr/DM1zTxz5gxyYiMPNyGJjLL8gFq0qZR2QY7/pGr5CiE/hKq++Sl3RMKt bXYw== X-Gm-Message-State: ALyK8tKGKf9KsTh++21EXvZQdWMG4Hfu+ExdbaJ3/fB5EciOazN8jguBBni/qWTUr1gsUQdQ3rYSxioUL57b2w== MIME-Version: 1.0 X-Received: by 10.202.224.85 with SMTP id x82mr6663590oig.176.1464376186729; Fri, 27 May 2016 12:09:46 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.202.4.200 with HTTP; Fri, 27 May 2016 12:09:46 -0700 (PDT) In-Reply-To: References: <201605261852.u4QIqn5w073953@repo.freebsd.org> Date: Fri, 27 May 2016 13:09:46 -0600 X-Google-Sender-Auth: Zw-Qx4eUfXpNB5aC0tmd8dje5WA 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... From: Alan Somers To: Dimitry Andric Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Fri, 27 May 2016 19:09:47 -0000 On Fri, May 27, 2016 at 10:19 AM, Dimitry Andric wrote: > On 27 May 2016, at 18:01, Alan Somers wrote: >> >> On Fri, May 27, 2016 at 9:42 AM, Dimitry Andric wrote: > ... >>> My guess is that either ${MAKEOBJDIRPREFIX}/usr/include/c++/v1 needs 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=i686 -mmmx -msse -msse2 >> -L/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/lib32 >> --sysroot=/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/usr/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-value >> -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.o >> FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on >> 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=gdb >> -coverage-file /scratch/tmp/asomers/obj/home/asomers/freebsd/head/world32/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/usr/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-equality >> -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/asomers/freebsd/head/lib/libdevdctl >> -ferror-limit 19 -fmessage-length 80 -stack-protector 2 >> -fobjc-runtime=gnustep -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/include" >> #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/../lib/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/usr/include > > because that forces this path to become before any auto-detected system > include directory. Note that this option is not needed, since the other > option: > > --sysroot=/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32 > > is already taking care of adding the right include directories. It even > warns about the duplicate directory: > > ignoring duplicate directory > "/scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include" > > So what happens if you delete the -isystem option and its argument? > > -Dimitry > If I take out -isystem, it compiles successfully.