Compile from sourcers have a ranlib in your future.

The liboscar.a file is going to be corrupted as you download it. Either delete it preemptively or delete and reupdate. Then ranlib the file again.