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

Broken install with go 1.16: github.com/SRI-CSL/gllvm/cmd/gclang++: malformed import path "github.com/SRI-CSL/gllvm/cmd/gclang++": invalid char '+' #44

Closed
qtcdxxyuc opened this issue Feb 25, 2021 · 5 comments

Comments

@qtcdxxyuc
Copy link

malformed import path "gllvm/cmd/gclang++": invalid char '+'
go get gclang and other is succeed.

@ianamason
Copy link
Member

I think the way I install it is described in the README.md

go get github.com/SRI-CSL/gllvm/cmd/...

Which works fine for me.

@ianamason
Copy link
Member

Maybe this is a real problem, will have to look into it.

@ianamason ianamason reopened this Mar 1, 2021
@ianamason
Copy link
Member

This appears to be a problem cause by the latest go.

go 1.15.8 -> 1.16

I can now reproduce it:

CSL-CAS7352:STITCHES_Inputs e27658$ go get github.com/SRI-CSL/gllvm/cmd/...
go: downloading github.com/SRI-CSL/gllvm v1.3.0
github.com/SRI-CSL/gllvm/cmd/gclang++: malformed import path "github.com/SRI-CSL/gllvm/cmd/gclang++": invalid char '+'
CSL-CAS7352:STITCHES_Inputs e27658$

@ianamason
Copy link
Member

ianamason commented Mar 5, 2021

OK so the new go module system appears to have a draconian view of what things can be named.
It does not allow executables to be called things like g++ or gclang++ or clang++, but does
allow things like g--, gclang--, and clang--. Strange. Seems
a bit monocultural to me. Anyway I have filed an issue but I am not holding my breath. We shall see.

In the meantime the work around appear to be:

GO111MODULE=off go get github.com/SRI-CSL/gllvm/cmd/...

If all else fails, there might be a rename in gllvm's future.

@ianamason ianamason changed the title go get failed with mac os X Broken install with go 1.16: github.com/SRI-CSL/gllvm/cmd/gclang++: malformed import path "github.com/SRI-CSL/gllvm/cmd/gclang++": invalid char '+' Mar 6, 2021
@ianamason
Copy link
Member

Think this saga is over. Though at some stage I need to update the 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

2 participants