Antiderivative exists but not integrable

In the sense of Riemann, could an integral (if there exists could you give the less pathological counter-example possible) have an antiderivative but not be integrable on a compact subset?

In the sense of Riemann, could an integral (if there exists could you give the less pathological counter-example possible) have an antiderivative but not be integrable on a compact subset?