/usr/lib/petscdir/3.4.2/linux-gnu-cxx-opt is in libpetsc3.4.2-dev 3.4.2.dfsg1-6.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/petscdir/3.4.2/linux-gnu-c-opt
/usr/lib/petscdir/3.4.2/linux-gnu-c-opt