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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF10EB13667C5F3055D17CBE9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/06/12 08:31, Roman Divacky wrote:
> what makes you think you're using clang?
>=20
> 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
###

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

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

=2Eendif
=2Eendif

I commented out the
=2Eif ${.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=
=2Ex
>> -o ypupdate_prot_xdr.c
>> rm -f .depend
>> CC=3D'cc -m32 -march=3Dnative -DCOMPAT_32BIT  -isystem
>> /usr/obj/usr/src/lib32/usr/include/  -L/usr/obj/usr/src/lib32/usr/lib3=
2
>>  -B/usr/obj/usr/src/lib32/usr/lib32' mkdep -f .depend -a    -DYP
>> -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=3Dgnu99  klm_prot_xdr=
=2Ec
>> 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
>> =3D=3D=3D> lib/libsbuf (depend)
>> =3D=3D=3D> lib/libtacplus (depend)
>> =3D=3D=3D> lib/libutil (depend)
>> =3D=3D=3D> lib/libypclnt (depend)
>> =3D=3D=3D> lib/libcxxrt (depend)
>> =3D=3D=3D> lib/libc++ (depend)
>> rm -f .depend
>> CC=3D'cc -m32 -march=3Dnative -DCOMPAT_32BIT  -isystem
>> /usr/obj/usr/src/lib32/usr/include/  -L/usr/obj/usr/src/lib32/usr/lib3=
2
>>  -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=3Dc++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=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> cc1plus: error: unrecognized command line option "-std=3Dc++0x"
>> mkdep: compile failed
>>
>=20


--------------enigF10EB13667C5F3055D17CBE9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----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-----

--------------enigF10EB13667C5F3055D17CBE9--



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