From owner-freebsd-ports@FreeBSD.ORG Fri Mar 18 14:16:22 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51AEF106566C for ; Fri, 18 Mar 2011 14:16:22 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id C5EE98FC1D for ; Fri, 18 Mar 2011 14:16:21 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p2IEGGBB038988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Mar 2011 16:16:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p2IEGGtN076973; Fri, 18 Mar 2011 16:16:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p2IEGGLg076972; Fri, 18 Mar 2011 16:16:16 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 18 Mar 2011 16:16:16 +0200 From: Kostik Belousov To: Marco van de Voort Message-ID: <20110318141616.GA78089@deviant.kiev.zoral.com.ua> References: <4D8244A4.2090206@FreeBSD.org> <20110318104038.4DB6C1737B@turtle.stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ywhQ9CMaNzNm+7bZ" Content-Disposition: inline In-Reply-To: <20110318104038.4DB6C1737B@turtle.stack.nl> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-ports@freebsd.org Subject: Re: Compiling ports in a post-9.0-RELEASE world X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 14:16:22 -0000 --ywhQ9CMaNzNm+7bZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 18, 2011 at 11:40:38AM +0100, Marco van de Voort wrote: > In our previous episode, Matthias Andree said: > >=20 > > So far I've found clang surprisingly good in that it revealed a few=20 > > quirks in my own software (in C) that GCC or ICC had silently accepted,= =20 > > and the static analyzer has a few rough edges, but I have found bugs in= =20 > > my own software, not in clang 2.8 so far, although I suspect that a few= =20 > > might linger there. >=20 > How much changes for non-(GC)C ports? In other words, ports that directly > use AS and LD to generate binaries, but might also link to C libraries > outside of gcc's control. >=20 > (I'm thinking about e.g. lang/fpc here) >=20 > Issues like >=20 > - Are there fundamental startup code (CSU) changes due to this in 9? csu consists of two pieces. One, living in lib/csu, provides the system startup for activated image, and it is not compiler-depended in any way. The other part, implemented by crtbegin.o/crtend.o in gcc, is compiler-depended and arranges the ctr/dtr calls at proper time. > - libraries that might need to be implicitely linked when linking against= C > code (like libgcc,c) libc is system library, it is compiler-agnostic and shall provide the same ABI regardless of the compiler. libgcc is compiler-depended, but clang claims to conform to gcc ABI there. > - Do certain libc internal macros change (like __errno_location) Errno is part of libc, see above. > - Do lowlevel details of stuff like TLS change? TLS is implemented according to ELF ABI (some sort of ABI, there). It is mostly implemented in rtld, and compiler just need to follow the ABI. >=20 > Of course I'll load up some RC or DP in a VM if necessary to find my own > answers. But if somebody knows some details, it would help guestimating t= he > effort. It should be plug and play, modulo the bugs. --ywhQ9CMaNzNm+7bZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk2DaS8ACgkQC3+MBN1Mb4hwfgCglob2yvvH+TPNlPT1KPPR/4U0 RD0AoI5kpWoHQPkaBHKSkLDloJQrrRlE =pHSd -----END PGP SIGNATURE----- --ywhQ9CMaNzNm+7bZ--