Using blocks would be a simple fix. You can level it as you set the blocks and end up with a flat top for building you wall. Use any of the methods above to secure the wall.

If the floor is bad enough that won't fix it you may want to think about doing some replacement.

Joe