help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cross-compiling grub-1.98 i686 to x86_64: gentrigtables


From: Eric Herman
Subject: cross-compiling grub-1.98 i686 to x86_64: gentrigtables
Date: Sat, 07 May 2011 11:26:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10

Hello address@hidden helpers,

I'm cross compiling from an i686 linux host for an x86_64 linux target.

It seems that make builds "gentrigtables" (which is an ELF 64-bit LSB executable, naturally) then attempts to execute "./gentrigtables > trigtables.c"

$ make && echo YAY || echo "DARN $?"
./gentrigtables > trigtables.c
./gentrigtables: 1: ELF: not found
./gentrigtables: 2: : not found
./gentrigtables: 3: : not found
./gentrigtables: 6: 8H: not found
./gentrigtables: 7: H: not found
./gentrigtables: 9: Syntax error: "(" unexpected
make: *** [trigtables.c] Error 2
make: *** Deleting file `trigtables.c'
DARN 2
$ file ./gentrigtables
./gentrigtables: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.30, not stripped


Since my i686 host system can only execute ELF 32 binaries, it is no surprise that the ELF 64 gentrigtables fails.


In the ChangeLog from 2010-02-06 by Robert Millan I see:
 * gentrigtables.c: New file.  C rewrite of gentrigtables.py

Of course removing dependencies is often a very desirable thing.
However building and executing a binary only works with native builds.
Surely there is a way to work around this.

Looking for "cross-compile" in the ChangeLog I see that on 2009-09-11 Colin Watson wrote:
        * configure.ac: Don't look for help2man when cross-compiling.
Which is a long time ago.

However, shortly after the 2010-02-06 entry, I see that on 2010-02-13 that Vladimir Serbinenko wrote:
        Properly create cross-endian images.
Perhaps that suggests he was successfully doing some cross-compiling.

The FAQ is very short, but it points to the wiki: http://grub.enbug.org/
Unfortunately, the wiki is down.


Anyone recently cross-compiled Grub?
Any advice for me?

Cheers,
 -Eric


output of env:
 http://pastebin.com/gyrN0A6A
output of configure:
 http://pastebin.com/GNtr0K93
output of make:
 http://pastebin.com/VhhcU0zk
versions:
 http://pastebin.com/5htm7Ygi

--
http://www.freesa.org/ -- mobile: +31 620719662
aim: ericigps -- skype: eric_herman -- jabber: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]