Bug 163469 - FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES: fails to build:
Summary: FreeBSD 10.0-CURRENT/CLANG: WITH_LIBCPLUSPLUS= YES: fails to build:
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 07:40 UTC by O. Hartmann
Modified: 2014-06-03 12:56 UTC (History)
1 user (show)

See Also:


Attachments
libcplusplus.patch.txt (1.31 KB, text/plain)
2011-12-25 05:12 UTC, yamayan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2011-12-20 07:40:09 UTC
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
Comment 1 Yuri Pankov 2011-12-20 07:45:57 UTC
The log you posted is missing the actual error, i.e. try building
without using make jobs (not specifying -jN).


Yuri
Comment 2 Jan Beich freebsd_committer freebsd_triage 2011-12-20 15:18:41 UTC
Does the actual error only happen during -jX?

ref. http://docs.freebsd.org/cgi/mid.cgi?1RcCLJ-000MeI-MC
Comment 3 O. Hartmann 2011-12-21 00:53:05 UTC
On 12/20/11 16:18, Jan Beich wrote:
> Does the actual error only happen during -jX?
> 
> 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 >= 2 results in the mentioned error
at the same point.

Oliver
Comment 4 yamayan 2011-12-25 05:12:57 UTC
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.

Comment 5 O. Hartmann 2011-12-25 12:13:53 UTC
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
Comment 6 yamayan 2011-12-25 13:39:11 UTC
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.
Comment 7 O. Hartmann 2012-05-04 20:56:14 UTC
Problem gone here with most recent FreeBSD 10.0-CURRENT/amd64 r235090.

Could I request for close?

Regards,

O. Hartmann
Comment 8 Roman Divacky freebsd_committer freebsd_triage 2014-06-03 12:56:50 UTC
Closing per authors request.