From owner-svn-src-all@freebsd.org Fri May 27 16:01:15 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 64074B4CC2A; Fri, 27 May 2016 16:01:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (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 270E4196D; Fri, 27 May 2016 16:01:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi0-x22e.google.com with SMTP id j1so180401322oih.3; Fri, 27 May 2016 09:01:15 -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=CDqGLfKY2sE6EkevnDdxEFrWGLFc/1BP3twHpnOkAbU=; b=XJv6xfeW8CDO3BQkt35MjWSCsTMcRwCMTuFNT1mrW7HHiHR26gsEHk1LbeARcMa2WT wp1c5MHddTB6eX51G1hfyccBNOyvX6ehpPj78dAtgOHdHQbSDvkDgmD52OoBqu1li3G/ P3dnUhvK7umfWwJjhBZDfG2UcXrb8ruQ4yQYshbIdc40q2M4BV4bUlae1fFKv4AMM6R0 loKFhz2IDZtu3KZ16Bz4x6VaV9uzaEdmzWgV2pC5W3MaKmHMNpuodu8zpG13zMlULSEu 8p1Lc2f9D/xFWBI7suUxYGm70vkVHTuGm+ml83nOZ25RQHPBLhT6EiK2kdNASbkrFcnF Eq1w== 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=CDqGLfKY2sE6EkevnDdxEFrWGLFc/1BP3twHpnOkAbU=; b=Tqaw41VqOhx0K4141NmdPEfnaXK+QbSuWDMpceBw6+7TGyot/mrPItSFRjUYNyCpS8 mGdk7hlcPC/f0Mq3X8kdsLS70YR3jehmqqdLr8PSkRBBG1wJ5j1HU6i7+F4ULTHDlAjy EylC8fs07ev099b/0vOKIhJdHXj82r+d2zSX2JpGdVziOnEFywSPwLVHsOrWZEBGlYny VsqtT0C7HPlHLIvUJ5Ds9ofSMGbgwMpvEPNM6Yv6y8EX8JECd2Gk8u4VNYRAIo+p4cDD +gtMCye6YbgEzQld1n3eVabMqAXzVCTwVI23ye1CL6UnMty9WBJNN5qNbiL5vzXk1I6N Polg== X-Gm-Message-State: ALyK8tJq0tN+bpmsKAtaRc+x/c9v6WFx1JOUVzxLMyo2GZtF/0MhDQ5yDvFoUG6b1/7wjXUVIcUZGYxZ7rOINw== MIME-Version: 1.0 X-Received: by 10.157.27.173 with SMTP id z42mr10221117otd.192.1464364874292; Fri, 27 May 2016 09:01:14 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.202.4.200 with HTTP; Fri, 27 May 2016 09:01:14 -0700 (PDT) In-Reply-To: References: <201605261852.u4QIqn5w073953@repo.freebsd.org> Date: Fri, 27 May 2016 10:01:14 -0600 X-Google-Sender-Auth: 7OSJTAMgCsU7zsBD66mh1y6JsHo 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-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 16:01:15 -0000 On Fri, May 27, 2016 at 9:42 AM, Dimitry Andric wrote: > On 27 May 2016, at 17:32, Alan Somers wrote: >> >> On Fri, May 27, 2016 at 9:28 AM, Dimitry Andric wrote: >>> On 27 May 2016, at 16:49, Alan Somers wrote: >>>> >>>> I think this change is breaking the build of C++ applications. Below >>>> is a snippet of my amd64 buildworld, with the changes in D6564. it >>>> built fine a few days ago. > ... >>> It shouldn't, it passed a full make universe. Do you have any special >>> settings in either make.conf or src.conf? Or something other about your >>> build environment that is non-standard? > ... >> >> Ahh, but when you ran "make universe" there were not yet any C++ >> things in lib/. My patch adds a C++ library, and it fails when >> building the 32-bit version. Here's the actual command that failed. >> I don't know why it failed, because >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/stddef.h >> _does_ exist. >> >> c++ -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 >> ... >> --- all_subdir_lib/libdevdctl --- >> In file included from /home/asomers/freebsd/head/lib/libdevdctl/event.cc:55: >> In file included from >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/iostream:38: >> In file included from >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/ios:216: >> In file included from >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/__locale:15: >> In file included from >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/string:439: >> In file included from >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/algorithm:624: >> In file included from >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/initializer_list:47: >> /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/cstddef:43:15: >> fatal error: 'stddef.h' file not found >> #include_next >> ^ > > I think what happens is the same what happened with some ports. For > various reasons, the include path needs to be modified, and this causes > the header lookup to fail, when using #include_next<>. > > Can you run the above command manually, but adding -v so it will print > out the full include paths it searches, and the order? > > 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. In file included from /home/asomers/freebsd/head/lib/libdevdctl/consumer.cc:50: In file included from /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/list:173: In file included from /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/memory:599: In file included from /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/type_traits:363: /scratch/tmp/asomers/obj/home/asomers/freebsd/head/lib32/usr/include/c++/v1/cstddef:43:15: fatal error: 'stddef.h' file not found #include_next ^ 1 error generated. -Alan