[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: Fri, 14 Feb 2014 03:40:15 +0200

Now I am getting the following error:




*In file included from ../emulator/inc/USART.h:28:0,                 from
../emulator/src/USART.cpp:20:../emulator/inc/stm32f0xx.h:61:19: fatal
error: USART.H: No such file or directorycompilation terminated.*

I found follwing lines in
....../Runtime/stm32/stm32/emulator/inc/stm32f0xx.h



*/* * Undefine the main address defines in the real stm32f0xx.h, causing *
a compile error on all constructs that use them. */*

Can you please elaborate on it more ...







On Fri, Feb 14, 2014 at 3:28 AM, Asif Sardar <
engr.asif.sardar@xxxxxxxxxxxxxx> wrote:

> I tried fixing the flag issues mentioned previously ...
>
> 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
>
> And I got following error:
>
>
>
>
>
> *In file included from /usr/include/stdint.h:26:0,                 from
> /usr/lib/gcc/x86_64-linux-gnu/4.6/include/stdint.h:3,                  from
> ../emulator/src/emulator.cpp:20:/usr/include/features.h:324:26: fatal
> error: bits/predefs.h: No such file or directorycompilation terminated.*
>
> Found a fix from www.google.com ->
> http://ubuntuforums.org/showthread.php?t=1877944. I needed the proper
> libc includes for 32-bit builds. I'm running a 64-bit machine. So I just
> ran: *sudo apt-get install libc6-dev-i386 *
>
> The error got solved!
>
>
>
>
> On Fri, Feb 14, 2014 at 2:46 AM, Asif Sardar <
> engr.asif.sardar@xxxxxxxxxxxxxx> wrote:
>
>> Hi Pekka,
>>
>> For the sake of documenting everything about Emulator, Robot Testing
>> Framework and test cases into the developer mailing list, I am initiating
>> the mailing thread for *Emulator issues on Linux*, then later another
>> thread for *Robot Testing Framework and test cases for Emulator *issues.
>>
>> ...
>>
>> When I build for emulator from path -> ....../Runtime/stm32/build/
>> through command
>> make PLATFORM=emulator, I get following specific error at Ubuntu command
>> line:
>>
>> *cc1plus: error: unrecognized command line option '-std=c++11'*
>>
>> In my understanding, there might be issues with ...
>>
>> 1- Flags in emulator.mk file at path ....../Runtime/stm32/make/
>>
>>     CFLAGS   := \
>>     $(subst -std=c99,-std=c++98,$(subst -mcpu=cortex-m0,,$(call
>> expand,compiler.cmd.cc.flags)))
>>
>>     CXXFLAGS := \
>>     $(subst -std=gnu++0x,-std=c++98,$(subst -mcpu=cortex-m0,,$(call
>> expand,compiler.cmd.cxx.flags)))
>>
>> 2- LIBS in emulator.mk file at path ....../Runtime/stm32/make/
>>     LIBS += -lstdc++
>>
>> 3- Makefile at path ......./Runtime/stm32/build/
>>     PLATFORM ?= arduino
>>     # PLATFORM = emulator (why this is commented, uncomment still didn't
>> work with same error)
>>
>>
>> I haven't changed the flags in emulator.mk yet, I wanted to discuss with
>> you first!
>>
>>
>>
>> --
>>
>>
>>
>> *With Best Regards,Asif Sardar.+358 43 8265795 <%2B358%2043%208265795> *
>>
>
>
>
> --
>
>
>
> *With Best Regards,Asif Sardar.+358 43 8265795 <%2B358%2043%208265795>*
>



-- 



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

Other related posts: