Sysprogs forums › Forums › VisualGDB › Toolchain arm-eabi-gcc7.2.0-r2 and libcompactcpp
- This topic has 7 replies, 3 voices, and was last updated 7 years, 11 months ago by
support.
-
AuthorPosts
-
November 7, 2017 at 16:28 #12874
devrope
ParticipantHi, when upgrading to the latest arm-eabi toolchain our project fails to compile, something about the flag -lcompactcpp.
When comparing the files installed with previous toolchain 6.2.0 I see all the libcompactcpp.a/h/cpp files are missing.Our project is pretty old now, created with VGDB 4.x, using Make and is made standalone.
But everything works fine with arm-eabi-gcc6.2.0-r4 and VisualGDB 5.3r5/Roger
November 7, 2017 at 19:02 #12877support
KeymasterHi,
This happens because the newer gcc includes optimizations that make the libcompactcpp library unnecessary, so it was removed from the latest release. Please try opening VisualGDB Project Properties and clicking the regenerate button (it it’s not shown, try changing any of the MCU-related settings and restoring it back). This should rebuild all toolchain-specific settings and remove the references to the missing library.
November 8, 2017 at 09:24 #12879devrope
ParticipantOk, but how do I change any MCU-settings so I can find the “regenerate” button? The project is standalone.
November 8, 2017 at 19:41 #12895support
KeymasterHi,
For a stand-alone project please simply remove “compactcpp” from the list of libraries in the first page of VisualGDB Project properties.
November 9, 2017 at 09:38 #12914devrope
ParticipantI don’t see compactcpp on that settings page…
The only reference I can find is in stm32.mak: LIBRARY_NAMES += compactcppWhen I removed that and rebuilt, it failed on my uses of std::array<>.
November 9, 2017 at 18:08 #12926support
KeymasterThe one from the LIBRARY_NAMES is the correct one (you would also need to remove it from the stm32.xml file as otherwise it will get regenerated).
std::array<> should not be related to compactcpp. Please feel free to post the errors you get and we will help you resolve them.
December 11, 2017 at 16:26 #13237parsec67
ParticipantHi,
I also encountered this exact issue after upgrading (MSBuild project) and clicking the Regenerate MCU files fixed the problem.
Having said that, this had me stumped for a good hour before I eventually found this post. I would like to put in a suggestion that, if possible, breaking changes such as this one are documented somewhere on your website for each public release so that this and similar problems can be more easily anticipated when updating VGDB. What I’m saying is, if I had read something like “Change: compactcpp lib removed: Fix: Rebuild MCU files” beforehand I would have already known the cause of the problem and saved a lot of time. Even a simple readme text file next to the download link is better than no information at all.
Thanks for an otherwise great product.
December 12, 2017 at 07:08 #13243support
KeymasterHi,
No problem, we have added an automatic warning for this case in the upcoming v5.3R8.
-
AuthorPosts
- You must be logged in to reply to this topic.