Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [:: [ 09:37:11 ] :: [  BEGIN   ] :: Running 'dnf install -y xapian-core xapian-core-devel g++ --enablerepo=rhel-CRB --enablerepo=rhel-buildroot'
Last metadata expiration check: 0:00:09 ago on Wed 27 Nov 2024 09:37:02 AM UTC.
Package xapian-core-1.4.18-3.el8.x86_64 is already installed.
Package xapian-core-devel-1.4.18-3.el8.x86_64 is already installed.
No match for argument: g++
Error: Unable to find a match: g++
:: [ 09:37:12 ] :: [   FAIL   ] :: Command 'dnf install -y xapian-core xapian-core-devel g++ --enablerepo=rhel-CRB --enablerepo=rhel-buildroot' (Expected 0, got 1)]: [Indication that not all dependencies were installed.]
=============
[:: [ 09:37:14 ] :: [  BEGIN   ] :: Compiling :: actually running 'g++ -o xapian_test xapian_test.cpp -lxapian'
/usr/share/beakerlib/testing.sh: line 896: g++: command not found
:: [ 09:37:14 ] :: [   FAIL   ] :: Compiling (Expected 0, got 127)]: [Compilation failed.]
=============
[:: [ 09:37:14 ] :: [   FAIL   ] :: Running test (Expected 0, got 127)
:: [ 09:37:14 ] :: [   FAIL   ] :: File test_db should exist 
:: [ 09:37:14 ] :: [   FAIL   ] :: File 'xapian.log' should contain 'Document added successfully.' 
:: [ 09:37:14 ] :: [   FAIL   ] :: File 'xapian.log' should contain 'Found 1 matching documents.' 
:: [ 09:37:14 ] :: [   FAIL   ] :: File 'xapian.log' should contain 'Document ID 1: This is a simple test document' 
]: [Failures caused by the failed compilation of xapian-core.]

Issue: Compilation failed because of the missing g++ command.
Resolution: "gcc-c++" needs to be added as needed into main.fmf file of the test, if the package is installed, g++ command is presented.