Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling on Ubuntu Server 20.04 #2

Closed
ghost opened this issue Jan 19, 2022 · 3 comments
Closed

Error compiling on Ubuntu Server 20.04 #2

ghost opened this issue Jan 19, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 19, 2022

 cd PlotFS && cmake . && make && sudo make install
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found FUSE3: /usr/lib/x86_64-linux-gnu/libfuse3.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/me/PlotFS
[ 16%] Generating plotfs_generated.h
error: /home/me/PlotFS/plotfs.fbs:17: 14: error: enum value does not fit [0; -1]
make[2]: *** [CMakeFiles/mount.plotfs.dir/build.make:62: plotfs_generated.h] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/mount.plotfs.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Just trying this out of interest on new installation of Ubuntu Server 20.04. Probably something wrong my end but posting just in case it isn't.

@szatmary
Copy link
Owner

flatbuffers compiler of at least version 1.12 is required. Ubuntu 20.04 has 1.11. Install FlatBuffers from source.

@ghost
Copy link
Author

ghost commented Jan 20, 2022

Okay, thanks. Is this the correct source: https://github.com/google/flatbuffers?
Their readme doesn't say how to compile it. If you get a moment any chance you could add how to compile that to your readme? No problem if not.

@szatmary
Copy link
Owner

Updated readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant