Sysprogs forums › Forums › VisualGDB › mbed failed to symlink arm-none-eabi-addr2line.exe
Tagged: mbed ccache
- This topic has 9 replies, 2 voices, and was last updated 4 years, 8 months ago by
dave93cab.
-
AuthorPosts
-
February 24, 2021 at 17:35 #29985
dave93cab
ParticipantI have a fresh install of visualgdb, created an mbed project, followed the patching of gcc.py instuctions but cannot build my project (which is just blinky). I get the following build error:
Failed to symlink C:\<project dir>\Build\NUCLEO_F411RE\Debug\.ccachedir\arm-none-eabi-addr2line.exe to C:\<homedir>\AppData\Local\VisualGDB\CCache\ccache.exe
Any ideas? Thanks
February 24, 2021 at 17:40 #29986support
KeymasterHi,
This looks like an issue with mbed itself rather than VisualGDB. It could be caused by a buggy platform definition, incompatible settings, or unsupported combination of tools. Please try building the project manually using mbed-cli and check if the problem persists.
You can extract the command line used by VisualGDB by locating the build command line in the VisualGDB Build window (shown in cyan), right-clicking on it and selecting “Dump to a batch file”.
If the project builds manually, but doesn’t build under VisualGDB, please let us know and we will help you configure VisualGDB to match the results of the manual build.
February 24, 2021 at 17:43 #29987dave93cab
ParticipantWasn’t using the ARM toolchain, manually selecting that fixed it.
EDIT: no it didn’t, sorry. will follow your advice above
-
This reply was modified 4 years, 8 months ago by
dave93cab.
February 24, 2021 at 17:49 #29989dave93cab
ParticipantWhere does the dump to batch file save the file? Doesn’t appear to do anything and I checked in the project folder. Thanks
February 24, 2021 at 17:54 #29990dave93cab
ParticipantAh ok so when I created a new project without ccache enabled I see the cyan, and that does export the command to batch file. I was clicking on the red error line, there is no cyan when ccache is enabled
February 25, 2021 at 08:16 #29993support
KeymasterHi,
We have rechecked the command dumping with ccache enabled and it did work as expected. If it doesn’t work on your side, please share a screenshot of the entire Visual Studio window showing the VisualGDB Build log from the very beginning, and we will investigate this further.
February 25, 2021 at 19:30 #29999dave93cab
ParticipantThere’s not much in the log when I try to build it
Attachments:
You must be logged in to view attached files.February 26, 2021 at 18:37 #30010support
KeymasterThis happens because the build fails due to an error shown on the screenshot. Most likely, your Visual Studio process does not have permissions to create symbolic links. Please try running Visual Studio as administrator.
February 26, 2021 at 22:01 #30018dave93cab
ParticipantThat worked but I am assuming that running VS as Administrator is not usually required? I will look into it further, thanks for the help
February 26, 2021 at 22:59 #30019dave93cab
ParticipantFound a GPO to allow creation of symlinks, and it’s working. Thanks again
-
This reply was modified 4 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.