Issue building toolchain with newlib on Yosemite

Bryan Hundven bryanhundven@gmail.com
Sat Feb 21 04:54:00 GMT 2015


On Fri, 2015-02-20 at 23:30 -0500, John Wood wrote:
> Success!!!
> 
> Found the problem, I was building with the Linaro binutils and linaro
> newlib.  Changed these to straight binutils and newlib and successfully
> built the entire toolchain including gdb for arm-unknown-eabi including
> gdb.  BTW, how to I change the tool to be arm-eabi instead of
> arm-unknown-eabi?  

I just merged a change to add config knobs to binutils and glibc for
enabling/disabling linaro support. I think I forgot newlib, so I'll look
look into that

For "arm-eabi", I would recommend:

 CT_TARGET_ALIAS="arm-eabi"

[EDIT] ... But I hit send too fast, and was going to mention that I
don't know how CT_TARGET_ALIAS will work with multilib, so let us know
your results!

> 
> Awesome.  I built with mutilibs so I am hoping I have support for all
> my targets. I will take a look at the build output and check my flags
> and see that they make sense.
> 
> I am looking to develop for the STM32, some older powerPC devices and
> PIC32 using these tools on MACOS.  I will report if I can successfully
> build all three platforms.  At this time I am not testing the
> toolchains but I hope to start working with the soon.
> 
> Woody
> 
> 
> > On Feb 20, 2015, at 8:44 PM, John Wood <woody244@icloud.com> wrote: >

> > Thanks,
> > 
> > Here is the failure
> > 
> > 
> > [ALL  ]    /Volumes/Embedded/tools/builds/arm/.build/tools/bin/install -c -m 644 crt0.o /Volumes/Embedded/Crosstool/arm-unknown-eabihf/arm-unknown-eabihf/lib/$x
> > [ALL  ]    set -e; for x in linux-crt0.o libgloss-linux.a; do /Volumes/Embedded/tools/builds/arm/.build/tools/bin/install -c -m 644 $x /Volumes/Embedded/Crosstool/arm-unknown-eabihf/arm-unknown-eabihf/lib/$x; done
> > [ALL  ]    set -e; for x in linux.specs; do /Volumes/Embedded/tools/builds/arm/.build/tools/bin/install -c -m 644 /Volumes/Embedded/tools/builds/arm/.build/src/newlib-linaro-2.2.0-2015.01/libgloss/arm/$x /Volumes/Embedded/Crosstool/arm-unknown-eabihf/arm-unknown-eabihf/lib/$x; done
> > [ALL  ]    /usr/local/bin/ginstall: cannot stat '/Volumes/Embedded/tools/builds/arm/.build/src/newlib-linaro-2.2.0-2015.01/libgloss/arm/linux.specs': No such file or directory
> > [ERROR]    make[4]: *** [install-linux] Error 1
> > [ERROR]    make[3]: *** [install] Error 2
> > [ERROR]    make[2]: *** [install-target-libgloss] Error 2
> > [ERROR]    make[1]: *** [install] Error 2
> > [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@216]
> > [ERROR]  >>        called from: do_libc[scripts/build/libc/newlib.sh@133]
> > [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:
> > [ERROR]  >>      '/Volumes/Embedded/tools/crosstool-ng/docs/B - Known issues.txt'
> > [ERROR]  
> > [ERROR]  (elapsed: 5:37.00)
> > 
> > 
> > 
> >> On Feb 20, 2015, at 12:53 AM, Reinoud Koornstra <reinoudkoornstra@gmail.com> wrote:
> >> 
> >> Hi,
> >> 
> >> The part of the buildlog file where it failed would help. The info
> >> right now is very minimal as I've not seen it before.
> >> 
> >> 
> >> 
> >> On Feb 19, 2015 9:38 PM, "John Wood" <woody244@icloud.com> wrote:
> >>> 
> >>> Greetings,
> >>> 
> >>> I have made reasonable progress attempting to build toolchains for arm-unknown-eabi, looking to also build powerpc-eabi and mips-sde-elf.  I got through pass two of gcc but got and error installing the C libraries.  I am building 4.9.2 and running the latest development snapshot of crosstool-ng.
> >>> 
> >>> Has anyone seen this?
> >>> 
> >>> Thanks,
> >>> Wood
> >>> 
> >>> [INFO ]  Installing C library
> >>> [EXTRA]    Configuring C library
> >>> [EXTRA]    Building C library
> >>> [EXTRA]    Installing C library
> >>> [ERROR]    make[4]: *** [install-linux] Error 1
> >>> [ERROR]    make[3]: *** [install] Error 2
> >>> [ERROR]    make[2]: *** [install-target-libgloss] Error 2
> >>> [ERROR]    make[1]: *** [install] Error 2
> >>> [ERROR]
> >>> [ERROR]  >>
> >>> [ERROR]  >>  Build failed in step 'Installing C library’
> >>> [ERROR]  >>        called in step '(top-level)’
> >>> 
> >>> 
> >>> --
> >>> For unsubscribe information see http://sourceware.org/lists.html#faq
> >>> 
> >> 
> >> --
> >> For unsubscribe information see http://sourceware.org/lists.html#faq
> >> 
> > 
> > 
> > --
> > For unsubscribe information see http://sourceware.org/lists.html#faq
> > 
> 
> 
> -- For unsubscribe information see http://sourceware.org/lists.html#faq
> 

-- 
-Bryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20150221/a57261db/attachment.sig>


More information about the crossgcc mailing list