One common agreement between Gandhism and Marxism is the final goal of stateless and classless society, whereas means to achieve these final goals differ.
For Marx, State is an instrument of oppression and an organ of the bourgeoisie that only works for maintaining the class dominance. Therefore, he strives for class struggle and revolution which will ultimately result in a stateless society.
For Gandhi also, in an ideal state, there is no State. In his words “political power means capacity to regulate national life through national representatives. If national life becomes so perfect as to become self-regulated, no representation becomes necessary. There is then a state of enlightened anarchy. In such a state everyone is his own ruler. He rules himself in such a manner that is never a hindrance to his neighbour. In the ideal state, therefore, there is no political power because there is no State.”