[ell-i-developers] Re: Ellduino Emulator: Fixing issues for Linux (Ubuntu 12.04 LTS)

  • From: Pekka Nikander <pekka.nikander@xxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Fri, 14 Feb 2014 08:47:04 +0200

Hi Asif,

> Instead of emulator.mk and emulator.txt (flags changing didn't worked for 
> c++11), I changed the following line in platform.txt at path 
> ....../Runtime/stm32/
> compiler.cmd.cxx.flags=     -c -std=c++11 ---> to c++98

If you are still using C++98, you won't get it compiled.  You need to go back 
to C++11 and install a newer GCC.  See the appended message from the 
arduino-developers mailng list.


Begin forwarded message:

> From: Cristian Maglie <c.maglie@xxxxxx>
> Subject: Re: [Developers] ARM gcc version in the 1.5 betas
> Date: January 20, 2014 13:59:51  GMT+02:00
> To: developers@xxxxxxxxxx
> Hi Angus,
> an update to arm-gcc to the version 4.8.3 has been planned, I've just pushed 
> the fix here:
> https://github.com/arduino/Arduino/pull/1813
> I tested the PR with the Blink sketch only, of course it needs much more 
> testing, a specific build would be extremely useful for that.
> linux32/64 and windows versions are built from source, while the mac version 
> is a re-packaging of the download available from ARM (probably is a better 
> idea to rebuild only the linux64 version since is the only one not available 
> directly from ARM, I'll consider that for the next upgrade).
> C
> In data giovedì 16 gennaio 2014 02:39:25, Angus Gratton ha scritto:
>> Hi everyone,
>> I was just doing some library development and hit a compiler bug with
>> switch statements in gcc 4.4.1 (the gcc version used for ARM
>> compilation in the 1.5.x betas.)[1]
>> I was wondering if the Arduino team would entertain the thought of
>> moving to a more recent ARM toolchain before the 1.5 final release?
>> gcc 4.4.1 was released July 2009, and I think the compiler has
>> improved a lot since then.
>> I appreciate that there are good reasons for keeping the AVR compiler
>> at 4.3, as newer compiler/avrlibc versions may break older libraries,
>> but perhaps as ARM support is still beta there's an opportunity here
>> to adopt a more recent version?[2]
>> Either 4.4.7 or 4.7.3 would seem like good potential candidates -
>> depending on how close one wanted to keep the ARM and AVR major
>> compiler versions.
>> Apologies if I've misunderstood something important about the compiler
>> versions in use.
>> - Angus
>> [1] For anyone curious, the bug was variables being incorrectly
>> optimised out when initialised inside switch statements. Doesn't occur
>> on 4.7.3. Commit with a workaround (changing the switch statement to a
>> sequence of if statements) is here:
>> https://github.com/freetronics/FTOLED/commit/ecb4cd12743254a333942578c7c4a2
>> e70bbc60fa
>> [2] From my personal point of view I'd actually love to see 4.7 or 4.8
>> adopted for both ARM and AVR in the 1.5 releases, but I get that this
>> could mean headaches for the Arduino Team after the release comes out!
> -- 
> Cristian
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to developers+unsubscribe@xxxxxxxxxx.

Other related posts: