This is the mail archive of the
mailing list for the GCC project.
Re: error during installation gcc-3.4.6
On Fri, Jul 29, 2011 at 9:47 AM, Ian Lance Taylor <firstname.lastname@example.org> wrote:
> esmaeil mirzaee <email@example.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: *** [collect2.o] Error 1
>> make: Leaving directory `/home/esmaeil/Documents/software/gcc-3.4.6/gcc'
>> make: *** [all-gcc] Error 2
>> I did
>> 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,
> 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);
Thank you for your help I did your suggestion and It was the helpful
but I've got another error
/usr/local/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I. -I. -I./.
-I./../include -g0 -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time
-c ./crtstuff.c -DCRT_BEGIN \
In file included from /usr/include/bits/errno.h:25,
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
make: *** [crtbegin.o] Error 1
make: Leaving directory `/home/esmaeil/Documents/software/gcc-3.4.6/gcc'
make: *** [all-gcc] Error 2