Re: error during installation gcc-3.4.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



esmaeil mirzaee <esmaeil.debian@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux