Q: Downgrade libstdc++.so.6 to version `GLIBCXX_3.4.20' I am trying to cross-compile dlib using Raspberry Pi's toolchain, with the SD card mounted to my linux Host.
After successful build and install, I start my Pi, and run 
python -c 'import dlib'

This is the error output:
ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by dlib/dlib.so)

When I run it on my Raspberrry Pi, this is what I get:
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_DEBUG_MESSAGE_LENGTH

What's going on? How can I fix this?  On my Pi, libstdc++is already at its newest version.
Is this an issue with my HOST machine, which as expected, has the GLIBCXX_3.4.22 string.
If possible, can I downgrade libstdc++ on my host machine so that the maximum version it supports is 3.4.20? How?
Host: 
OS: Ubuntu 17.04 64-bit (amd64)
Cross-Compilation environment: Official toolchain hosted here: Raspberry Pi Tools
Another thing that might help is that I am mounting the SD card (which contains the Raspbian OS) to my host machine, and then using a cmake toolchain file to set the sysroot to the location of the SD card.
Output of dpkg -l|grep 'gcc.*arm':

 abhishek@K  ~/rpi 
$ dpkg -l|grep 'gcc.*arm'
ii  gcc-6-arm-linux-gnueabihf                       6.3.0-12ubuntu2cross1                         amd64        GNU C compiler
ii  gcc-6-arm-linux-gnueabihf-base:amd64            6.3.0-12ubuntu2cross1                         amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-arm-linux-gnueabihf                         4:6.3.0-2ubuntu1                              amd64        GNU C compiler for the armhf architecture
ii  libgcc-6-dev-armhf-cross                        6.3.0-12ubuntu2cross1                         all          GCC support library (development files)
ii  libgcc1-armhf-cross                             1:6.3.0-12ubuntu2cross1                       all          GCC support library

Note: I posted it on the raspberry SE website, but was suggested to move the question.
