Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2015 23:24:56 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        "Simon J. Gerraty" <sjg@juniper.net>, FreeBSD Current <freebsd-current@FreeBSD.org>, Dimitry Andric <dim@FreeBSD.org>
Subject:   Re: toolchain target
Message-ID:  <9B006F14-BE36-4981-941D-41F5F4970B40@gmail.com>
In-Reply-To: <55826399.3020801@FreeBSD.org>
References:  <5581DBD0.3020004@FreeBSD.org> <5581E324.8030000@FreeBSD.org> <22196.1434583597@chaos> <55826399.3020801@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Jun 17, 2015, at 23:22, Andriy Gapon <avg@FreeBSD.org> wrote:

> On 18/06/2015 02:26, Simon J. Gerraty wrote:
>> Andriy Gapon <avg@FreeBSD.org> wrote:
>>>> Seems like there is some problem with 'toolchain' target in the latest head.
>>>> Output of running `make toolchain TARGET=i386` on amd64 system can be found
>>>> here: http://dpaste.com/3RD3C4V
>>>> 
>>> 
>>> AFAICS, it still worked as of r283188.
>> 
>> There has been a clang update since then.
>> 
>> I just did make -j12 toolchain TARGET=i386 ok
>> do you have anything interesting in /etc/make.conf?
> 
> Thank you for the hint -- __MAKE_CONF=/dev/null SRC_CONF=/dev/null fix the problem.
> 
> Now I am trying to figure out what the problem is.
> 
> My make.conf:
> .if defined(CC)
> .if ${CC} == gcc
> CPUTYPE?=k8-sse3
> .else
> CPUTYPE?=amdfam10
> .endif
> .endif
> CFLAGS+= -O2 -fno-strict-aliasing -pipe
> CFLAGS+= -fno-omit-frame-pointer
> CXXFLAGS+= -O2 -fno-strict-aliasing -pipe
> 
> And src.conf:
> WITH_DEBUG_FILES=yes
> WITH_CTF=yes
> WITHOUT_INET6=YES
> WITHOUT_PROFILE=YES
> WITHOUT_FORTRAN=YES
> WITHOUT_I4B=YES
> WITHOUT_IPFILTER=YES
> WITHOUT_ATM=YES
> WITHOUT_IPX=YES
> WITHOUT_LPR=yes
> WITHOUT_ZONEINFO=yes
> MALLOC_PRODUCTION=yes
> LOADER_BZIP2_SUPPORT=yes
> LOADER_FIREWIRE_SUPPORT=yes
> 
> 
> Looks like my rather innocent manipulations of CFLAGS could be causing the problem.
> Without my make.conf:
> mkdep -f .depend -a
> -I/usr/devel/svn2/head/lib/clang/libllvmsupport/../../../contrib/llvm/include
> -I/usr/devel/svn2/head/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include
> -I/usr/devel/svn2/head/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I.
> -I/usr/devel/svn2/head/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include
> -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
> -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.0\"
> -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"\"
> -I/usr/obj/usr/devel/svn2/head/tmp/legacy/usr/include  -std=c++11
> -stdlib=libc++
> /usr/devel/svn2/head/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp
> ...
> 
> With my make.conf:
> mkdep -f .depend -a      -std=c++11  -stdlib=libc++
> /usr/devel/svn2/head/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp
> ...
> 
> All the preprocessor flags (-I, -D) are gone.

Oh really…? This is going to break a _lot_ of peoples’ custom make.confs :(...

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJVgmQ5AAoJEMZr5QU6S73eGq0H/2pCn6t1sYpIEI0RLLRrqBZc
uWjNDM4TuFLE1qxXUmYBeiWsCYWHgT9wPyhpL18+4W0+xqogd2M5JKf3aM9mExEE
alXGV6T9TAV6zKZ+Rub59TOZpkUnnU7pHXwVFwV5kmern3/G3B+EcLb69ygekl2x
FlIkIqHK+5E81INMmL+RkGyPSdKpn8wdRGneUjegXm50+JgaYKYtriG5gDodMQi6
a5VQr4nd7/OkOSZcwpQRxXPSGHoM0/QfWBVP/IBUFrdN3JQ4qsyQ5wzts4TuVm24
J6tnkgvpWJKQNPjncTwWpNStxmxa9chMcZ1BG6+v7nN39t/GoDB35zhg+33/1Cc=
=VI++
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9B006F14-BE36-4981-941D-41F5F4970B40>