Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bin/178203: clang not properly sourcing headers in buildworld when WITH_CLANG_IS_CC is set

1 view
Skip to first unread message

Garrett Cooper

unread,
Apr 27, 2013, 4:04:09 PM4/27/13
to

>Number: 178203
>Category: bin
>Synopsis: clang not properly sourcing headers in buildworld when WITH_CLANG_IS_CC is set
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 27 20:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Garrett Cooper
>Release: 10-CURRENT
>Organization:
EMC Isilon
>Environment:
FreeBSD fuji-current.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r+eabe039: Wed Apr 24 09:56:41 PDT 2013 ro...@fuji-current.local:/usr/obj/usr/src/sys/FUJI i386
>Description:
Recently decided to build a system with WITH_ICONV= support on in src.conf and it failed because it wasn't trying to pick up iconv.h from ${MAKEOBJDIRPREFIX}, but instead from the build host when building libc, which is wrong for multiple reasons.

clang needs to be fixed to pick up headers from ${MAKEOBJDIRPREFIX}.
>How-To-Repeat:
make buildworld -DWITH_CLANG -DWITH_CLANG_IS_CC -DWITH_ICONV
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"

Dimitry Andric

unread,
Apr 27, 2013, 4:30:01 PM4/27/13
to
The following reply was made to PR bin/178203; it has been noted by GNATS.

From: Dimitry Andric <d...@FreeBSD.org>
To: bug-fo...@FreeBSD.org,
yaneu...@gmail.com
Cc:
Subject: Re: bin/178203: clang not properly sourcing headers in buildworld when WITH_CLANG_IS_CC is set
Date: Sat, 27 Apr 2013 22:22:29 +0200

Which stage(s) of buildworld do you mean? If you mean stages 1 through =
3, then this is working as designed: the initial stages use headers and =
libraries from the host system. Stages 4 and 5 use headers from =
${WORLDTMP} (usually /usr/obj/usr/src/tmp).

To investigate your issue, can you please post a (compressed) copy of a =
log of such a buildworld session? And try to point out where any errors =
and/or problematic compilation commands occur.

Also, exact copies of of your make.conf and src.conf are required, plus =
all command line flags and environment variables you are using for your =
buildworld session.

P.S.: WITH_CLANG has always been enabled, and WITH_CLANG_IS_CC is =
default since a few months, so there is no need to specify these =
settings explicitly anymore.
0 new messages