From nobody@FreeBSD.org  Tue Dec 20 07:38:59 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6FF71106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2011 07:38:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 5DB078FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2011 07:38:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBK7cxrT018270
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2011 07:38:59 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBK7cxr0018269;
	Tue, 20 Dec 2011 07:38:59 GMT
	(envelope-from nobody)
Message-Id: <201112200738.pBK7cxr0018269@red.freebsd.org>
Date: Tue, 20 Dec 2011 07:38:59 GMT
From: Oliver Hartmann <ohartman@mail.zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS=      YES: fails to build: 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163469
>Category:       conf
>Synopsis:       FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS=      YES: fails to build:
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 20 07:40:09 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri May  4 20:00:38 UTC 2012
>Originator:     Oliver Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
>Description:
On FreeBSD 10.0-CURRENT/amd64, CLANG build, moist recent sources, setting WITH_LIBCPLUSPLUS= in /etc/src.conf results in a build-error shown below. This does not happen on FreeBSD 9.0/amd64 so far.


clang -fpic -DPIC  -O2 -fno-strict-aliasing -pipe -O3 -fno-strict-aliasing -pipe -march=native -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS  -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -DMALLOC_PRODUCTION -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -c crypt_xdr.c -o crypt_xdr.So
building static c library
building shared library libc.so.7
building special pic c library
ranlib libc_pic.a
ranlib libc.a
sh /usr/src/tools/install.sh -C -o root -g wheel -m 444   libc.a /usr/obj/usr/src/tmp/usr/lib
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  be_BY.UTF-8.cat  /usr/obj/usr/src/tmp/usr/share/nls/be_BY.UTF-8/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  ca_ES.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/ca_ES.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  de_DE.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/de_DE.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -s -o root -g wheel -m 444   -S  libc.so.7 /usr/obj/usr/src/tmp/lib
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  el_GR.ISO8859-7.cat  /usr/obj/usr/src/tmp/usr/share/nls/el_GR.ISO8859-7/libc.cat
ln -fs /usr/obj/usr/src/tmp/lib/libc.so.7  /usr/obj/usr/src/tmp/usr/lib/libc.so
sh /usr/src/tools/install.sh -o root -g wheel -m 444   libc_pic.a /usr/obj/usr/src/tmp/usr/lib
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  es_ES.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/es_ES.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  fi_FI.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/fi_FI.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  fr_FR.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/fr_FR.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  gl_ES.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/gl_ES.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  hu_HU.ISO8859-2.cat  /usr/obj/usr/src/tmp/usr/share/nls/hu_HU.ISO8859-2/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  it_IT.ISO8859-15.cat  /usr/obj/usr/src/tmp/usr/share/nls/it_IT.ISO8859-15/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  ja_JP.UTF-8.cat  /usr/obj/usr/src/tmp/usr/share/nls/ja_JP.UTF-8/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  ja_JP.eucJP.cat  /usr/obj/usr/src/tmp/usr/share/nls/ja_JP.eucJP/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  ko_KR.UTF-8.cat  /usr/obj/usr/src/tmp/usr/share/nls/ko_KR.UTF-8/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  ko_KR.eucKR.cat  /usr/obj/usr/src/tmp/usr/share/nls/ko_KR.eucKR/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  nl_NL.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/nl_NL.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  mn_MN.UTF-8.cat  /usr/obj/usr/src/tmp/usr/share/nls/mn_MN.UTF-8/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  no_NO.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/no_NO.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  pl_PL.ISO8859-2.cat  /usr/obj/usr/src/tmp/usr/share/nls/pl_PL.ISO8859-2/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  ru_RU.KOI8-R.cat  /usr/obj/usr/src/tmp/usr/share/nls/ru_RU.KOI8-R/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  pt_BR.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/pt_BR.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  sk_SK.ISO8859-2.cat  /usr/obj/usr/src/tmp/usr/share/nls/sk_SK.ISO8859-2/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  sv_SE.ISO8859-1.cat  /usr/obj/usr/src/tmp/usr/share/nls/sv_SE.ISO8859-1/libc.cat
sh /usr/src/tools/install.sh -o root  -g wheel -m 444  uk_UA.UTF-8.cat  /usr/obj/usr/src/tmp/usr/share/nls/uk_UA.UTF-8/libc.cat
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error

>How-To-Repeat:
Build FreeBSD 10.0-CURRENT/amd64 with /etc/src.conf set to

