Hi all, I’m currently working on building the latest Couchbase master branch, but I seem to be having some issues with the Go dependency. I am on a system for which only gccgo (built from latest source) is available, not golang. According to the header in
tlm/cmake/Modules/FindCouchbaseGo.cmake, building with gccgo should be possible, and the initial dependency check accepts it to fulfill the Go requirement. However, late in the compilation, I receive the following error:
Scanning dependencies of target n1ql-yacc [100%] Executing: /opt/gccgo/bin/go tool yacc n1ql.y go tool: no such tool "yacc" make: *** [../goproj/src/github.com/couchbase/query/parser/n1ql/y.go] Error 3 make: *** [goproj/src/github.com/couchbase/query/CMakeFiles/n1ql-yacc.dir/all] Error 2 make: *** [all] Error 2 make: *** [compile] Error 2 make: *** [all] Error 2
This appears to occur during invocation of a macro in
GoYacc, which according to its comments cannot be run with gccgo, only golang. Assuming that the file’s main header is correct, and that compilation with gccgo is still possible, is there some flag that needs to be added in order to avoid the golang-only components?