This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Newlib cross-compiling issue
- From: "Alexander Kurakin via newlib" <newlib at sourceware dot org>
- To: newlib <newlib at sourceware dot org>
- Date: Mon, 12 Dec 2016 00:12:14 +0300
- Subject: Newlib cross-compiling issue
- Authentication-results: sourceware.org; auth=none
- Authentication-results: f226.i.mail.ru; auth=pass smtp.auth=kuraga333 at mail dot ru smtp.mailfrom=kuraga333 at mail dot ru
- Reply-to: Alexander Kurakin <kuraga333 at mail dot ru>
- Reply-to: Alexander Kurakin <kuraga333 at mail dot ru>
Good day!
I'm trying to compile Newlib for STM32F4DISCOVERY. My system is Ubuntu 14.04 x86_64, my toolchain is ARM GCC Embedded toolchain [1] (so compiler is arm-none-eabi-gcc).
How do I configure and compile? Show me a command, please?
(Sure) I've done some actions but they are all unsuccessful. Most often cases (while playing with --target, --host, --build) are:
* unrecognized target machine,
* host compiler is used instead of target while "compiler checking" (and it doesn't recognize ARM-specific options),
* (target compiler is used and) executable format error.
CFLAGS I add: -DPREFER_SIZE_OVER_SPEED -mfloat-abi=softfp -mcpu=cortex-m4 -mthumb
Switches I add: --disable-libquadmath --disable-libquadmath-support --disable-libstdcxx --disable-newlib-fvwrite-in-streamio --disable-newlib-fseek-optimization --disable-newlib-wide-orient --disable-newlib-unbuf-stream-opt --disable-multilib --disable-newlib-multithread --disable-newlib-io-float --disable-newlib-supplied-syscalls
Thanks!
--
Alexander Kurakin