Hi, Thank you for the reply, I had compiled with both glibc and newlib. Now, I am going to try to compile on a QEMU machine. Best regards, Nureddin On Tue, Jul 13, 2021 at 9:44 PM Segher Boessenkool < segher@xxxxxxxxxxxxxxxxxxx> wrote: > 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 >