From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel MacBook Pro
Date: Wed, 10 Mar 2010 14:09:14 +0100 [thread overview]
Message-ID: <4B9799FA.6000008@gmail.com> (raw)
In-Reply-To: <50CB6C52-7E83-4423-9DF8-E4EB67E3B156@howarth.de>
[-- Attachment #1: Type: text/plain, Size: 1683 bytes --]
Colin Howarth wrote:
> Hi,
>
> I've had a look at the archives, but it's not clear to me which problems are current.
>
> I do:
>
> ./configure --with-platform=efi --target=i386
>
> (i386 instead of x86_64) because the FreeType libs (installed in /usr/local/fink/lib/freetype219 are 32 bit libraries.
>
>
"target" is only about which system grub itself runs under. For instance
your command will generate efi32 binary which is unsuitable for efi64.
The system grub utils run under is "host" and not "target"
>
> Compilation nevertheless fails with:
>
> ld: warning: in /usr/local/fink/lib/libfreetype.dylib, file is not of required architecture
>
> unless I insert liberal sprinklings of " -arch i386 -m32 " in all the CCFLAGS and LDFLAGS (in the Makefile).
>
>
>
>
> Then, when compilation succeeds, actually running
>
> ./grub-mkimage -d . -o grub.efi part_gpt hfsplus fat ext2 normal sh chain boot configfile linux
>
> also fails due to the "unknown" symbol _memcmp.
>
> memcmp IS in stdlib. But one of the flags set during the ./configure is " -nostdlib "
>
>
> If I remove all "-nostdlib" from ./configure I get:
>
> checking whether target compiler is working... no
> configure: error: cannot compile for the target
>
>
>
> gcc is version 4.2.1 (Apple Inc. build 5646) (dot 1)
>
>
>
>
> Is there currently a working version for Mac OS X 10.6.2?
>
>
> Any pointers much appreciated!
>
>
> colin
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
prev parent reply other threads:[~2010-03-10 13:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-07 21:30 Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel MacBook Pro Colin Howarth
2010-03-10 13:09 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
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=4B9799FA.6000008@gmail.com \
--to=phcoder@gmail.com \
--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.