OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 9:49 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Newlib cross-compiling issue
PostPosted: Sun Dec 11, 2016 3:11 pm 
Offline

Joined: Mon Nov 14, 2016 2:42 am
Posts: 11
Good day!

I'm trying to compile Newlib for STM32F4DISCOVERY. My system is Ubuntu 14.04 x86_64, my toolchain is GNU ARM Embedded toolchain (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:
Code:
-DPREFER_SIZE_OVER_SPEED -mfloat-abi=softfp -mcpu=cortex-m4 -mthumb


Switches I add:
Code:
--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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 201 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group