URL:
  <http://savannah.gnu.org/bugs/?31908>

                 Summary: Hard-coded call to objcopy in
grub-core/genmod.sh.in
                 Project: GNU GRUB
            Submitted by: shlevy
            Submitted on: Fri Dec 17 19:13:49 2010
                Category: Compilation
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Shea Levy
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: Bazaar - trunk
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

grub-core/genmod.sh.in calls objcopy several times, when it should call
@objc...@. 

Noticed this issue when following the Macbook pure EFI tutorial
(http://grub.enbug.org/TestingOnMacbook). I'm installing a 32-bit version of
Linux From Scratch, so I built a cross-compiling toolchain, which, in my case,
installed the 64-bit objcopy as /usr/bin/x86_64-pc-linux-gnu-objcopy.
./configure --target=x86_64-pc-linux-gnu finds that objcopy just fine, but
when make runs genmod.sh it calls the objcopy in my PATH, which is aimed at 32
bit systems and therefore doesn't recognize the format. The fix is simple:
substitute each instance of objcopy with @objc...@. A simple `sed -e
's/objcopy/@OBJCOPY@/g' grub/grub-core/genmod.sh.in.orig >
grub/grub-core/genmod.sh.in 
` should suffice, but I've attached a patch (generated with diff -Naur on
OSX) anyway.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri Dec 17 19:13:49 2010  Name: genmod-objcopy.patch  Size: 886B   By:
shlevy

<http://savannah.gnu.org/bugs/download.php?file_id=22220>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31908>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to