EmbDev.net

Forum: ARM programming with GCC/GNU tools armv6 issues


Author: July J. (julyjim)
Posted on:

Rate this post
0 useful
not useful
I need to change compiler from arm7 to armv6.
When I add -march=armv6 to miscellaneous as option I get the following 
error:
Here is a part of the output, full output can be posted if it helps to 
solve this.

                from ../src/ZERO_RPI.cpp:9:
/usr/arm-linux-gnueabihf/include/c++/5/exception: In constructor 
‘std::exception::exception()’:
/usr/arm-linux-gnueabihf/include/c++/5/exception:63:39: sorry, 
unimplemented: Thumb-1 hard-float VFP ABI
     exception() _GLIBCXX_USE_NOEXCEPT { }
                                       ^
make: *** [src/ZERO_RPI.o] Error 1
src/subdir.mk:18: recipe for target 'src/ZERO_RPI.o' failed


I can “fix” the  error by adding -marm  to the options.

The C++ code then compiles but does not run properly.
1. What does Thumb do?
2. Do I have to add it to compiler with armv6 addition and how?
3. Am I missing some other option to make the compiler happy and make 
the code run ?


Any help will be appreciated

Author: olibert (Guest)
Posted on:

Rate this post
0 useful
not useful
There are really many Google hits describing the cause and the solution 
like this one:

https://stackoverflow.com/questions/35132319/build-for-armv6-with-gnueabihf

They mostly replaced "-march=armv6" by "-marm" but you added it?

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig