All of lore.kernel.org
 help / color / mirror / Atom feed
* installing on x86_64
@ 2007-05-22 17:05 Constantine Kousoulos
  2007-05-26 23:14 ` Jerone Young
  0 siblings, 1 reply; 9+ messages in thread
From: Constantine Kousoulos @ 2007-05-22 17:05 UTC (permalink / raw)
  To: grub-devel

Hello,

I fetched the latest sources from cvs and tried to install grub2. 
I followed the guide at the wiki http://grub.enbug.org/TestingOnX86.

'configure --prefix=/boot/grub2': works ok.
'make': ok
'sudo make install': complaints about missing file 
utils/grub.d/README.  easy to overcome.
'sudo grub-install --grub-setup=/boot/grub/grub.cfg /dev/hda': 
there is no arg like '--grub-setup'. i used instead 'grub-install 
--root-directory=/boot/grub2/ /dev/hda'
'sudo grub-setup  --directory=/boot/grub 
--device-map=/boot/grub/device.map /dev/hda':
i get this error
'grub-setup: error: cannot stat /boot/grub2/boot.img'
so i copy boot.img to /boot/grub2. Then i get the same complaint 
about core.img which does not exist.

Any advice is welcome.

Thanks,
Constantine



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

* Re: installing on x86_64
  2007-05-22 17:05 installing on x86_64 Constantine Kousoulos
@ 2007-05-26 23:14 ` Jerone Young
  2007-05-27  0:40   ` Jeroen Dekkers
  0 siblings, 1 reply; 9+ messages in thread
From: Jerone Young @ 2007-05-26 23:14 UTC (permalink / raw)
  To: The development of GRUB 2

Are you sure you did this on an x86-64 install. Current CVS still
suffers from the not being able to properly compile on x86-64 systems.
I am looking into it again now, but I think you may be mistaken in how
you are using it? What distro & gcc version are you using ?

On 5/22/07, Constantine Kousoulos <wuwei@freemail.gr> wrote:
> Hello,
>
> I fetched the latest sources from cvs and tried to install grub2.
> I followed the guide at the wiki http://grub.enbug.org/TestingOnX86.
>
> 'configure --prefix=/boot/grub2': works ok.
> 'make': ok
> 'sudo make install': complaints about missing file
> utils/grub.d/README.  easy to overcome.
> 'sudo grub-install --grub-setup=/boot/grub/grub.cfg /dev/hda':
> there is no arg like '--grub-setup'. i used instead 'grub-install
> --root-directory=/boot/grub2/ /dev/hda'
> 'sudo grub-setup  --directory=/boot/grub
> --device-map=/boot/grub/device.map /dev/hda':
> i get this error
> 'grub-setup: error: cannot stat /boot/grub2/boot.img'
> so i copy boot.img to /boot/grub2. Then i get the same complaint
> about core.img which does not exist.
>
> Any advice is welcome.
>
> Thanks,
> Constantine
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>



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

* Re: installing on x86_64
  2007-05-26 23:14 ` Jerone Young
@ 2007-05-27  0:40   ` Jeroen Dekkers
  2007-05-27  0:44     ` Jerone Young
  0 siblings, 1 reply; 9+ messages in thread
From: Jeroen Dekkers @ 2007-05-27  0:40 UTC (permalink / raw)
  To: The development of GRUB 2

At Sat, 26 May 2007 18:14:23 -0500,
Jerone Young wrote:
> 
> Are you sure you did this on an x86-64 install. Current CVS still
> suffers from the not being able to properly compile on x86-64 systems.

It compiles fine here... are you sure your compiler can generate
32-bit code?

Jeroen Dekkers



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

* Re: installing on x86_64
  2007-05-27  0:40   ` Jeroen Dekkers
@ 2007-05-27  0:44     ` Jerone Young
  2007-05-27 10:27       ` Jeroen Dekkers
  0 siblings, 1 reply; 9+ messages in thread
From: Jerone Young @ 2007-05-27  0:44 UTC (permalink / raw)
  To: The development of GRUB 2

Really..exactly waht distro and gcc version are you using. There is
still lack for _start with compiling 32-bit binaries using gcc x86-64.
I'm currently been testing on Fedora Core 7 beta and I see the problem
consistently (though I do need to update it some). Others have
reported the problem in the past also. What I do need to know is how
you are successfully compiling it . Is your gcc version less then 4.x
?

On 5/26/07, Jeroen Dekkers <jeroen@vrijschrift.org> wrote:
> At Sat, 26 May 2007 18:14:23 -0500,
> Jerone Young wrote:
> >
> > Are you sure you did this on an x86-64 install. Current CVS still
> > suffers from the not being able to properly compile on x86-64 systems.
>
> It compiles fine here... are you sure your compiler can generate
> 32-bit code?
>
> Jeroen Dekkers
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>



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

* Re: installing on x86_64
  2007-05-27  0:44     ` Jerone Young
@ 2007-05-27 10:27       ` Jeroen Dekkers
  2007-05-29  4:21         ` Jerone Young
  0 siblings, 1 reply; 9+ messages in thread
From: Jeroen Dekkers @ 2007-05-27 10:27 UTC (permalink / raw)
  To: The development of GRUB 2

