From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 27 16:05:45 2009 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF5E21065673; Mon, 27 Jul 2009 16:05:45 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 400448FC12; Mon, 27 Jul 2009 16:05:45 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n6RFkJsS003208; Mon, 27 Jul 2009 10:46:19 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1248709579; bh=9wTr3tgke6MQ31OaEasmljPG5Amyq740yiYw/t9n34c=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=YCnDcBWZ0D78KS1ZVBoEiHhBbYWHiQ5LthI51VV2v7pX1vj4Ue7nEC7jxnY4KORV8 ktRINZ/2c3iUavKawh7eK3zwdy7gcTawNl0TvAncaKtC58AuQCWKsWL3+hsarfGeYT tOgd4l+fx17UJY5OgVI/fLdEObsKQ71kXtF7PSwA= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n6RFkIdx003207; Mon, 27 Jul 2009 10:46:18 -0500 (CDT) (envelope-from tinguely) Date: Mon, 27 Jul 2009 10:46:18 -0500 (CDT) From: Mark Tinguely Message-Id: <200907271546.n6RFkIdx003207@casselton.net> To: avg@icyb.net.ua, bf1783@googlemail.com In-Reply-To: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.2 (casselton.net [127.0.0.1]); Mon, 27 Jul 2009 10:46:19 -0500 (CDT) Cc: freebsd-multimedia@freebsd.org, freebsd-ports@freebsd.org Subject: Re: FreeBSD Port: mplayer-0.99.11_14 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 16:05:46 -0000 As a FYI and cross my fingers that this does not take an OT life of its own. The newer ARM chips could benefit from a new GCC and GNU binutils. So we have spent some time experimenting in this area. I have added the FreeBSD kernel printing extensions (-fformat-extensions) and the FreeBSD path (PREFIX) code and the freebsd config entries into the GCC 4.5 (have kept it updated to the July snapshot). The GCC and libgcc have been ported to BSD Makefiles, with the following exceptions: 1) I have not added the last two week changes to gcc/gcclibs. 2) for some reason gnu/usr.bin/cc/cc_tools/option.h must exist, even if blank, before the compile begins. It must be a makefile error. 3) In libdecnumber from GCC, I statically chose the dpd routines. 4) libgcc compiles with 8.0 header files. I believe there are errors in the gcc libssp. If I remember, it was an error with an include file that I got manually around. 5) libgmp/libmpfr required by the new compilers has not been ported, right now I link them against /usr/local/lib. libgmp looks the messiest of the two. In the mpn directory, there are generic routines and per ARCH and sub-ARCH assembly replacements which require m4 preprocessing. Some replacements are for both add and subtract versions: aors_n.asm is equivalent to add_n.asm and sub_n.asm. For the ARM, I changed the hardware floating point to be "vfp". I see there are ARCH restrictions of "NOT_FOR_ARCHS= alpha ia64 powerpc" in the newer GCCs. I have used the ported compiler mostly on the kernel sources. The standard GCC 4.5 "-O" option kicks up several new warnings on the inline that are conditional - a lot of them are inlines for locks. I use the new binutils, but have not tried to port them to the BSD makefiles. This is just a FYI of some of what would be require to update the native compiler. I hate to think what port source issues would be. --Mark Tinguely