Hi, If you further have issues with loading required libraries, you could try running a test intended for g++ (make check-c++ from under BUILDDIR/gcc/)
You may find examples at https://gcc-newbies-guide.readthedocs.io/en/latest/working-with-the-testsuite.html#running-just-one-test-or-just-a-few Then, open up BUILDDIR/gcc/testsuite/g++.dg/g++.log and search for "Invoking the compiler as". You will most certainly find helpful commands, populated with the actual options your test is ran with by the testsuite, that you may later on adapt to your needs. Benjamin.