All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about static compiling
@ 2008-10-25 15:47 Joe Lewis
  2008-10-25 17:14 ` Manoel
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Lewis @ 2008-10-25 15:47 UTC (permalink / raw)
  To: grub-devel

Hello, folks;

I joined this list as I have been unable to find a solution that I agree 
with on a simple question.  This should be short, and an answer should 
help others to find solutions through searching.  My simple question is 
- how do I compile a static form of grub2?

The background - I am trying to create my own LFS system on a dual 
quad-core Xeon (x86_64), and the LFS turns out to be a pure-64 bit 
environment.  I am unable to compile grub, as it requires a 32 bit libc, 
and everything I find about grub shows I will have to use a statically 
compiled version.  My research (mailing list, google, etc) only revealed 
setting the enviroment variable for the CFLAGS with a -static, but that 
STILL resulted in the binaries holding a reference to /lib/ld-linux.so, 
which doesn't exist in a true 64 bit environment - it is 
/lib/ld-linux-x86_64.so .  And, since it is a 64 bit environment, the 
"static" binaries complain about a corrupt shared object if one just 
slaps a symlink in there (I've tried everything I can think of).

I finally hit a wall, and I do not know where to look next.  Has anyone 
built grub2 on another platform for use in an LFS pure-64 bit 
environment?  Has anyone successfully compiled grub2 in a 64 bit 
environment (I doubt this, but it doesn't hurt to ask) ?  I'd be willing 
to act as a guinea pig if anyone has some patches to test with, etc.  I 
had the svn version of 1886.

Many thanks for taking the time to read this,
Joe



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about static compiling
  2008-10-25 15:47 Question about static compiling Joe Lewis
@ 2008-10-25 17:14 ` Manoel
  2008-10-26 22:45   ` Joe Lewis
  0 siblings, 1 reply; 3+ messages in thread
From: Manoel @ 2008-10-25 17:14 UTC (permalink / raw)
  To: The development of GRUB 2

Even if are using a 64-bit system you can still have 32-bit libraries.
I'm not sure about it bur I think the configure script will take care of
all flags for you.

On Sat, 2008-10-25 at 09:47 -0600, Joe Lewis wrote:
> Hello, folks;
> 
> I joined this list as I have been unable to find a solution that I agree 
> with on a simple question.  This should be short, and an answer should 
> help others to find solutions through searching.  My simple question is 
> - how do I compile a static form of grub2?
> 
> The background - I am trying to create my own LFS system on a dual 
> quad-core Xeon (x86_64), and the LFS turns out to be a pure-64 bit 
> environment.  I am unable to compile grub, as it requires a 32 bit libc, 
> and everything I find about grub shows I will have to use a statically 
> compiled version.  My research (mailing list, google, etc) only revealed 
> setting the enviroment variable for the CFLAGS with a -static, but that 
> STILL resulted in the binaries holding a reference to /lib/ld-linux.so, 
> which doesn't exist in a true 64 bit environment - it is 
> /lib/ld-linux-x86_64.so .  And, since it is a 64 bit environment, the 
> "static" binaries complain about a corrupt shared object if one just 
> slaps a symlink in there (I've tried everything I can think of).
> 
> I finally hit a wall, and I do not know where to look next.  Has anyone 
> built grub2 on another platform for use in an LFS pure-64 bit 
> environment?  Has anyone successfully compiled grub2 in a 64 bit 
> environment (I doubt this, but it doesn't hurt to ask) ?  I'd be willing 
> to act as a guinea pig if anyone has some patches to test with, etc.  I 
> had the svn version of 1886.
> 
> Many thanks for taking the time to read this,
> Joe
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
-- 
Best Regards,

Manoel Abranches <mrabran@linux.vnet.ibm.com>
IBM Linux Technology Center Brazil




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about static compiling
  2008-10-25 17:14 ` Manoel
@ 2008-10-26 22:45   ` Joe Lewis
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Lewis @ 2008-10-26 22:45 UTC (permalink / raw)
  To: The development of GRUB 2

Manoel wrote:
> Even if are using a 64-bit system you can still have 32-bit libraries.
> I'm not sure about it bur I think the configure script will take care of
> all flags for you.\
>   

It actually doesn't have the 32 bit.  In fact, configure errors out 
because it cannot find the 32 bit libc, which doesn't exist on an LFS 
64-bit system that was compiled purely for 64 bit.  So the configure 
script cannot handle those flags.

What I have resorted to is attempting to compile it on a fedora core 8 
platform.  Unfortunately, this isn't creating static libraries - it 
still requires some 32-bit shared objects, which means I cannot run it 
on the 64 bit to install it there.

Am I going to have to run another distribution's rescue prompt and 
manually install it from there?

Joe




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-26 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-25 15:47 Question about static compiling Joe Lewis
2008-10-25 17:14 ` Manoel
2008-10-26 22:45   ` Joe Lewis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.