Sysprogs forums › Forums › VisualGDB › Toolchain Test Failed
- This topic has 4 replies, 2 voices, and was last updated 11 years ago by
jtohle.
-
AuthorPosts
-
May 3, 2015 at 17:09 #6415
jtohle
ParticipantHi,
I have setup a new RPi Cross compilation Project, however, when applying the settings I am getting this error message:
Tool arguments:
sh: /tmp/VisualGDB_ToolchainTestProgram_Deployed: No such file or directorySo, I clicked ignore.
Then when I compile my code and try to run it, i get that the gdbserver could not run, with this log:
Process /tmp/RPiProj1 created; pid = 25389
Cannot exec /tmp/RPiProj1: No such file or directory.
Child exited with status 127
No program to debug. GDBserver exiting.
Any Ideas what the problem is,
Thx,
May 4, 2015 at 19:41 #6418support
KeymasterHi,
Looks like VisualGDB cannot upload to the /tmp folder on your Raspberry Pi. Please double-check that the folder is writable from your user account and that you have enough free space on your Raspberry Pi.
May 5, 2015 at 10:03 #6420jtohle
Participant@bazis,
It does not explain why it works when the project is set to “build the project under linux over network”, and then when it is set to “Build the project locally with a cross compiler” it does not work.
Both options use the /tmp folder, and it works on the first option, as i see my code in /tmp, and can execute it.
Any other suggestions/ideas.
May 6, 2015 at 17:15 #6437support
KeymasterThis is true. Can you inspect the contents of View->Output->VisualGDB Launcher Output after an unsuccessful debugging session? It should normally show something like this:
VisualGDB: Executing predebug actions VisualGDB: Deploying e:\PROJECTS\TEMP\test\test/Debug/test to /tmp/vgtest/test on raspberrypi... VisualGDB: Launching gdbserver VisualGDB: Run "gdbserver :2000 "$(DeployPath)" " in directory "$(DeployDir)" on pi@raspberrypi (SSH) VisualGDB: Launching custom program console VisualGDB: Launching gdb VisualGDB: Executing postdebug actions
Then check that:
1) The file on the Windows machine exists and is readable under your account
2) The remote file does not exist, the remote directory does and the device has enough free space
If none of that provides clues, can you reproduce it with a “Hello, World” project? If yes, can you create an image of your SD card and send it to us so that we could reproduce it on our side?
May 7, 2015 at 15:59 #6448jtohle
ParticipantI have managed to solve the issue by uninstalling GCC & GDB from remote the RPi, and then installed the latest version of GCC & GDB, after that I re-synchronized the sysroot folder.
Now all is working.
Thanks,
-
AuthorPosts
- You must be logged in to reply to this topic.