At Sat, 26 May 2007 19:44:09 -0500,
Jerone Young wrote:
> 
> Really..exactly waht distro and gcc version are you using. There is
> still lack for _start with compiling 32-bit binaries using gcc x86-64.
> I'm currently been testing on Fedora Core 7 beta and I see the problem
> consistently (though I do need to update it some). Others have
> reported the problem in the past also. What I do need to know is how
> you are successfully compiling it . Is your gcc version less then 4.x
> ?

I'm using Debian, both gcc 4.1 and 4.2 works. Missing _start means
that your compiler can't generate 32-bit programs. Test this first by
compiling a simple test program (e.g. "int main (){return 0;}") using
-m32. That probably doesn't result in a working executable either.

Jeroen Dekkers



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

* Re: installing on x86_64
  2007-05-27 10:27       ` Jeroen Dekkers
@ 2007-05-29  4:21         ` Jerone Young
  2007-05-29 10:30           ` Constantine Kousoulos
  0 siblings, 1 reply; 9+ messages in thread
From: Jerone Young @ 2007-05-29  4:21 UTC (permalink / raw)
  To: The development of GRUB 2; +Cc: wuwei

Ok.. moving over to ubuntu (fiesty) it appears things do work (once
you have all the 32bit shared libs installed). Wow... I was basically
spinning my wheels for a bit there.

I don't appear to have a problem with the binaries though. I will show
what I did:

1) ./configure --program-transform-name="s/grub/grub2/" --prefix=/usr
(this will rename everything grub2 and not conflict with the current
grub install)

2) make && make install

3) grub2-install /dev/sda

I did not reboot. But It ran grub2-install ran fine (and of course all
the programs being tried, which the grub-install script uses) and it
ran and when through the process just fine. I assume based on this the
grub did install just fine (as it would have errored otherwise).


On 5/27/07, Jeroen Dekkers <jeroen@vrijschrift.org> wrote:
> At Sat, 26 May 2007 19:44:09 -0500,
> Jerone Young wrote:
> >
> > Really..exactly waht distro and gcc version are you using. There is
> > still lack for _start with compiling 32-bit binaries using gcc x86-64.
> > I'm currently been testing on Fedora Core 7 beta and I see the problem
> > consistently (though I do need to update it some). Others have
> > reported the problem in the past also. What I do need to know is how
> > you are successfully compiling it . Is your gcc version less then 4.x
> > ?
>
> I'm using Debian, both gcc 4.1 and 4.2 works. Missing _start means
> that your compiler can't generate 32-bit programs. Test this first by
> compiling a simple test program (e.g. "int main (){return 0;}") using
> -m32. That probably doesn't result in a working executable either.
>
> Jeroen Dekkers
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>



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

* Re: installing on x86_64
  2007-05-29  4:21         ` Jerone Young
@ 2007-05-29 10:30           ` Constantine Kousoulos
  2007-05-29 15:39             ` Constantine Kousoulos
  0 siblings, 1 reply; 9+ messages in thread
From: Constantine Kousoulos @ 2007-05-29 10:30 UTC (permalink / raw)
  To: The development of GRUB 2

Thank you for your reply. After so much time, i had totally given 
up on grub2.

I have a debian-amd64/unstable system running on a turion64 
processor with gcc 4.1.3, autoconf 2.61 and automake 1.10.

I will try again to install grub2 using your instructions and 
report back.

Constantine



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

* Re: installing on x86_64
  2007-05-29 10:30           ` Constantine Kousoulos
@ 2007-05-29 15:39             ` Constantine Kousoulos
  2007-05-29 16:44               ` Robert Millan
  0 siblings, 1 reply; 9+ messages in thread
From: Constantine Kousoulos @ 2007-05-29 15:39 UTC (permalink / raw)
  To: The development of GRUB 2

Jerone, thanks to your instructions grub2 was installed 
automagically!!

The only thing that wasn't set up automatically was grub.cfg but 
this is a minor issue to resolve.

Are there any objections to replace the wiki's inaccurate 
instructions at the section "TestingOnX86/Installing GRUB 2 into a 
real system" with Jerone's instructions? I assume he is too busy 
to do it himself so i volunteer. If i don't get any positive 
feedback i won't do it because i'm no grub2 expert and maybe you 
want someone more experienced to do it.

Thanks,
Constantine



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

* Re: installing on x86_64
  2007-05-29 15:39             ` Constantine Kousoulos
@ 2007-05-29 16:44               ` Robert Millan
  0 siblings, 0 replies; 9+ messages in thread
From: Robert Millan @ 2007-05-29 16:44 UTC (permalink / raw)
  To: The development of GRUB 2

On Tue, May 29, 2007 at 06:39:04PM +0300, Constantine Kousoulos wrote:
> Jerone, thanks to your instructions grub2 was installed 
> automagically!!
> 
> The only thing that wasn't set up automatically was grub.cfg but 
> this is a minor issue to resolve.

You can use update-grub for that.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.



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

end of thread, other threads:[~2007-05-29 16:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-22 17:05 installing on x86_64 Constantine Kousoulos
2007-05-26 23:14 ` Jerone Young
2007-05-27  0:40   ` Jeroen Dekkers
2007-05-27  0:44     ` Jerone Young
2007-05-27 10:27       ` Jeroen Dekkers
2007-05-29  4:21         ` Jerone Young
2007-05-29 10:30           ` Constantine Kousoulos
2007-05-29 15:39             ` Constantine Kousoulos
2007-05-29 16:44               ` Robert Millan

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.