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

  • From: Asif Sardar <engr.asif.sardar@xxxxxxxxxxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Sat, 15 Feb 2014 01:48:36 +0200

On Fri, Feb 14, 2014 at 8:47 AM, Pekka Nikander <pekka.nikander@xxxxxx>wrote:

> Hi Asif,
>
>
>
>
>
> *> Instead of emulator.mk <http://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.*


    1- With following line at emulator.txt file at path
....../Runtime/stm32/make/
        *compiler.cflags.target=    -m32 -march=i386 *

           I get errors:

*g++: error: unrecognized argument in option '-march=i386'*
*           g++: error: unrecognized command line option '-m32'*

    2- However, commenting above, I get .o for all emulator c++ code,
except for emulator_pre.c and emulator_post.c. I get
        following error for these:

...
make PLATFORM=emulator -f ../make/app.mk all
make[1]: Entering directory `/home/asif/Ell-i/Runtime/stm32/build'
g++ -c -std=c++98 -g -Os -Wall -ffunction-sections -fdata-sections
-fno-common -nostdlib  -mthumb -DF_CPU=48000000L -DARDUINO=1.5.4
-DELLI_STM32F051_ELLDUINO -DARDUINO_ARCH_STM32 -DEMULATOR -D__STM32F051__
-Dmain=emulated_main -I../emulator/inc -I../cores/arduelli
-I../system/stm32/inc -I../system/stm32/CMSIS/Include
-I../variants/ellduino    -c -o emulator_pre.o
../emulator/src/emulator_pre.c


*/tmp/ccklpwuF.s: Assembler messages:           /tmp/ccklpwuF.s:18: Error:
character following name is not '#'           make[1]: *** [emulator_pre.o]
Error 1*





> --Pekka
>
>
>
> 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.
>
>


-- 



*With Best Regards,Asif Sardar.+358 43 8265795*

Other related posts: