From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WXGG7-00047l-6D for mharc-grub-devel@gnu.org; Mon, 07 Apr 2014 16:35:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXGG1-00044G-8j for grub-devel@gnu.org; Mon, 07 Apr 2014 16:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXGFv-00088e-1e for grub-devel@gnu.org; Mon, 07 Apr 2014 16:35:05 -0400 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:35880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXGFu-00088P-UY for grub-devel@gnu.org; Mon, 07 Apr 2014 16:34:58 -0400 Received: by mail-qc0-f170.google.com with SMTP id x13so7088805qcv.15 for ; Mon, 07 Apr 2014 13:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=hZljgmxSmG5+qIS8YxR9KR5ZoyQZudhiIyPuZ5irTsE=; b=c90qQ3LEnWzXfc3Y0eJhcx/xwbQDyNJUjSVHg2Ys7wN7u3cQi00Ga8/q9LFLEWkVnf SXSX0U//UBM5SOYYDlVIENmEh7nMSh9Hdb0WRHlF8JhFo8K23Q7JUu3VMJwp/jgCCJSQ 1/Z+sEyeouN9Cx4CKrxHUAlgGLKUN681NTsBChDSmcYmuteA0BZ2n5XkBmqaMA0uqoXb qCTB0jI6hGjaMl9f9/oj8XSTFAnqtSPJh0mEzgqUpljkfoRbP/QEYI6v+fr+3NfYWoS3 oPhoVBwhMBj+7JeEtZAmC2hVx4WCpFZ1IRZIy7tr7kivtr06Q20Fhn33SsdVK5JYWcMa 3nHA== X-Received: by 10.224.11.66 with SMTP id s2mr11162351qas.65.1396902898512; Mon, 07 Apr 2014 13:34:58 -0700 (PDT) Received: from ?IPv6:2601:6:2a80:4ba:99e2:932e:80ec:916a? ([2601:6:2a80:4ba:99e2:932e:80ec:916a]) by mx.google.com with ESMTPSA id s111sm24401392qge.19.2014.04.07.13.34.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 13:34:57 -0700 (PDT) Message-ID: <53430BF0.8050403@gmail.com> Date: Mon, 07 Apr 2014 16:34:56 -0400 From: SevenBits User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Patch to compile grub2 with Apple compiler References: <6B5724B7-1255-40AA-8CA7-FF60CA96AB57@zetam.org> <53430217.5090801@gmail.com> In-Reply-To: <53430217.5090801@gmail.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::22a X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 20:35:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/07/2014 03:52 PM, Vladimir '?-coder/phcoder' Serbinenko wrote: > On 07.04.2014 17:04, SevenBits wrote: >> On Monday, April 7, 2014, Yves Blusseau > > wrote: >> >> Hi, >> >> this is a patch to allow compilation of grub2 with Apple >> Compiler >> >> >> Haven't looked at it yet, but if it works, I'd be major. > GRUB was compilable under Apple compiler since quite a long time. > But nobody cared about it and nobody reported problems so it broke > again. If you care about Apple, then report problems, preferably > with patch Well... the issue is that Apple's compiler cannot build executables in anything except OS X's native Mach-O format. This obviously rules out one of GRUB's supported platforms (EFI) which requires PE binaries, unless we're going to ship (or require as a build dependency) a tool that can convert between the various object formats. I'm not very knowledgeable about GRUB for non-EFI platforms, as EFI is my main focus for when I use GRUB. But Apple's compiler is finicky in general so I expect there might be some issues in building e.g GRUB-PC. That's AFAIK, though. Perhaps someone with more knowledge about GRUB's internals in this area than I can elaborate further. But I'd expect any Apple solution to suffer from neglect. GRUB isn't used much on Apple hardware, and when it is, it is used to boot Linux and is compiled on that platform. And even when GRUB *is* built on OS X, it is typically done so with a cross compiler. Using Apple's toolchain just isn't a big need unfortunately. >> Currently I have to build GRUB on Linux when my current >> development machine is a Mac. This will be a big development, at >> least for me. >> >> >> _______________________________________________ Grub-devel >> mailing list Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> > > > > > _______________________________________________ Grub-devel mailing > list Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTQwvwAAoJEFbRvtGxmFPETZwH/jDXwpbGWK1XVsPOJe8PE5jz 9AH+EixFVIcukFLGyHlYSPzq27RVYtPuEDEp0XIybs6VNVloUefYv5Rb9tPkwNtd iQAMR93u2X8pjJAjjd315b9167LubAQ4a/Eu8hnhGl+HLWprX+XY3ru1l3Ktc7e1 5N8KVYRRb9itmSM7wh+WJFK5Xu7rjG5DRXV0trO+zTIcpCouUMX69ZC1BLk8Lf5H eVMMRi8kOmTdfgC7O/bdFNar5FgWRpc3Uv+ge/5QelpeZxPsGUOR2DVsVh9CiI7Z XUi4hYCo/eZyilIXdIsvQRAtnD5nB5hQfhEA1wD5+vs6QmyV9hbT3cALWvwWNds= =v80o -----END PGP SIGNATURE-----