All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel MacBook Pro
@ 2010-03-07 21:30 Colin Howarth
  2010-03-10 13:09 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Colin Howarth @ 2010-03-07 21:30 UTC (permalink / raw)
  To: grub-devel

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


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

end of thread, other threads:[~2010-03-10 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.