Installing gdbserver fails under Ubuntu or 64-bit CentOS
During the 'make romfs' phase, installing the gdbserver application fails
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
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.
To work around this problem, either disable gdbserver from the build:
$ petalinux-config-apps Debugging -> [ ] gdbserver (disable)
or, edit the gdbserver installation Makefile
and change line 6 to read
Save your changes and exit, and you will now be able to build and install gdbserver succesfully
This issue will be fixed in the PetaLinux SDK 1.2 release.