Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Jan 2012 09:40:24 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: WITH_LIBCPLUSPLUS on FreeBSD 10.0-CURRENT/amd64 fails with CLANG:
Message-ID:  <4F06B378.7050404@zedat.fu-berlin.de>
In-Reply-To: <20120106073104.GA50351@freebsd.org>
References:  <4F062232.1020204@zedat.fu-berlin.de> <20120106073104.GA50351@freebsd.org>

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

[-- Attachment #1 --]
On 01/06/12 08:31, Roman Divacky wrote:
> what makes you think you're using clang?
> 
> On Thu, Jan 05, 2012 at 11:20:34PM +0100, O. Hartmann wrote:
>> When compiling most recent CURRENT on amd64 platform, using CLANG and
>> enabled WITH_LIBCPLUSPLUS, I receive the follwing error since two days
>> now. Build shown below was made avoiding -jX when doing buildworld.
>>

My blindness and my trust in a kind of "deus ex machina" :-(

Sorry.

Obviously, these lines in make.conf seem to fail recently when building
the sources:

###
###     CLANG
###

.if !defined(NO_CLANG)
.if ${.CURDIR:M/usr/src/*} || ${.CURDIR:M/usr/obj/*} || ${.CURDIR:M/sys/*}

.if !defined(CC) || ${CC} == "cc"
CC=                     clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=                    clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=                    clang-cpp
.endif
## Don't die on warnings
NO_WERROR=
WERROR=
### Don't forget this when using Jails!
#NO_FSCHG=
#
CFLAGS+=                -pipe -O3 -fno-strict-aliasing
COPTFLAGS+=             -pipe -O3

.endif
.endif

I commented out the
.if ${.CURDIR:M/usr/src/*} || ${.CURDIR:M/usr/obj/*} || ${.CURDIR:M/sys/*}

for port's compiling purposes (some ports are pissed off when CLANG
tries to compile).

I commented them again and started a "make buildword" without any -jX
again ...

Oliver

>> [SNIP]
>> rpcgen -C -c /usr/src/lib/librpcsvc/../../include/rpcsvc/ypupdate_prot.x
>> -o ypupdate_prot_xdr.c
>> rm -f .depend
>> CC='cc -m32 -march=native -DCOMPAT_32BIT  -isystem
>> /usr/obj/usr/src/lib32/usr/include/  -L/usr/obj/usr/src/lib32/usr/lib32
>>  -B/usr/obj/usr/src/lib32/usr/lib32' mkdep -f .depend -a    -DYP
>> -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99  klm_prot_xdr.c
>> mount_xdr.c nfs_prot_xdr.c nlm_prot_xdr.c rex_xdr.c rnusers_xdr.c
>> rquota_xdr.c rstat_xdr.c rwall_xdr.c sm_inter_xdr.c spray_xdr.c
>> yppasswd_xdr.c ypxfrd_xdr.c ypupdate_prot_xdr.c
>> /usr/src/lib/librpcsvc/rnusers.c /usr/src/lib/librpcsvc/rstat.c
>> /usr/src/lib/librpcsvc/rwall.c /usr/src/lib/librpcsvc/yp_passwd.c
>> /usr/src/lib/librpcsvc/yp_update.c /usr/src/lib/librpcsvc/secretkey.c
>> /usr/src/lib/librpcsvc/xcrypt.c
>> ===> lib/libsbuf (depend)
>> ===> lib/libtacplus (depend)
>> ===> lib/libutil (depend)
>> ===> lib/libypclnt (depend)
>> ===> lib/libcxxrt (depend)
>> ===> lib/libc++ (depend)
>> rm -f .depend
>> CC='cc -m32 -march=native -DCOMPAT_32BIT  -isystem
>> /usr/obj/usr/src/lib32/usr/include/  -L/usr/obj/usr/src/lib32/usr/lib32
>>  -B/usr/obj/usr/src/lib32/usr/lib32' mkdep -f .depend -a
>> -I/usr/src/lib/libc++/../../contrib/libc++/include
>> -I/usr/src/lib/libc++/../../contrib/libcxxrt -DLIBCXXRT -std=c++0x
>> /usr/src/lib/libc++/../../contrib/libc++/src/algorithm.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/bind.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/chrono.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/condition_variable.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/debug.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/exception.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/future.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/hash.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/ios.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/iostream.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/locale.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/memory.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/mutex.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/new.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/random.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/regex.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/stdexcept.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/string.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/strstream.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/system_error.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/thread.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/typeinfo.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/utility.cpp
>> /usr/src/lib/libc++/../../contrib/libc++/src/valarray.cpp
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> mkdep: compile failed
>>
> 


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBAgAGBQJPBrN+AAoJEOgBcD7A/5N8FgUH/3sDTci1r6JWpPNWc4hJpis/
/Ow5jsvFWj3qQ5KvgW6Cnts2sgvbsXWsfwhqj1qwmwautibRQqPXadOGLKtscr4Y
+oUvtaE7dDLgx2j+L/BCav/79c9eAyHnB0zRhfRYZ46lNbzGVYryNEmJODoFyT/o
u4lyrJ6vkH8mnzvAwpLUCnMWltOS5NoprlJSTXY4JV5D1eFxsUkSWq2WAGd8C24P
u3RN0Jct/9blKu28GoiJWYW4v09Q/3AKkRtSCT0W/JHcun74C9gfBDYL4c2BI05u
Vf4WZldXaZbjKw8fNuDKbEDnNETgUpRwz9btbnLUk82BDcEysGTB8LsMvFMuPC0=
=UCP8
-----END PGP SIGNATURE-----

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