錯誤訊息如下:
inlined from ‘collect_execute’ at /home/fae/Workspace/MTK/Projects/4120_SDK/toolchain/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/collect2.c:1535:20:/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
修改collect2.c
原:redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
原:redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
改:redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0777);
沒有留言:
張貼留言