-
-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mbed framework multiple definition on FRDM-KL46Z #641
Comments
Hi @raymore ! |
Hi, Nice to hear from you. As mention in the report it wasn't until I had It seems very similar to the STM32 issue, i.e. reports the same message. I'll work in a smaller example and let you know. On 03/05/16 16:11, Valerii Koval wrote:
|
Hi, I have savagely cut most of the code that does not impact the issue and I am at a loss to provide an insight into why I get this linkage failure: Please find the code attached. Regards On 03/05/16 16:11, Valerii Koval wrote:
|
Hi @raymore ! |
Hi, I can see that I have attached the zip file correctly, so let me know if Regards On 04/05/16 15:34, Valerii Koval wrote:
|
Please send me your project directly to |
Please install PlatformIO from the special branch: |
Hi, I may have to re-install atom. As a developer, I am curious about the solution. Can you give some Regards On 06/05/16 23:36, Valerii Koval wrote:
|
@raymore |
Hi, The command line: pio run, still works. Regards On 07/05/16 19:40, Dmytro Kyrychuk wrote:
|
@raymore give me please an output of |
Hi, I have just executed: pio run (in the atom IDE terminal) and the build But if I execute the build from the IDE panel button it fails!!! I have attached the output of the build. Regards On 08/05/16 01:48, Ivan Kravets wrote:
[Sun May 8 08:41:59 2016] Processing frdm_kl46z (platform: freescalekinetis, board: frdm_kl46z, framework: mbed, build_flags: -std=c++11)arm-none-eabi-g++ -o .pioenvs/frdm_kl46z/src/main.o -c -std=gnu++98 -fno-rtti -std=c++11 -fdata-sections -ffunction-sections -Wno-unused-parameter -mcp |
* develop: Version bump to 2.9.2 (issues #641, #645, #648, #652, #664, #665, #666, #671, #674) Fix issue with ARM mbed framework when abstract class breaks compile for LPC1768 // Resolve #666 Fix issue with ARM mbed framework and multiple definition errors on FRDM-KL46Z board // Resolve #641 List embedded boards in docs Fix multiple definition in mbed framework when using abstract class // Issue #641, #666 Add "stlink" as the default uploader for STM32 Discovery boards // Resolve #665 Implement grep serial ports for Windows Remove unused imports Minor improvements Fix PyLint's "misplaced-comparison-constant" Use $PROGNAME instead static name when looking for the firmware Update title of the article Add new articles Link Community Forums FAQ with Docs FAQ Grep for "/dev/cu.*" on OS X Skip grep search for serial ports on Windows machines Improve firmware uploading to Arduino Leonardo based boards Add MinGW to the PATH # Conflicts: # docs/index.rst # docs/platforms/creating_board.rst # docs/projectconf.rst # docs/userguide/platforms/cmd_install.rst # platformio/__init__.py # platformio/builder/scripts/atmelavr.py # platformio/builder/scripts/atmelsam.py # platformio/builder/scripts/frameworks/mbed.py
Configuration
Operating system:
Debian 8
PlatformIO Version (
platformio --version
):Platformio IDE 1.2.0, CLI 2.9.0
Description of problem
At a certain point in the development of my project all sources build, but the linkage fails with multiple definitions of : `__gnu_cxx::__verbose_terminate_handler()'.
The culprits are : frdm_kl46z/libFrameworkMbed.a(retarget.o) and arm-none-eabi/lib/armv6-m/libstdc++_s.a(vterminate.o):vterminate.cc
This seems to happen when the project gets to a certain size or number of files, as I have built and run this project for debugging for many iterations until this happened. Rolling back the recent changes to the code does not undo the outcome.
Steps to Reproduce
Actual Results
.pioenvs/frdm_kl46z/libFrameworkMbed.a(retarget.o): In function
__gnu_cxx::__verbose_terminate_handler()': retarget.cpp:(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x0): multiple definition of
__gnu_cxx::__verbose_terminate_handler()'/home/ray/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m/libstdc++_s.a(vtermina
te.o):vterminate.cc:(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x0): first defined here
Expected Results
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
The text was updated successfully, but these errors were encountered: