This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error during installation gcc-3.4.6
- From: Ian Lance Taylor <iant at google dot com>
- To: esmaeil mirzaee <esmaeil dot debian at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 29 Jul 2011 06:47:17 -0700
- Subject: Re: error during installation gcc-3.4.6
- References: <CAOwGe_whdcJgJMmUV-umGuWHqK=FjK9G=0QemwSgakTkB+hDqQ@mail.gmail.com> <CAOwGe_ztqeKVbFw0=babfCPBn11aVppiwdiC8QU0oju4dNDT6w@mail.gmail.com>
esmaeil mirzaee <esmaeil.debian@gmail.com> writes:
> apologize in advanced I hope this place is right for this question.
> I try to install gcc-3.4.6 in ubuntu 10.10 but I've got below error
>
> In function âopenâ,
> ÂÂÂ inlined from âcollect_executeâ at ./collect2.c:1537:20:
> /usr/include/bits/fcntl2.h:51:24: error: call to â__open_missing_modeâ
> declared with attribute error: open with O_CREAT in second argument
> needs 3 arguments
> make[1]: *** [collect2.o] Error 1
> make[1]: Leaving directory `/home/esmaeil/Documents/software/gcc-3.4.6/gcc'
> make: *** [all-gcc] Error 2
>
> I did
> ./configure
> make
>
> and the error is appear after several minutes.
It's a bug in gcc 3.4.6 (you do know that that is a very old release,
right?).
You can fix it by changing line 1537 of gcc/collect2.c to this:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
Ian