Build Fails on call to open()
a very fast full system simulator
Status: Beta
Brought to you by:
kangsh
If using GCC 4.2.4 or later, open() must be called with three arguments if O_CREAT is specified. The third argument must specify the file mode if the file is created. I've added S_IRWXU to the offending call in /device/nandflash/nandflash_smallblock.c line 519.
ERROR:
... declared with attribute error: open with O_CREAT in second argument needs 3 arguments.
SOLUTION:
Edit /device/nandflash/nandflash_smallblock.c line 519 to be:
if ((nf->fdump=open(dev->dump, FILE_FLAG, S_IRWXU)) < 0)
Fixed in the latest version.