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: error during installation gcc-3.4.6


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


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