[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel MacBo
From: |
Colin Howarth |
Subject: |
Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel MacBook Pro |
Date: |
Sun, 7 Mar 2010 22:30:12 +0100 |
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.
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
- Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel MacBook Pro,
Colin Howarth <=