crosstool-ng on darwin...

Cosmos Nicolaou cosmos.nicolaou@gmail.com
Wed Jul 29 23:34:00 GMT 2015


On Wed, Jul 29, 2015 at 4:29 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> Cosmos,
>
> On Wed, Jul 29, 2015 at 4:20 PM, Cosmos Nicolaou
> <cosmos.nicolaou@gmail.com> wrote:
>> Hi,
>>
>> I'm trying to build a cross compiler on macs for raspberry pi's. I'm
>> puzzled that some people seem to have made this work even though
>> crosstool-ng wants to build and use glibc which is not supported on
>> darwin? I guess I'm missing something pretty obvious! Thanks!
>>
>> Cheers, Cos.
>
> I've built it on my mac many times.
> Do you have a build issue?

thanks for the prompt response! And yes it fails at the install c library step,

[INFO ]  Installing pass-2 core C gcc compiler: done in 362.00s (at 15:08)
[INFO ]  =================================================================
[INFO ]  Installing C library
[EXTRA]    Configuring C library
[EXTRA]    Building C library
[EXTRA]    Installing C library
[EXTRA]    Configuring C library localedef
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_locales[scripts/build/libc/glibc.sh@644]
[ERROR]  >>        called from:
do_libc_backend_once[scripts/build/libc/glibc.sh@476]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc.sh@151]
[ERROR]  >>        called from: do_libc[scripts/build/libc/glibc.sh@73]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:

configuring glibc:

 ==> Executing: 'CFLAGS=-O2 -fno-stack-protector -U_FORTIFY_SOURCE'
'/Volumes/cross-compile-build/src/glibc-2.21/configure'
'--prefix=/usr'
'--cache-file=/Volumes/cross-compile-build/armv6-rpi-linux-gnueabi/build/build-localedef/config.cache'
'--without-cvs' '--disable-profile' '--without-gd' '--disable-debug'

I don't really understand why it's trying to build glibc at all on the
host? I'm attaching my config file.

Cheers, Cos.


>
> -Bryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my-config
Type: application/octet-stream
Size: 14120 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20150729/fce0201f/attachment.obj>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list