Compiling Incorrect Firmware

I’m not sure that I understand what you are referring to.
The recommended approach is:

  1. Set up your Pi with PiOS
  2. Install Klipper and the additional ecosystem via KIAUH
  3. Build and flash firmware according to the instructions linked above (first few lines)
  4. Determine the correct serial path
  5. Set up printer.cfg
  6. Restart Klipper

If this does not work:

  1. Carefully follow Issues flashing the printer board
  2. Provide the klippy.log as initially requested anyway