Hi! On Tue, Jul 13, 2021 at 03:36:10PM +0300, Nureddin Kamadan wrote: > I am working on a research project where I need to compile a cross compiler > (host=x86-linux-ubuntu and target= powerpc-elf). > My problem is that after compiling the cross > compiler, libgcov.a results in having dummy functions and empty object > files (I objdumped libgcov.a in every stage of compiling the cross > compiler.) I have found out the flag (inhibit_libc) which causes this to > happen was being defined while compiling the first stage gcc. gcov requires a working C library to be able to work. You need to compile with support for one. The usual approach is to use a native hosted system, but gcov has support for various cross setups as well. Segher