IITH-Compilers / P4LLVM

P4-LLVM is an LLVM based compiler for P4
Apache License 2.0
43 stars 10 forks source link

an make error #10

Closed ygttt closed 1 year ago

ygttt commented 1 year ago

when I "make -j4",it have two error:How to slove those errors?

/home/cy/p4lang/backends/llbmv2/backend.h:155:52: error: ‘F_RW’ is not a member of ‘llvm::sys::fs’
         S = new raw_fd_ostream(fileName+".ll", ec, sys::fs::F_RW);
                                                    ^
backends/llbmv2/CMakeFiles/bmv2llBackend.dir/build.make:86: recipe for target 'backends/llbmv2/CMakeFiles/bmv2llBackend.dir/unified_bmv2_backend_srcs_2.cpp.o' failed
make[2]: *** [backends/llbmv2/CMakeFiles/bmv2llBackend.dir/unified_bmv2_backend_srcs_2.cpp.o] Error 1
CMakeFiles/Makefile2:1735: recipe for target 'backends/llbmv2/CMakeFiles/bmv2llBackend.dir/all' failed
make[1]: *** [backends/llbmv2/CMakeFiles/bmv2llBackend.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2