All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yves Blusseau <blusseau@zetam.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Problem compiling grub 1.98 on MacOSX
Date: Mon, 12 Apr 2010 15:36:18 +0200	[thread overview]
Message-ID: <4BC321D2.2060802@zetam.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

  Hi,

i have an error when trying to compile grub 1.98 on MacOSX 10.6.2:

gcc-4.2 -Iboot/i386/pc -I./boot/i386/pc -I./include -I. -I./include 
-Wall -W -DASM_FILE=1 -nostdinc -fno-builtin  -Os 
-DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith 
-Wmissing-prototypes                -Wundef -Wstrict-prototypes -g 
-falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse 
-mno-sse2 -mno-3dnow -DAPPLE_CC=1 -fnested-functions -m32 -m32  
-DGRUB_FILE=\"boot/i386/pc/diskboot.S\" -MD -c -o 
diskboot_img-boot_i386_pc_diskboot.o boot/i386/pc/diskboot.S
gcc-4.2 -o diskboot.exec diskboot_img-boot_i386_pc_diskboot.o -nostdlib  
-m32  -nostdlib -nostdlib -static -Wl,-preload -Wl,-segalign,20 
-Wl,-image_base,0x8000
ld_classic: diskboot_img-boot_i386_pc_diskboot.o illegal reference to 
debug section, from non-debug section (__TEXT,__text) via relocation 
entry (5) to section (__DWARF,__debug_line)
collect2: ld returned 1 exit status
make: *** [diskboot.exec] Error 1


If i had .byte 0 at the end of boot/i386/pc/diskboot.S the error is 
removed but the size of diskboot.img is 544 bytes instead of 512.

Best regards,
Yves Blusseau



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3326 bytes --]

                 reply	other threads:[~2010-04-12 13:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BC321D2.2060802@zetam.org \
    --to=blusseau@zetam.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.