Installing gdbserver fails under Ubuntu or 64-bit CentOS
During the 'make romfs' phase, installing the gdbserver application fails
Problem Description
When building the PetaLinux root filesystem ('make romfs'), installing gdbserver fails with an error:
[INFO ] Installing user:gdbserver
[ALL ] romfs-inst.sh -p 755
[ALL ] cp: cannot stat `/home/pgm/PETALINUX/petalinux-v1.1-final-rc1-full/tools/linux-x86_64/ ...
microblaze-unknown-linux-gnu/microblaze-unknown-linux-gnu/debug-root/usr/bin/gdbserver':
No such file or directory
Background
This error is due to differences in how Ubuntu and 64-bit CentOS systems report their host CPU architecture. It does not affect 32-bit CentOS / RHEL installations.
Workaround
To work around this problem, either disable gdbserver from the build:
$ petalinux-config-apps Debugging -> [ ] gdbserver (disable)
or, edit the gdbserver installation Makefile
software/petalinux-dist/user/gdbserver/Makefile
and change line 6 to read
HOST_ARCH=linux-i386
Save your changes and exit, and you will now be able to build and install gdbserver succesfully
Resolution
This issue will be fixed in the PetaLinux SDK 1.2 release.


