Re: Clang cross-compiling to Cortex-M4 (ARM)

2018-10-01 Thread Brooks Davis
On Sun, Sep 30, 2018 at 02:20:26PM +0200, Goran Meki?? wrote: > Hello, > > With Clang 4.0 cross-compiling works, but any later versions (I tried > 5.0, 6.0 and 7.0 from packages) fails. This is the simple test program: > > #include > > int main() { > return 0; > } > > > These are the

Clang cross-compiling to Cortex-M4 (ARM)

2018-09-30 Thread Goran Mekić
Hello, With Clang 4.0 cross-compiling works, but any later versions (I tried 5.0, 6.0 and 7.0 from packages) fails. This is the simple test program: #include int main() { return 0; } These are the results: clang -fno-builtin -nostdlib -ffreestanding -target arm-none-eabi -march=armv7-m