grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling/running Grub 1.97.2 on Mac OS X 10.6.2 on intel M


From: Vladimir 'φ-coder/phcoder' Serbinenko
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
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]