Error While building the flatc

149 views
Skip to first unread message

dev...@tune.com

unread,
Jun 25, 2015, 7:52:38 PM6/25/15
to flatb...@googlegroups.com
Hey Guys, 

I am new to flatbuffers! I am trying to build the flatc compiler over my machine! Its Fedora!
I have followed all the previous steps and were able to create the Makefile successfully!

While doing the "make Install" command I am having the following error!

[devang@localhost flatbuffers-master]$ make install
Scanning dependencies of target flatc
[  4%] Building CXX object CMakeFiles/flatc.dir/src/idl_parser.cpp.o
[  9%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o
[ 14%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_general.cpp.o
[ 19%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o
[ 23%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o
[ 28%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o
[ 33%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o
[ 38%] Building CXX object CMakeFiles/flatc.dir/src/flatc.cpp.o
/home/devang/Documents/flatbuffers-master/src/flatc.cpp: In function ‘int main(int, const char**)’:
/home/devang/Documents/flatbuffers-master/src/flatc.cpp:179:68: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
   if (!filenames.size()) Error("missing input files", nullptr, true);
                                                                    ^
/home/devang/Documents/flatbuffers-master/src/flatc.cpp:75:13: note:   initializing argument 2 of ‘void Error(const string&, bool, bool)’
 static void Error(const std::string &err, bool usage, bool show_exe_name) {
             ^
CMakeFiles/flatc.dir/build.make:215: recipe for target 'CMakeFiles/flatc.dir/src/flatc.cpp.o' failed
make[2]: *** [CMakeFiles/flatc.dir/src/flatc.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/flatc.dir/all' failed
make[1]: *** [CMakeFiles/flatc.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


Can anyone please help me out over this?

Thanks,
Devang

Wouter van Oortmerssen

unread,
Jun 29, 2015, 12:59:14 PM6/29/15
to dev...@tune.com, flatb...@googlegroups.com
Yeah, nullptr should be false, will fix shortly. That code has been in there for a long time though, wonder why it only fails now. What's your gcc --version ?

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Devang Patel

unread,
Jun 29, 2015, 1:07:44 PM6/29/15
to Wouter van Oortmerssen, flatb...@googlegroups.com
I have tried with the clang and it was still giving me errors!

gcc version that I previously used was 5.1.1!

Wouter van Oortmerssen

unread,
Jun 29, 2015, 1:46:06 PM6/29/15
to Devang Patel, flatb...@googlegroups.com

Devang Patel

unread,
Jun 29, 2015, 2:56:38 PM6/29/15
to Wouter van Oortmerssen, flatb...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages