No Gas to the Carb When Engine Warms Up

If it's sucking air, should I have the gas cap on? One reply I got previously, said I may have a venting problem. Any thoughts?
No it's not a vent problem. The fuel pump has to have nothing but a liquid to pull. It would have to be small pin holes in the lines between the tank and the fuel pump.