From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9487 Path: news.gmane.org!not-for-mail From: Pedro Giffuni Newsgroups: gmane.linux.lib.musl.general Subject: Re: FreeBSD's Google Summer of Code 2016 Date: Sat, 5 Mar 2016 17:41:25 -0500 Message-ID: <56DB6095.4060204@FreeBSD.org> References: <56DB3D70.8010601@FreeBSD.org> <20160305212517.GK9349@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457217656 27022 80.91.229.3 (5 Mar 2016 22:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2016 22:40:56 +0000 (UTC) Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-9500-gllmg-musl=m.gmane.org@lists.openwall.com Sat Mar 05 23:40:52 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1acKsV-0005Ry-QM for gllmg-musl@m.gmane.org; Sat, 05 Mar 2016 23:40:51 +0100 Original-Received: (qmail 14120 invoked by uid 550); 5 Mar 2016 22:40:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 14102 invoked from network); 5 Mar 2016 22:40:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1457217637; bh=PjFlyqAZARb7l5UbGCDUtQcWmvYSMH+6OhS9kiEVRr4=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=dQYwE4I3E9fmyIeTZdiEL3DgxHfkO1fVMbyOp1Pw3M5VIRHwQoEeI4CNojcoeaNwtbkPUYx6l27vEBRXYi4pKVyyMMqW8j4tSoGZG7TdhZhMJTwLL7a0e2Cis7x+xYKDSgn1n1FOVSkWrXl5/ciFYW/nSC0vXrVu3fHRNhmi9jE/+2XS1Mue/umEV/7BnuKL7DRkmblsAbQfkxdMDpNwhlz/XAe4zrxkXDU3tPV6L4Fx0rnaW7i/jqXdeItqD+8jIOyuVzqnUB8CgYzgh8MI37+TMf5wYdNI1+8uf5GDWeKamtQhSwBwLSDKRftojaDc8kDnj/KuGNA3hO/Tud6X4w== X-Yahoo-Newman-Id: 200113.81055.bm@smtp219.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: I6dSgooVM1mc_AtPc2Siowvf73Hg_ouUHGc4n07BF1EYPRU dNX.XJ0gzm20ZzACd_krU.Prnmdv.qTpCLEEqNxZTxQXugb6d9N8.hQ2pe0q S9gedJXUkRA6hjJoUmHRfg.mDZ3oOr9stHscsVqQAMia2zsu5yCVqgZO70Ne 2TegViXzuxxdoBp1FJUMfODuvMfuo5DbfD3w6ny6d1REa01q5lFUZH6_u._O _L8YYP_E8XSDTKYT1YzGhlCVMzA.SXV96cnTP1kBI2RoeU769YdY5OmY1_5s cJuBdAbDGest5kMYDNa6Gg.MJDSEpGatmUHzdKR3ZZVdiSEG2pxQKgj45uo5 BQaJROpXVGzud9NTSkC2g_qw_BYSYjnfw.3bUOCmtZ.mJFuDuaptk41bnili 8Nit8emVe6nbFkDvhBICCvRzaaOQR43JFwIbwXvo59I4WPae.xrU0MwSqCRG O0TRSB4F0yvEDY1HfFvJaQSY3SvJ69k8o.jA0saV1GoM2packND_5IjCny7r FEj5Y1oluBN.m0lqabASe_RKNUix6AFiKJTOdhN8bNoWplmNSXAYI X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <20160305212517.GK9349@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:9487 Archived-At: Hello Rich; On 03/05/16 16:25, Rich Felker wrote: > On Sat, Mar 05, 2016 at 03:11:28PM -0500, Pedro Giffuni wrote: >> Hello; >> >> Just thought I'd point this out in case there are students looking >> for a summer project (paid by Google): >> >> In FreeBSD we are always open to alternatives. For this GSoC we >> would consider someone willing to work on a musl port. >> >> https://wiki.freebsd.org/SummerOfCodeIdeas#Port_musl_libc >> >> For such a port you obviously have to have love for the C language >> and specific skills (version control, knowledge of the build system, >> UNIX/syscall knowledge), but I think it may very well be a fun >> project for the right person. >> >> We generally ask for very detailed proposals and it certainly >> would help if you get to try FreeBSD before considering a >> proposal, The process is competitive so we are interested >> in your background. >> >> We are aware musl is centered around linux but just as someone >> managed to port glibc to FreeBSD we think it should be possible >> to make a port clean port of musl. This project would only make >> sense if the code is upstreamed, so at some stage we would also >> appreciate support from musl developers. >> >> For applying you should follow the standard procedure with Google. >> https://summerofcode.withgoogle.com/how-it-works/ > > Nice! > > From our side (musl), the biggest obstacle when people have looked at > doing such a port in the past seems to be missing syscalls, especially > futex and related functionality. For that reason, up til now, > FreeBSD's Linux syscall layer has seemed more functional, and a better > basis for musl-on-FreeBSD, than the native syscall layer. I think a > viable proposal needs a solution to this problem on the kernel side -- > perhaps exposing some of these syscalls that are Linux-emulation-only > now in the native API? > First of all, great to hear there is interest on the musl side too. I think the biggest precedent of porting linux-oriented C libraries came from Debian's kFreeBSD. We accomodated a little by for them by defining __FreeBSD_kernel__ in sys/param.h. While using the optional linux-abi futex in FreeBSD could be an option, it is not really the cleanest option. The Debian guys did a port of NPTL using regular pthreads: http://thread.gmane.org/gmane.linux.debian.ports.bsd/11702 I am certain this will require more research but it would be useful for other ports as well. Pedro.