Cannot compile using "gcc -pg"

1 post / 0 new
#1 Mon, 2017-09-04 06:14
zhanxw
  • zhanxw's picture
  • Offline
  • Last seen: 2 weeks 5 days ago
  • Joined: 2016-07-01

Hello,

I am using Alpine linux 3.5.
I can only compile a c program using gcc without "-pg" flag (for profiling purpose).
When "-pg" flag was used, I got this message:

...
/usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find gcrt1.o: No such file or directory

Any suggestions on solving this problem?