This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: installtion gcc-3.4.6 ./gcov-io.c:94


On Fri, Jul 29, 2011 at 2:55 PM, Ian Lance Taylor <iant@google.com> wrote:
> esmaeil mirzaee <esmaeil.debian@gmail.com> writes:
>
>> I try to install gcc-3.4.6 in my ubuntu 11.04 after I prompt make I've
>> got below error:
>> In file included from ./libgcov.c:86:
>> ./gcov-io.c: In function `__gcov_open':
>> ./gcov-io.c:94: error: `EINTR' undeclared (first use in this function)
>> ./gcov-io.c:94: error: (Each undeclared identifier is reported only once
>> ./gcov-io.c:94: error: for each function it appears in.)
>> make[2]: *** [libgcc/./_gcov.o] Error 1
>> make[2]: Leaving directory `/home/esmaeil/Documents/software/gcc-3.4.6/gcc'
>> make[1]: *** [libgcc.a] Error 2
>> make[1]: Leaving directory `/home/esmaeil/Documents/software/gcc-3.4.6/gcc'
>> make: *** [all-gcc] Error 2
>
> I don't see how that could happen. ?EINTR is only referenced if
> GCOV_LOCKED is defined, and if GCOV_LOCKED is defined libgcov.c does a
> #include <errno.h>.
>
> My only guess would be that there is some other header file problem on
> your system, and that somehow doing a #include <errno.h> does not define
> EINTR. ?You should verify that <errno.h> was included, and see whether
> it defines EINTR.
>
> Why are you trying to build such an old version of gcc, anyhow?
I try to use simplescalar "simulation for computer architecture" and
second reason is work in Linux kernel.
> Ian
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]