Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VT6lP-000380-5H for mharc-grub-devel@gnu.org; Mon, 07 Oct 2013 05:06:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT6lJ-00034l-2C for grub-devel@gnu.org; Mon, 07 Oct 2013 05:06:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT6lF-0000Wa-PD for grub-devel@gnu.org; Mon, 07 Oct 2013 05:05:56 -0400 Received: from gg6-2.genua.de ([2001:a60:f08e:c000::2]:33596 helo=gg.genua.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT6lE-0000Vq-PV for grub-devel@gnu.org; Mon, 07 Oct 2013 05:05:53 -0400 Received: from gg.genua.de (localhost.genua.de [127.0.0.1]) by gg.genua.de (8.14.5/8.14.5) with ESMTP id r9795nBO023463 for ; Mon, 7 Oct 2013 11:05:49 +0200 (CEST) Received: (from localhost) by gg.genua.de (MSCAN) id 3/gg.genua.de/smtp-gw/mscan; Mon Oct 7 11:05:49 2013 From: Ilya Bakulin To: "Vladimir =?utf-8?q?=27=CF=86-coder/phcoder=27?= Serbinenko" Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem Date: Mon, 7 Oct 2013 11:05:34 +0200 User-Agent: KMail/1.9.10 (enterprise35 20120322.0d8ab49a133482885a7a6ae00ec4472b1859206f) References: <201308091537.37473.Ilya_Bakulin@genua.de> <201309231759.57631.Ilya_Bakulin@genua.de> <5240694F.7080300@gmail.com> In-Reply-To: <5240694F.7080300@gmail.com> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <201310071105.36211.Ilya_Bakulin@genua.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:a60:f08e:c000::2 Cc: grub-devel@gnu.org 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 Oct 2013 09:06:02 -0000 On Monday 23 September 2013 18:16:15 Vladimir '=CF=86-coder/phcoder' Serbin= enko=20 wrote: > On 23.09.2013 17:59, Ilya Bakulin wrote: > > Hi Vladimir, > > So I'm preparing a OpenBSD port of GRUB2. I have chosen a revision 5152 > > for the initial version of the port. > > I already did couple revisions ago. After that I made further > simplifications to multi-OS mess and it's possible that there is minor > brokenness Hi Vladimir, as already discussed on IRC, by "port" I meant an entry in OpenBSD Ports=20 Collection. That is like meta-information used to build a package to be=20 installed later by OpenBSD package framework. > The issue I didn't solve yet is OpenBSD using double/float in the > headers (but you can comment out those 2 lines in Makefile.common). Not sure which 2 lines you're talking about, currently I'm just using the=20 patch you've proposed earlier (#undef double/#define double signed long). Another issue I've found is that on OpenBSD/i386 the wrong linker format is= =20 used, this patch fixes that: $ bzr diff =3D=3D=3D modified file 'configure.ac' =2D-- configure.ac 2013-09-23 11:48:10 +0000 +++ configure.ac 2013-10-07 10:57:23 +0000 @@ -655,6 +655,14 @@ TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -Wl,-melf_x86_64_fbsd" fi ;; + openbsd*) + if test x"$target_cpu" =3D xi386; then + TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -Wl,-melf_i386_obsd" + fi + if test x"$target_cpu" =3D xx86_64; then + TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -Wl,-melf_x86_64_obsd" + fi + ;; *) if test x"$target_cpu" =3D xi386; then TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -Wl,-melf_i386" > Other than that it should work. > Checking out r5152 and porting it would be you duplicating my work, > please don't. So it makes sense for me to update to the later revision, doesn't it? The reason why I'm asking is that I should provide an URL to download the c= ode=20 snapshot from. Currently, as there is no GRUB2 release which includes the=20 OpenBSD-related patches, I have to run ./autogen, pack the tarball myself a= nd=20 put it on my server.=20 > Rather help us testing, look into a way to avoid double/float for sure > on OpenBSD and identify which other features are needed/helpful for > OpenBSD (RAID? LFS?) I have one more patch for cmd_loopback that I find useful for certain cases. I will post it in the separate email later. =2D- Ilya