Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2014 15:01:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 196193] New: WITHOUT_CROSS_COMPILER=true use system header files instead of those from the build root
Message-ID:  <bug-196193-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196193

            Bug ID: 196193
           Summary: WITHOUT_CROSS_COMPILER=true use system header files
                    instead of those from the build root
           Product: Base System
           Version: 10.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: philippe.michel7@sfr.fr

If WITHOUT_CROSS_COMPILER is false, a clang is built with 
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\", world is built with it and
everything goes well.

With this flag set to true, a clang is built with -DDEFAULT_SYSROOT=\"\" and
buildword uses it, using for instance the system includes instead of those from
/usr/src, and fails when new include files appear in the source tree.

I didn't investigate if this compiler is a misconfigured first stage one or
already the final one, but in either case there is a problem since even if it
is the second case and this is a feature, it is a much more aggressive shortcut
than what src.conf man page suggests, with serious limitations.


This is the underlying cause of another PR I opened as misc/195503 and may well
be the cause of bin/182170 as well (at least in the case of the me-too comment
there).

-- 
You are receiving this mail because:
You are the assignee for the bug.



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