Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2012 08:43:27 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: www/firefox and mail/thunderbird fail to compile in FreeBSD 10-CUR/amd64 with CLANG
Message-ID:  <4F9E348F.1090306@zedat.fu-berlin.de>
In-Reply-To: <4F9CF75F.2000605@zedat.fu-berlin.de>
References:  <4F9CF75F.2000605@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4161D7E026DB493D1FAC6CBE
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

I realized that compiling mail/thunderbird and www/firefox on most
recent FreeBSD 10-CURRENT/amd64 with CLANG/LLVM 3.1 doesn't work
anymore. Compiling www/firefox and mail/thunderbird with gcc 4.6 works
fine.


Am 04/29/12 10:10, schrieb O. Hartmann:
> On my FreeBSD 10 boxes, all compiled with CLANG and using CLANG (
> FreeBSD 10.0-CURRENT #0 r234500: Fri Apr 20 21:59:02 CEST 2012),
> compiling/updating Firefox to V12 and Thunderbird to V12 fails with the=

> below shown error.
>=20
> Does someone have any clue what could trigger the problem?
>=20
> On FreeBSD 9-STABLE/amd64, also compiled with CLANG, there is no such
> problem.
>=20
>=20
> Thanks in advance,
>=20
> Oliver
>=20
>=20
> [...]
> In file included from
> /usr/ports/www/firefox/work/mozilla-release/js/src/jsalloc.cpp:40:
> In file included from ./jscntxt.h:50:
> ./jsapi.h:2102:1: error: 'JS_GetNaNValue' has C-linkage specified, but
> returns user-defined type 'jsval' (aka 'JS::Value') which is
> incompatible with C
>       [-Werror,-Wreturn-type-c-linkage]
> JS_GetNaNValue(JSContext *cx);
> ^
> ./jsapi.h:2105:1: error: 'JS_GetNegativeInfinityValue' has C-linkage
> specified, but returns user-defined type 'jsval' (aka 'JS::Value') whic=
h is
>       incompatible with C [-Werror,-Wreturn-type-c-linkage]
> JS_GetNegativeInfinityValue(JSContext *cx);
> ^
> ./jsapi.h:2108:1: error: 'JS_GetPositiveInfinityValue' has C-linkage
> specified, but returns user-defined type 'jsval' (aka 'JS::Value') whic=
h is
>       incompatible with C [-Werror,-Wreturn-type-c-linkage]
> JS_GetPositiveInfinityValue(JSContext *cx);
> ^
> ./jsapi.h:2111:1: error: 'JS_GetEmptyStringValue' has C-linkage
> specified, but returns user-defined type 'jsval' (aka 'JS::Value') whic=
h
> is incompatible
>       with C [-Werror,-Wreturn-type-c-linkage]
> JS_GetEmptyStringValue(JSContext *cx);
> ^
> ./jsapi.h:2819:1: error: 'JS_ComputeThis' has C-linkage specified, but
> returns user-defined type 'jsval' (aka 'JS::Value') which is
> incompatible with C
>       [-Werror,-Wreturn-type-c-linkage]
> JS_ComputeThis(JSContext *cx, jsval *vp);
> ^
> In file included from
> /usr/ports/www/firefox/work/mozilla-release/js/src/jsanalyze.cpp:40:
> In file included from ./jsanalyze.h:44:
> In file included from ./jscompartment.h:46:
> In file included from ./jscntxt.h:50:
> ./jsapi.h:2102:1: error: 'JS_GetNaNValue' has C-linkage specified, but
> returns user-defined type 'jsval' (aka 'JS::Value') which is
> incompatible with C
>       [-Werror,-Wreturn-type-c-linkage]
> JS_GetNaNValue(JSContext *cx);
> ^
> ./jsapi.h:2105:1: error: 'JS_GetNegativeInfinityValue' has C-linkage
> specified, but returns user-defined type 'jsval' (aka 'JS::Value') whic=
h is
>       incompatible with C [-Werror,-Wreturn-type-c-linkage]
>=20


--=20
O. Hartmann
Freie Universit=E4t Berlin
Institut fuer Geologische Wissenschaften
Fachrichtung Planetologie und Fernerkundung
Malteser-Str. 74--100/Haus D

D-12249 Berlin

Tel.: +49 (0) 30 838 70 508
FAX:  +49 (0) 30 838 70 837


--------------enig4161D7E026DB493D1FAC6CBE
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.19 (FreeBSD)

iQEcBAEBAgAGBQJPnjSVAAoJEOgBcD7A/5N8qn8H/2iHAniA1ISAC07UXlDc5LFw
ULdRvxkdxuuNzJXtxEO+4jt41z+VCtmSb6EA52gPB7tS17bD7qmVc9Uztu9wfsK/
7xMhZi2COMBDKEdbbC3FiTnvByiqBXVbR9QTjmwmGhwEmwUknaDyfjHXcrZu6enV
xSiGlTqNMubgxD8SBKeHhjhdwNJl1pqFD/XcluCkhPmVWuMS5d16P1IZm4BIPrjo
F0iNHq6+CZtoRMjOeqtLqhA0579oPu9I7TQaXlTaVow2KwcE6QV1bstvLR9RAs0L
dnaYCNJ1SW4w5W85KenYOgrW4FIWhAApCFO77IPBO7YV7kAJUhqHUeAg/QnuLMg=
=Fz8Y
-----END PGP SIGNATURE-----

--------------enig4161D7E026DB493D1FAC6CBE--



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