GithubHelp home page GithubHelp logo

Is v2.2 broken on MacOs? about go-client HOT 4 CLOSED

bblfsh avatar bblfsh commented on August 23, 2024
Is v2.2 broken on MacOs?

from go-client.

Comments (4)

vmarkovtsev avatar vmarkovtsev commented on August 23, 2024

@smacker Please try the new release

from go-client.

smacker avatar smacker commented on August 23, 2024

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.

vmarkovtsev avatar vmarkovtsev commented on August 23, 2024

@smacker Temporary workaround:

export CGO_CXXFLAGS=-std=c++14

We will include it into the defaults in the next release.

from go-client.

smacker avatar smacker commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.