facebookincubator/oomd

error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE...

nukedupe opened this issue · 1 comments

I try to compile but it fails.

FAILED: liboomd.a.p/src_oomd_Log.cpp.o
c++ -Iliboomd.a.p -I. -I.. -I../src -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -g -march=x86-64 -mtune=generic -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -DMESON_BUILD -MD -MQ liboomd.a.p/src_oomd_Log.cpp.o -MF liboomd.a.p/src_oomd_Log.cpp.o.d -o liboomd.a.p/src_oomd_Log.cpp.o -c ../src/oomd/Log.cpp
In file included from /usr/include/fcntl.h:329,
                 from ../src/oomd/Log.cpp:20:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘static bool Oomd::Log::init(const string&)’ at ../src/oomd/Log.cpp:76:23:
/usr/include/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
   50 |    __open_missing_mode ();
      |    ~~~~~~~~~~~~~~~~~~~~^~
[10/48] Compiling C++ object liboomd.a.p/src_oomd_config_ConfigCompiler.cpp.o

Fixed in 4b7aae0