llvm-prof: Error opening 'llvmprof.out': Illegal seek

It is solved.

The problem was trying to profile while the llvmprof.out has not been
generated.

Below, the sequence of instructions that worked with me

$ clang -03 -emit-llvm hello.c -c -o hello.bc
$ opt -insert-edge-profiling hello.bc -o hello.profile.bc

$ llc hello.profile.bc -o hello.profile.s

$ clang -o hello.profile hello.profile.s
<LLVM_HOME_DIR>/build/Debug+Asserts/lib/libprofile_rt.so

$ ./hello.profile

$ llvm-prof hello.profile.bc

and the output is: