Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2013 12:00:00 -0500
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Andreas Tobler <andreast@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, Brooks Davis <brooks@FreeBSD.org>, src-committers@FreeBSD.org
Subject:   Re: svn commit: r250659 - in head: . share/mk tools/build/options tools/tools/makeroot
Message-ID:  <20130521170000.GC12757@lor.one-eyed-alien.net>
In-Reply-To: <519A84DD.8030804@FreeBSD.org>
References:  <201305151430.r4FEU31J061480@svn.freebsd.org> <51955849.4020503@FreeBSD.org> <20130520195114.GE2630@lor.one-eyed-alien.net> <519A80A7.8080905@FreeBSD.org> <20130520201006.GG2630@lor.one-eyed-alien.net> <519A84DD.8030804@FreeBSD.org>

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

--St7VIuEGZ6dlpu13
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 20, 2013 at 10:17:33PM +0200, Andreas Tobler wrote:
> On 20.05.13 22:10, Brooks Davis wrote:
> > On Mon, May 20, 2013 at 09:59:35PM +0200, Andreas Tobler wrote:
> >> On 20.05.13 21:51, Brooks Davis wrote:
> >>> On Fri, May 17, 2013 at 12:06:01AM +0200, Andreas Tobler wrote:
> >>>> On 15.05.13 16:30, Brooks Davis wrote:
> >>>>> Author: brooks
> >>>>> Date: Wed May 15 14:30:03 2013
> >>>>> New Revision: 250659
> >>>>> URL: http://svnweb.freebsd.org/changeset/base/250659
> >>>>>
> >>>>> Log:
> >>>>>   Add support for an external cross compiler.  The cross compiler is
> >>>>>   specified by passing the XCC, XCXX, and XCPP variables (correspon=
ding to
> >>>>>   CC, CXX, and CPP) to buildworld/buildkernel.  The compiler must b=
e clang
> >>>>>   or be configured to target the appropriate architecture.
> >>>>>  =20
> >>>>>   To speed build times, if XCC is an absolute path or
> >>>>>   WITHOUT_CROSS_COMPILER is defined then no cross compiler will be =
built
> >>>>>   during the cross-tools stage.
> >>>>>  =20
> >>>>>   Limited documentation of this feature can currently be found at:
> >>>>>  =20
> >>>>>   https://wiki.freebsd.org/ExternalToolchain
> >>>>>  =20
> >>>>>   This functionality should be considered experimental and is subje=
ct to
> >>>>>   change without notice.
> >>>>>  =20
> >>>>>   Sponsored by:	DARPA, AFRL
> >>>>>   Discussed with:	imp, sjg
> >>>>
> >>>> I had to revert this commit to be able to build world and kernel with
> >>>> WITHOUT_CLANG_IS_CC in /etc/src.conf
> >>>>
> >>>> It did not find the headers (like math.h) when building the 32-bit p=
art
> >>>> on amd64.
> >>>
> >>> I'll need more information to do any useful debugging.  How is the ho=
st
> >>> configured?  If it's not 100% stock, I need to know what WITH/WITHOUT
> >>> options were set to build it.  Are you setting any options other than
> >>> WITHOUT_CLANG_IS_CC during this build?
> >>
> >> Source is svn -CURRENT. There is no other option set than
> >> WITHOUT_CLANG_IS_CC. Beside I use MALLOC_PRODUCTION=3D1
> >=20
> > Is /usr/bin/cc gcc or clang?
>=20
> /usr/bin/cc  -v
> Using built-in specs.
> Target: amd64-undermydesk-freebsd
> Configured with: FreeBSD/amd64 system compiler
> Thread model: posix
> gcc version 4.2.1 20070831 patched [FreeBSD]
>=20
> > Just to be sure.  Are you setting CC anywhere?
> >=20
> >> This happens on both 32-capable targets, amd64 and powerpc64.
> >>
> >> I figured that there are at least three headers 'missing' so far in
> >> src/lib32/usr/include:
> >> - math.h
> >> - fenv.h
> >> - libutil.h
> >>
> >> If I manually copy them to this location I can continue building until
> >> /usr/bin/ld complains about not being configured for sysroots.
> >> I just restarted the whole worldbuild again with the above mentionend
> >> headers in place.
> >=20
> > Hmm, this is really weird.  /usr/bin/ld should never run after the
> > bootstrap phase unless you actually use the X* variables.
>=20
> Well, it might be that I did something in a hurry, that's why I
> restarted the whole build.
> What I did, I cleaned the whole obj dir and did a 'make build32' in
> /usr/src (to save some time), then I got the exact same failures as when
> I started from scratch. Now I tried to find all the headers which the
> compiler was complaining about, copied them to
> /usr/obj/****/src/lib32/usr/include, finished the compilation stage and
> at the linker stage 'ld' complained.
>=20
> Now I'm waiting for the build from beginning with copied headers to see
> what happens.

The problem seems to be that clang and gcc don't agree about the meaning
of -isystem and --sysroot.  I've committed a change that I belive
restores the status quo.

-- Brooks

--St7VIuEGZ6dlpu13
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iD8DBQFRm6gPXY6L6fI4GtQRApTJAKDbFoVDMhPkLeQA6P98BfYkfgx3UwCgruXu
bM4vaNZ5CwdcsMraTqEMLFw=
=UaWU
-----END PGP SIGNATURE-----

--St7VIuEGZ6dlpu13--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130521170000.GC12757>