Comments (4)
@smacker Please try the new release
from go-client.
same problem:
smacker at Maxims-MacBook-Pro in ~/go/src/gopkg.in/bblfsh
$ rm -rf client-go.v2/
smacker at Maxims-MacBook-Pro in ~/go/src/gopkg.in/bblfsh
$ go get -d -u gopkg.in/bblfsh/client-go.v2/...
smacker at Maxims-MacBook-Pro in ~/go/src/gopkg.in/bblfsh
$ cd $GOPATH/src/gopkg.in/bblfsh/client-go.v2
smacker at Maxims-MacBook-Pro in ~/go/src/gopkg.in/bblfsh/client-go.v2 on master*
$ make dependencies
go get -v -t gopkg.in/bblfsh/client-go.v2
golang.org/x/net/http2
google.golang.org/grpc/encoding
google.golang.org/grpc/encoding/proto
google.golang.org/grpc/transport
google.golang.org/grpc
gopkg.in/bblfsh/sdk.v1/protocol
gopkg.in/bblfsh/client-go.v2
go get -v -t gopkg.in/bblfsh/client-go.v2/tools
gopkg.in/bblfsh/client-go.v2/tools
# gopkg.in/bblfsh/client-go.v2/tools
In file included from tools/bindings.go:45:
./bindings.h:13:10: fatal error: 'libuast/uast.h' file not found
#include "libuast/uast.h"
^~~~~~~~~~~~~~~~
1 error generated.
make: [gopkg.in/bblfsh/client-go.v2/tools] Error 2 (ignored)
curl -SL https://github.com/bblfsh/libuast/releases/download/v.1.8.1/libuast-v.1.8.1.tar.gz | tar xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 612 0 612 0 0 612 0 --:--:-- --:--:-- --:--:-- 817
100 24053 100 24053 0 0 24053 0 0:00:01 0:00:01 --:--:-- 63632
mv libuast-v.1.8.1/src/* tools/.
rm -rf libuast-v.1.8.1
go get -v -t ./...
gopkg.in/bblfsh/client-go.v2/tools
# gopkg.in/bblfsh/client-go.v2/tools
In file included from _cgo_export.c:3:
In file included from tools/bindings.go:45:
tools/bindings.h:166:1: warning: control reaches end of non-void function [-Wreturn-type]
# gopkg.in/bblfsh/client-go.v2/tools
In file included from tools/bindings.go:45:
tools/bindings.h:166:1: warning: control reaches end of non-void function [-Wreturn-type]
# gopkg.in/bblfsh/client-go.v2/tools
uast.cc:44:33: error: non-aggregate type 'const std::vector<const char *>' cannot be initialized with an initializer list
uast.cc:86:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
uast.cc:275:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
uast.cc:288:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
uast.cc:289:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
uast.cc:527:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
uast.cc:552:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
make: [cgo-dependencies] Error 2 (ignored)
and now it's super difficult to rollback 😢
from go-client.
@smacker Temporary workaround:
export CGO_CXXFLAGS=-std=c++14
We will include it into the defaults in the next release.
from go-client.
yeah. Thanks. Found it already.
adding // #cgo !custom_libuast,darwin CXXFLAGS: -std=c++14
or -std=c++11
helps (beside nasty warnings)
# gopkg.in/bblfsh/client-go.v2/tools
In file included from _cgo_export.c:3:
In file included from ../../go/src/gopkg.in/bblfsh/client-go.v2/tools/bindings.go:46:
../../go/src/gopkg.in/bblfsh/client-go.v2/tools/bindings.h:166:1: warning: control reaches end of non-void function [-Wreturn-type]
# gopkg.in/bblfsh/client-go.v2/tools
In file included from ../../go/src/gopkg.in/bblfsh/client-go.v2/tools/bindings.go:46:
../../go/src/gopkg.in/bblfsh/client-go.v2/tools/bindings.h:166:1: warning: control reaches end of non-void function [-Wreturn-type]
to remove them I added:
#cgo !custom_libuast,darwin CFLAGS: -Wno-return-type
from go-client.
Related Issues (20)
- Question: how to get the node's token and internal type HOT 10
- Parsing of >4mb file fails HOT 3
- Possibility to distinguish `ErrMissingDriver` HOT 7
- Context deadline exceeded parsing csharp HOT 5
- Unsupported language using C# as driver HOT 5
- How to calculate the number of immediate children of the node? HOT 7
- How to build nodes from scratch? HOT 4
- How to map nodes? HOT 2
- How to mutate nodes? HOT 2
- Nested XPath should not require *[1] HOT 3
- Add 'bblfsh-cli' binaries to the release assets HOT 4
- Transport closing when client is idle HOT 7
- Question: How do I read data from nodes? HOT 1
- Running bblfsh-cli without params return an "index out of range" error
- errors returned are gRPC errors HOT 4
- Fix an example HOT 2
- Add info about `bblfsh-cli` into the README.md
- `bblfsh-cli --help` gives help message two times
- v2 build fails HOT 3
- Question: how to serialize nodes.Node to protobuf? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-client.