Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
gollvm: void Ptrmask::set_from(Gogo *, Type *, int64_t, int64_t): assertion '(offset % ptrsize) == 0' failed, while building Azure/run-command-extension-linux package #41931
$ go version
I didn't built gollvm for the latest (as for today) source code base - so do not know that, yet.
Ubuntu 20.04 x86_64
Maybe some flags aren't passed properly - I wasn't able to enforce Clang to generate me sub-step files and IR bitcode file.
So I can't find those artifacts anywhere.
I can't reproduce this problem. After an initial "go get -u github.com/Azure/run-command-extension-linux" I tried your command "go build cmds.go", and from this I see the various error mesages (e.g. "./cmds.go:210:54: error: use of undefined type 'handlerSettings'") but no crash.
Errors are to be expected, however -- "cmds.go" is not a stand-alone Go program, and needs to be built together with the other 'package main' files in that directory. When I do "go build ." it builds cleanly with gollvm.
Looking at your errors, I see
./cmds.go:24:24: error: reference to undefined identifier 'log.Context'
which is from the input dependency "github.com/go-kit/kit/log". If this type is coming up undefined it suggests that there is something damaged about your installation or your dependencies.
I would suggest setting up GOPATH (this project does not use modules) and rerunning "go get".