The problem
YOu have the error:
g++ not found
Solution
sudo dnf install gcc-c++ -y;
If you are planning recompile the kernel, a module or use fedora for software development we recommend to install all common developement tools for C/C++. You can install thos recommend tools and libraries with:
sudo dnf group install "C Development Tools and Libraries" -y;