Mass is measured by the force necessary to give an object a given acceleration.
On earth the force gravity exerts on an object is used to measures its mass.
Weight is the response of mass to gravity.
Weight depends on gravity...mass does not.