WITH_CLANG=             YES
WITH_CLANG_EXTRAS=      YES
#
WITH_BIND_LIBS=         YES
WITH_BIND_SIGCHASE=     YES
WITH_BIND_LARGE_FILE=   YES
#
WITH_IDEA=              YES
WITH_HESIOD=            YES
#
#WITH_ICONV=            YES
WITH_BSD_GREP=          YES
#
WITH_LIBCPLUSPLUS=      YES
#
#WITH_OFED=             YES

>Fix:


>Release-Note:
>Audit-Trail:

From: Yuri Pankov <yuri.pankov@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES:
 fails to build:
Date: Tue, 20 Dec 2011 11:45:57 +0400

 The log you posted is missing the actual error, i.e. try building
 without using make jobs (not specifying -jN).
 
 
 Yuri

From: Jan Beich <jbeich@tormail.net>
To: Oliver Hartmann <ohartman@mail.zedat.fu-berlin.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES: fails to build:
Date: Wed, 21 Dec 2011 02:18:41 +1100

 Does the actual error only happen during -jX?
 
 ref. http://docs.freebsd.org/cgi/mid.cgi?1RcCLJ-000MeI-MC

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: Jan Beich <jbeich@tormail.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES:
 fails to build:
Date: Wed, 21 Dec 2011 01:53:05 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig969EB881393A37319B396439
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 On 12/20/11 16:18, Jan Beich wrote:
 > Does the actual error only happen during -jX?
 >=20
 > ref. http://docs.freebsd.org/cgi/mid.cgi?1RcCLJ-000MeI-MC
 
 Yes, you're right. Compiling world without -jX does well even with the
 knob in question enabled. Any number >=3D 2 results in the mentioned erro=
 r
 at the same point.
 
 Oliver
 
 
 --------------enig969EB881393A37319B396439
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (FreeBSD)
 
 iQEcBAEBAgAGBQJO8S3xAAoJEOgBcD7A/5N8y0YH/Rn5XkDyEtJyHup8+fLZC4WU
 AUxHSzG2D250EookckcezBJOJ2n0mIRvtZFqC+L1mgJAjqGV9xwGobpVmThBkZfB
 38+AZEFpcfIlbLDZdXrNvHZPUC8jb6FSc+rvBRL8KS5ElivOK/EPq6ZlvSoZRyAM
 J+W3JuDZ1oxsDThKsRXqtDNwuIyY+305jETA8gBvt43g9qVBeRYf+iriIwg5u2Uu
 5AIqp5NUmUsU+zTxeKWSPZzRy8p+dpy9pnZWEJXbpqcZt3DvN/+wF3PpjkVYrM4M
 G2rID5iTuZtwgH3bfegFFt3Su6vjZsGXLyFq/dfb1PlAnsPOK6uWwDdRjgVuxeQ=
 =C/c9
 -----END PGP SIGNATURE-----
 
 --------------enig969EB881393A37319B396439--

From: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
To: bug-followup@FreeBSD.org, ohartman@mail.zedat.fu-berlin.de
Cc:  
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= 
     YES: fails to build:
Date: Sun, 25 Dec 2011 14:12:57 +0900

 This is a multi-part message in MIME format.
 --------------070006050400030105070006
 Content-Type: text/plain; charset=ISO-2022-JP
 Content-Transfer-Encoding: 7bit
 
 I wrote experimental patch over 3 weeks ago.
 but I forgot to report it.
 #the patch extracts to use 'svn diff Makefike.inc1' at yesterday.
 
 libcxxrt depends on c libraries,
 so the patch divide compilation c libraries and libcxxrt.
 
 
 
 --------------070006050400030105070006
 Content-Type: text/plain;
  name="libcplusplus.patch.txt"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="libcplusplus.patch.txt"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MsNyArMTMy
 NSw3IEBACiAuZW5kaWYKIC5lbmRmb3IKIAotLmZvciBfbGliIGluICR7X3N0YXJ0dXBfbGli
 c30gJHtfcHJlYnVpbGRfbGliczpObGliL2xpYnBhbX0gJHtfZ2VuZXJpY19saWJzfQorLmZv
 ciBfbGliIGluICR7X3N0YXJ0dXBfbGlic30gbGliL2xpYmN4eHJ0ICR7X3ByZWJ1aWxkX2xp
 YnM6TmxpYi9saWJwYW19ICR7X2dlbmVyaWNfbGlic30KICR7X2xpYn1fX0w6IC5QSE9OWQog
 LmlmIGV4aXN0cygkey5DVVJESVJ9LyR7X2xpYn0pCiAJJHtfK199QCR7RUNIT0RJUn0gIj09
 PT4gJHtfbGlifSAob2JqLGRlcGVuZCxhbGwsaW5zdGFsbCkiOyBcCkBAIC0xMzQ4LDYgKzEz
 NTAsNyBAQAogCiBfcHJlcmVxX2xpYnM6ICR7X3ByZXJlcV9saWJzOlMvJC9fX1BML30KIF9z
 dGFydHVwX2xpYnM6ICR7X3N0YXJ0dXBfbGliczpTLyQvX19ML30KK2xpYi9saWJjeHhydDog
 bGliL2xpYmN4eHJ0X19MCiBfcHJlYnVpbGRfbGliczogJHtfcHJlYnVpbGRfbGliczpTLyQv
 X19ML30KIF9nZW5lcmljX2xpYnM6ICR7X2dlbmVyaWNfbGliczpTLyQvX19ML30KIAo=
 --------------070006050400030105070006--

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES:
 fails to build:
