From owner-freebsd-toolchain@FreeBSD.ORG Mon Apr 29 11:06:53 2013 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A254040E for ; Mon, 29 Apr 2013 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7B8EB1937 for ; Mon, 29 Apr 2013 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3TB6rlt018308 for ; Mon, 29 Apr 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3TB6rUG018306 for freebsd-toolchain@FreeBSD.org; Mon, 29 Apr 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Apr 2013 11:06:53 GMT Message-Id: <201304291106.r3TB6rUG018306@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-toolchain@FreeBSD.org Subject: Current problem reports assigned to freebsd-toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Apr 2013 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/175930 toolchain [headers] clang does not define __STDC_ISO_10646__, de 1 problem total. From owner-freebsd-toolchain@FreeBSD.ORG Wed May 1 21:35:18 2013 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 273C8E33; Wed, 1 May 2013 21:35:18 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [IPv6:2607:f8b0:400c:c02::22e]) by mx1.freebsd.org (Postfix) with ESMTP id AA4F8141E; Wed, 1 May 2013 21:35:17 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id 10so1523422vbe.5 for ; Wed, 01 May 2013 14:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=7tBeG2R9vwcGmvK5QYDeknMCKADaBSIILOKTKmj7NzI=; b=O9ktShRqthY738Pi27Qe9sA7gWSl854q/jRsPDN+YvmShhV8xEELvS/9tYzTO45Y7D IGqWJuelgCzPLH4iXsK5bsKEUGuUva8eP3xvDKGYtLT4RmbSNzyNuKDguPJQN2hurhtS Q0koHIMK6CGzVvQtzQgdisNs8lebBALRkPKyVECxmTQkZP7eIyZuUccaNfasFmxTAqVs 8VVcVdUPPunli6LglOk9UbNIWCAN8VO2Oom7krrSp9B6ps6M/RrasSKU4u6yaOvysM3B tDDJeu99+kifTQavo0d+0rdfyKQ632Kys6CJl0E/rSd5ffF1m3xv4AOSyjE+8P4TMdba fSBg== MIME-Version: 1.0 X-Received: by 10.52.77.66 with SMTP id q2mr1130871vdw.52.1367444117132; Wed, 01 May 2013 14:35:17 -0700 (PDT) Received: by 10.220.141.72 with HTTP; Wed, 1 May 2013 14:35:17 -0700 (PDT) In-Reply-To: <201305012130.r41LU031023258@freefall.freebsd.org> References: <201305012123.r41LNcEL048006@red.freebsd.org> <201305012130.r41LU031023258@freefall.freebsd.org> Date: Wed, 1 May 2013 14:35:17 -0700 Message-ID: Subject: Fwd: docs/178286: [PATCH] document the LOCAL_* vars in build(7) From: Garrett Cooper To: Brooks Davis Content-Type: text/plain; charset=ISO-8859-1 Cc: sjg@freebsd.org, toolchain@freebsd.org, joel@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 May 2013 21:35:18 -0000 Hi Brooks and Joel, I'd really appreciate if you guys could help out with this. I'm having to fix the Isilon build system due to severe lack of documentation in build(7). So many mistakes have been made because people don't understand how to write FreeBSD Makefiles... I'll shoot along more patches as I can. Thanks, -Garrett ---------- Forwarded message ---------- From: Date: Wed, May 1, 2013 at 2:30 PM Subject: Re: docs/178286: [PATCH] document the LOCAL_* vars in build(7) To: Garrett Cooper Thank you very much for your problem report. It has the internal identification `docs/178286'. The individual assigned to look at your report is: freebsd-doc. You can access the state of your problem report at any time via this link: http://www.freebsd.org/cgi/query-pr.cgi?pr=178286 >Category: docs >Responsible: freebsd-doc >Synopsis: [PATCH] document the LOCAL_* vars in build(7) >Arrival-Date: Wed May 01 21:30:00 UTC 2013 From owner-freebsd-toolchain@FreeBSD.ORG Wed May 1 22:07:46 2013 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4F4F6897; Wed, 1 May 2013 22:07:46 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 8EED115C9; Wed, 1 May 2013 22:07:45 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.5/8.14.5) with ESMTP id r41M7oCZ048647; Wed, 1 May 2013 17:07:50 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.5/8.14.5/Submit) id r41M7oli048646; Wed, 1 May 2013 17:07:50 -0500 (CDT) (envelope-from brooks) Date: Wed, 1 May 2013 17:07:50 -0500 From: Brooks Davis To: Garrett Cooper Subject: Re: Fwd: docs/178286: [PATCH] document the LOCAL_* vars in build(7) Message-ID: <20130501220750.GD45806@lor.one-eyed-alien.net> References: <201305012123.r41LNcEL048006@red.freebsd.org> <201305012130.r41LU031023258@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: sjg@freebsd.org, toolchain@freebsd.org, joel@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 May 2013 22:07:46 -0000 On Wed, May 01, 2013 at 02:35:17PM -0700, Garrett Cooper wrote: > Hi Brooks and Joel, > I'd really appreciate if you guys could help out with this. I'm > having to fix the Isilon build system due to severe lack of > documentation in build(7). So many mistakes have been made because > people don't understand how to write FreeBSD Makefiles... One minor concern I have with this patch is documenting LOCAL_LIB_DIRS. I've not posted to the lists yet, but now that I understand buildworld better, I think I implemented it wrong. It should have required that the directories be also be listed in LOCAL_DIRS. The reason is that you could then have LOCAL_DIRS=foo and LOCAL_LIB_DIRS=foo/lib so you only added one directory to the FreeBSD tree but could still have libs. I feared that someone might have started using this feature which would mean we can't easily change that. Is Isilon using it? -- Brooks From owner-freebsd-toolchain@FreeBSD.ORG Fri May 3 01:08:38 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 60918E8B for ; Fri, 3 May 2013 01:08:38 +0000 (UTC) (envelope-from ken@furosys.com) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [IPv6:2607:f8b0:400c:c01::232]) by mx1.freebsd.org (Postfix) with ESMTP id 244D31F61 for ; Fri, 3 May 2013 01:08:38 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id jy13so1120731veb.9 for ; Thu, 02 May 2013 18:08:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer:x-gm-message-state; bh=0d3QLL0wEs9q2KxkkidNB+g6PrFen02WXzX3yFbaVDw=; b=BS8LSP+jDWnIoiBJi+NccU5TQArWmtnv9gTf6u2BGpMKg19p1tMPVMeya7QKgz3B2/ tkMRHp9/o00Ysz0B0XBoHFoKXS9GAqyTFwG3cnBueY/v8sW42VDISDxz7gyUNpzyHkh9 v27TRLedxqcq2ekSINXnONGMptXzSkoS6ABgEs0RRCnbVP7/Ts6L0SNqrGJAoxL8fves 1FpDh+uUjmPoxfRGuoan0DQ6OFkqEtschYPjZWzdjjW/6SXUzSBrsrw8FtNqROtGbia8 iiuFhC8ZdUaAO3CR/fqEZuzxe1+JzL44NBXydOgvpNq9XI+WGsTpUL4ryC2L8HpkZJSs Y7BA== X-Received: by 10.58.144.231 with SMTP id sp7mr3023397veb.34.1367543317480; Thu, 02 May 2013 18:08:37 -0700 (PDT) Received: from [10.0.0.4] (c-69-245-37-225.hsd1.tn.comcast.net. [69.245.37.225]) by mx.google.com with ESMTPSA id q5sm6894293vdj.5.2013.05.02.18.08.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 18:08:36 -0700 (PDT) From: Kennith Caudill Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Miscellaneous questions Message-Id: Date: Thu, 2 May 2013 20:08:34 -0500 To: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQkHC+wzMHURm1dV8R73+ImDpm4eZr8yMfFx474ENPNkhE4z7Bwnf5y7uBxrjcSHAVUDT0Gr X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 01:08:38 -0000 1.) Processor affinity with C++11 threads Will there be a standard non-hackish way to set processor affinity on = C++11 std::threads?=20 This would be a great feature imho. I admit that I haven't researched = this and maybe it's possible to use the pthreads API to accomplish this but I'd prefer a = more idiomatic choice.=20 2.) Alternative linkers Is there a document available detailing the current feasible linkers and = their status? e.g., is it possible to build a working system with mclinker, gold, = etc., and what is the process for accomplishing this? I'm willing to write up detailed guides = if someone=20 will provide the broad strokes of how to test this out.=20 3.) DWARF support My application returns tens of thousands of link warnings when built = with -g: /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 25.=20 I assume this is a DWARF4 thing, relating to my second question.=20 4.) lldb status Is this described in detail anywhere?=20 Thanks, I hope this is the right list for these questions.=20= From owner-freebsd-toolchain@FreeBSD.ORG Fri May 3 10:31:01 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D4C4DF3C for ; Fri, 3 May 2013 10:31:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9B7E6163B for ; Fri, 3 May 2013 10:31:01 +0000 (UTC) Received: from spaceball.andric.com (spaceball.andric.com [IPv6:2001:7b8:3a7:0:204:4bff:fe01:de8a]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E56EC5C45; Fri, 3 May 2013 12:30:53 +0200 (CEST) Message-ID: <518391E2.5000002@FreeBSD.org> Date: Fri, 03 May 2013 12:30:58 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Thunderbird/21.0 MIME-Version: 1.0 To: Kennith Caudill , freebsd-toolchain@freebsd.org Subject: Re: Miscellaneous questions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 10:31:01 -0000 On 2013-05-03 03:08, Kennith Caudill wrote: > 1.) Processor affinity with C++11 threads > > Will there be a standard non-hackish way to set processor affinity on C++11 std::threads? > > This would be a great feature imho. I admit that I haven't researched this and maybe it's > possible to use the pthreads API to accomplish this but I'd prefer a more idiomatic choice. As far as I understand the standard, there is no portable way to do it. For libc++, you can call std::thread::native_handle() to retrieve the implementation-defined thread type, which is just pthread_t. Maybe in C++14 or C++17, just keep on lobbying... :-) > 2.) Alternative linkers > > Is there a document available detailing the current feasible linkers and their status? > > e.g., is it possible to build a working system with mclinker, gold, etc., and what is the > process for accomplishing this? I'm willing to write up detailed guides if someone > will provide the broad strokes of how to test this out. I am not aware of any documentation, but there have been a few efforts, by different people. In all cases, it seems to be highly experimental, and a lot of things might still be broken. The most interesting challenge is linking the kernel, of course. And custom linker scripts, written specifically for GNU ld. > 3.) DWARF support > > My application returns tens of thousands of link warnings when built with -g: > > /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 25. > > I assume this is a DWARF4 thing, relating to my second question. I fixed this in head, in r248802, and merged it to stable/9 in r249040, to stable/8 in r249058, and to stable/7 in r249059. If you update your binutils, the message should go away. This does not mean full DWARF4 support, though. We need binutils and gdb replacements for that, especially for the linker (and possibly the assembler, but the assembler could already be mostly replaced with clang's integrated assembler). Alternatively, we could attempt to support using more recent binutils from ports. > 4.) lldb status > > Is this described in detail anywhere? Last I know, Kip Macy was working on this for a time, but he disappeared again. I am not sure of any other efforts. -Dimitry From owner-freebsd-toolchain@FreeBSD.ORG Fri May 3 13:00:35 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ECAB978A for ; Fri, 3 May 2013 13:00:35 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp6.one.com (csmtp6.one.com [195.47.247.106]) by mx1.freebsd.org (Postfix) with ESMTP id B2B501F48 for ; Fri, 3 May 2013 13:00:35 +0000 (UTC) Received: from [192.168.1.11] (unknown [217.157.7.221]) by csmtp6.one.com (Postfix) with ESMTPA id 3529697521; Fri, 3 May 2013 12:52:42 +0000 (UTC) Received: from [192.168.1.11] ([UNAVAILABLE]. [217.157.7.221]) by 0.0.0.0:2525 (trex/4.8.64); Fri, 03 May 2013 12:51:48 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Miscellaneous questions From: Erik Cederstrand In-Reply-To: Date: Fri, 3 May 2013 14:52:42 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <98BED6C8-0017-4BE4-8B3D-617508896D74@cederstrand.dk> References: To: Kennith Caudill X-Mailer: Apple Mail (2.1503) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 13:00:36 -0000 Den 03/05/2013 kl. 03.08 skrev Kennith Caudill : > 2.) Alternative linkers >=20 > Is there a document available detailing the current feasible linkers = and their status? Not that I'm aware of. mclinker is work in progress and is not yet able = to link the kernel. gold should work, but I'm not aware that LTO linking = has been tested to work. Apart from this, we need a general solution to having multiple linkers = installed and choosing which one to use in general, during buildworld, = for ports etc. Erik= From owner-freebsd-toolchain@FreeBSD.ORG Fri May 3 13:09:57 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 56B6495C for ; Fri, 3 May 2013 13:09:57 +0000 (UTC) (envelope-from theraven@theravensnest.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) by mx1.freebsd.org (Postfix) with ESMTP id 04E661FD1 for ; Fri, 3 May 2013 13:09:56 +0000 (UTC) Received: from c120.sec.cl.cam.ac.uk (c120.sec.cl.cam.ac.uk [128.232.18.120]) (authenticated bits=0) by theravensnest.org (8.14.5/8.14.5) with ESMTP id r43D9Vo9001143 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 3 May 2013 13:09:32 GMT (envelope-from theraven@theravensnest.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Miscellaneous questions From: David Chisnall In-Reply-To: <98BED6C8-0017-4BE4-8B3D-617508896D74@cederstrand.dk> Date: Fri, 3 May 2013 14:09:35 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <98BED6C8-0017-4BE4-8B3D-617508896D74@cederstrand.dk> To: Erik Cederstrand X-Mailer: Apple Mail (2.1499) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 13:09:57 -0000 On 3 May 2013, at 13:52, Erik Cederstrand wrote: > Not that I'm aware of. mclinker is work in progress and is not yet = able to link the kernel. gold should work, but I'm not aware that LTO = linking has been tested to work. I spoke to Diana Chen, who works on MCLinker, on Monday and apparently = they do have enough linker script support to link the FreeBSD kernel = now, but not the Linux kernel. They're currently missing version = scripts (Luba Tang is working on that). They were aiming to deliver a = linker that can link kernel + world with all of the options that we need = for BSDCan, but apparently their schedule has now slipped by about two = weeks. > Apart from this, we need a general solution to having multiple linkers = installed and choosing which one to use in general, during buildworld, = for ports etc. I plan on adding a --linker=3D option to clang for this. We can also = start installing BDF linker as ld-bfd and mclinker as ld-mclinker (or = similar) and have /usr/bin/ld be a symlink to one or the other. =20 I think shipping a GPL-free 10.0 (with adequate testing) is not feasible = in the current timeline, however I would like to have replacements for = all of the GPL'd components in tree, even if not used by default, so = that downstream people who really care about not having GPL'd stuff can = just tweak a build knob. David From owner-freebsd-toolchain@FreeBSD.ORG Fri May 3 19:05:33 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DADC6F68 for ; Fri, 3 May 2013 19:05:33 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm16-vm5.bullet.mail.gq1.yahoo.com (nm16-vm5.bullet.mail.gq1.yahoo.com [98.137.177.253]) by mx1.freebsd.org (Postfix) with SMTP id 8BDDF1E6F for ; Fri, 3 May 2013 19:05:33 +0000 (UTC) Received: from [98.137.12.62] by nm16.bullet.mail.gq1.yahoo.com with NNFMP; 03 May 2013 19:03:19 -0000 Received: from [208.71.42.213] by tm7.bullet.mail.gq1.yahoo.com with NNFMP; 03 May 2013 19:03:19 -0000 Received: from [127.0.0.1] by smtp224.mail.gq1.yahoo.com with NNFMP; 03 May 2013 19:03:19 -0000 X-Yahoo-Newman-Id: 665681.73628.bm@smtp224.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: JIw420EVM1nSG0kYHmlecuVigvyHZAWyubwyR4I6ns1sl9I LV7sKtdloKuJ0YAoIzGeRaLQX_qnGnG79zqu83Y0ux6vv8T754r09_Cc_p9b oGM7f7FwzSy6Ci9K1muttAmxlcVlem_V27rgHXMcimcDBxdbJjYvz79u60Hk hRoJGOEh.7XKikDM1Vn47nGT6bPnBKeMPrIx3DDzzSHlqidMZ_GjoMyq1UEG zalC_M5YIH4yyLGICt.K8hTVGYxQ35sUIu9gWSAh7WT3YJ3XJESpCCTDdwso 1QG_kC1KV2iFAmUfrPFlIlssi3ya.iahVortBNmh5eumarOq.v89jK0.q4RV 0zjTq0XHSlUTuLQVVZ07u8xmP.6aIM4kUG1m4LwcODqU1FWOWezSuXR6ZZBo S5xxEbPYOvMKZotNEWkK3IKpw5yDJr9MvkODUUVbjKdEZ_fGFl0u9tEZEZ.z q_1bXtl4t35qm2bPYhQRfnrny8hnp356JjTOd9blFWRqTlIA_HSILoOR4nV2 clr4iUd5TH8OEr8q5OBO0MkrBC4oHqsXQriaQIyd4Z1O6ZMvVhhAmHR5XIQz S6IJPNRfhiIH3LURHqjpoFcf3iaDJu_TxVbtnP4QaVrQh640vJdpYvY2bDYc SChnO7hII3txSmt2vTJs2L.NVS6Cd1YTHvb4prCKkCSUkNsHrZraALzOVvpg 29JlmINZYn9PEE_hwy3lY6_.tAoLQJ5yu X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain) by smtp224.mail.gq1.yahoo.com with SMTP; 03 May 2013 12:03:19 -0700 PDT Message-ID: <518409F9.6030909@FreeBSD.org> Date: Fri, 03 May 2013 14:03:21 -0500 From: Pedro Giffuni Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-toolchain@freebsd.org Subject: Re: Miscellaneous questions References: <518391E2.5000002@FreeBSD.org> In-Reply-To: <518391E2.5000002@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 19:05:33 -0000 Hello; El 03/05/2013 5:30 a. m., Dimitry Andric escribió: ... > >> 2.) Alternative linkers >> >> Is there a document available detailing the current feasible linkers >> and their status? >> >> e.g., is it possible to build a working system with mclinker, gold, >> etc., and what is the >> process for accomplishing this? I'm willing to write up detailed >> guides if someone >> will provide the broad strokes of how to test this out. > > I am not aware of any documentation, but there have been a few efforts, > by different people. In all cases, it seems to be highly experimental, > and a lot of things might still be broken. The most interesting > challenge is linking the kernel, of course. And custom linker scripts, > written specifically for GNU ld. > FWIW, The Solaris people have lived with the problem of supporting alternative linkers for a while and they came up with LD_ALTEXEC: http://blogs.everycity.co.uk/alasdair/2011/03/using-the-gnu-ld-linker-on-solaris/ There even appears to be a proof-of-concept patch for binutils: http://sourceware.org/bugzilla/show_bug.cgi?id=13863 Again FWIW, one of our linker experts says the patch is ugly but I wouldn't spend time beautifying GNU ld anyways ;). > >> 4.) lldb status >> >> Is this described in detail anywhere? > I heard good things about it from a Mac developer but I haven't tried it. We should look at it. We should also start considering merging the elftoolchain. Regards, Pedro. From owner-freebsd-toolchain@FreeBSD.ORG Sat May 4 11:39:59 2013 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8C061E25; Sat, 4 May 2013 11:39:59 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) by mx1.freebsd.org (Postfix) with ESMTP id 48BE114A7; Sat, 4 May 2013 11:39:55 +0000 (UTC) Received: from [192.168.0.2] (cpc10-cmbg15-2-0-cust123.5-4.cable.virginmedia.com [86.30.246.124]) (authenticated bits=0) by theravensnest.org (8.14.5/8.14.5) with ESMTP id r44AjN4A006380 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 4 May 2013 10:45:24 GMT (envelope-from theraven@FreeBSD.org) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Miscellaneous questions From: David Chisnall In-Reply-To: <518409F9.6030909@FreeBSD.org> Date: Sat, 4 May 2013 11:45:18 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <518391E2.5000002@FreeBSD.org> <518409F9.6030909@FreeBSD.org> To: Pedro Giffuni X-Mailer: Apple Mail (2.1499) Cc: freebsd-toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2013 11:39:59 -0000 On 3 May 2013, at 20:03, Pedro Giffuni wrote: > FWIW, The Solaris people have lived with the problem of supporting > alternative linkers for a while and they came up with LD_ALTEXEC: >=20 > = http://blogs.everycity.co.uk/alasdair/2011/03/using-the-gnu-ld-linker-on-s= olaris/ >=20 > There even appears to be a proof-of-concept patch for binutils: > http://sourceware.org/bugzilla/show_bug.cgi?id=3D13863 >=20 > Again FWIW, one of our linker experts says the patch is ugly but I > wouldn't spend time beautifying GNU ld anyways ;). The patch itself isn't ugly. The concept is, but it's probably sensible = to support something like that. I'm a bit hesitant about that exact = solution, because I don't like the idea of a random environment variable = being able to break (or fix) kernel / world / ports builds. >>=20 >>> 4.) lldb status >>>=20 >>> Is this described in detail anywhere? >=20 > I heard good things about it from a Mac developer but I haven't tried > it. We should look at it. I've used LLDB on OS X, and it is a much nicer experience than gdb. It = does, however, currently lack thread and core dump support on FreeBSD. = We were hoping that Cherry Mathews would work on that, but he is doing = Xen stuff instead. If anyone else is interested, then we have a = proposal that the FreeBSD Foundation has already agreed to fund that it = would be great for someone else to pick up. The proposal is for a bit = more than just finishing the LLDB port, it also includes adding a = less-ugly kernel API for debuggers, replacing ptrace (extending the = process descriptors that were added for capsicum to allow process = control, mmap()ing of a process's address space, and creating thread = descriptors, avoiding some of the race conditions that ptrace has and = providing a cleaner way of copying largish quantities of data to and = from the debugged process and allowing lldb to run in capability mode). > We should also start considering merging the elftoolchain. I'm a bit hesitant about pulling in too much of their stuff, because = we're going to end up with a lot of code duplication if we do. Most of = their utilities have LLVM equivalents, and we're already building all of = the libraries that the LLVM tools depend on. At BSDCan, I'd like to = spend some time in the hacker lounge on the first day with anyone who is = interested going through the source tree, looking at all of the GNU = stuff that we have, and checking what the replacements are going to be. David