Hello again..
Changed line 1537 in collect2.c to add the third argument. Thinks are now moving:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR)
Bob Sutherland wrote:
Couldn't find anything in the database, so hope this is a new question.
I just downloaded all of the files for an XScale based build, and ran into the following failure during the Linux Tutorial exercise:
In function 'open',
inlined from 'collect_execute' at /opt/poky/build/tmp/work/i686-linux/gcc-native-3.4.6-r7/gcc-3.4.6/gcc/collect2.c:1537:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
And, indeed, if you look into collect2.c, there are only two arguments.
My environment is Ubuntu 9.04 which runs gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4).
Thanks for any help