Date: Sun, 25 Dec 2011 13:13:53 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig8C7E32EF1818F84D713EF875
 Content-Type: text/plain; charset=ISO-2022-JP
 Content-Transfer-Encoding: quoted-printable
 
 On 12/25/11 06:12, Yamaya Takashi wrote:
 > I wrote experimental patch over 3 weeks ago.
 > but I forgot to report it.
 > #the patch extracts to use 'svn diff Makefike.inc1' at yesterday.
 >=20
 > libcxxrt depends on c libraries,
 > so the patch divide compilation c libraries and libcxxrt.
 >=20
 >=20
 
 Dear Yamaga Takashi san,
 
 without -JX building world, I can build the system with
 WITH_LIBCPLUSPLUS enabled. But it obviously can not be build with -JX,
 where X >=3D 2.
 
 Is this patch targetting this?
 
 Regards,
 Oliver
 
 
 --------------enig8C7E32EF1818F84D713EF875
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (FreeBSD)
 
 iQEcBAEBAgAGBQJO9xOBAAoJEOgBcD7A/5N8i8sH/35wmfgfZPeShULaIqmuxauT
 4QgnNbgbsVdjArcG/B4AllHX/I6TgQKpv0j2ElInF0xJx+hg4NhRtfq3Y5XLPvAb
 oBWZOPLtVppbTan51G1Q7aEq2j7PjmVc4qo33ZIsPwtryn3p/NQQ4/L/Df7Mnigy
 19+7XrFPj3N4fbYb4D4z2psDmqve5vRWXjrInvARdWbQNvF3COy/tm05F4gcdkxJ
 SkFquQikVGWDBpNG9drawlJmzZjcgXY9b1ZTN3jGbcz498HaxGSrhSRLaOCx/t6t
 y4DHQl4vVISV002d24Umt+B1bPWFNG5q+c4F1MWYDyO+Nn3KiDcIGqnynxBjVcY=
 =uXhW
 -----END PGP SIGNATURE-----
 
 --------------enig8C7E32EF1818F84D713EF875--

From: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
To: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES:
 fails to build:
Date: Sun, 25 Dec 2011 22:39:11 +0900

 On 2011/12/25 21:13, O. Hartmann wrote:
 > On 12/25/11 06:12, Yamaya Takashi wrote:
 >> I wrote experimental patch over 3 weeks ago.
 >> but I forgot to report it.
 >> #the patch extracts to use 'svn diff Makefike.inc1' at yesterday.
 >>
 >> libcxxrt depends on c libraries,
 >> so the patch divide compilation c libraries and libcxxrt.
 >>
 >>
 > Dear Yamaga Takashi san,
 >
 > without -JX building world, I can build the system with
 > WITH_LIBCPLUSPLUS enabled. But it obviously can not be build with -JX,
 > where X >= 2.
 >
 > Is this patch targetting this?
 >
 > Regards,
 > Oliver
 >
 Yes.
 'make -j8 buildworld kernel' succeed at phenomII X4 home PC.
 'make -j24 buildworld kernel' succeed at corei7 9xx PC.
 

From: "Hartmann, O." <ohartman@zedat.fu-berlin.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/163469: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= 
     YES: fails to build:
Date: Fri, 04 May 2012 21:56:14 +0200

 Problem gone here with most recent FreeBSD 10.0-CURRENT/amd64 r235090.
 
 Could I request for close?
 
 Regards,
 
 O. Hartmann
>Unformatted:
