Unable to build #24

Open
opened 4 months ago by Speranskiy · 2 comments

Hi there!
Thanks for the project!
Unfortunately I'm unable to build it

make dist
go build -gccgoflags "-pthread" -ldflags "-s -w -X 'codeberg.org/snaums/mvoCI/core.Version=dev-8191475506' -X 'codeberg.org/snaums/mvoCI/core.BuildTime=Wed Jan 19 06:34:51 AM MSK 2022' -X 'codeberg.org/snaums/mvoCI/core.Compiler=go version go1.17.6 linux/amd64'  -X 'codeberg.org/snaums/mvoCI/core.GitHash=819147550690e55ac8bbcbf47112bad003244dd2'" main.go
go build: when using gc toolchain, please pass compile flags using -gcflags, and linker flags using -ldflags
# codeberg.org/snaums/mvoCI/build
build/worker.go:34:21: undefined: core.Thread
build/worker.go:71:28: undefined: core.Thread
build/worker.go:73:22: undefined: core.Pthread_create
make: *** [Makefile:28: mvobuild] Error 2

What could be wrong?

Hi there! Thanks for the project! Unfortunately I'm unable to build it ``` make dist go build -gccgoflags "-pthread" -ldflags "-s -w -X 'codeberg.org/snaums/mvoCI/core.Version=dev-8191475506' -X 'codeberg.org/snaums/mvoCI/core.BuildTime=Wed Jan 19 06:34:51 AM MSK 2022' -X 'codeberg.org/snaums/mvoCI/core.Compiler=go version go1.17.6 linux/amd64' -X 'codeberg.org/snaums/mvoCI/core.GitHash=819147550690e55ac8bbcbf47112bad003244dd2'" main.go go build: when using gc toolchain, please pass compile flags using -gcflags, and linker flags using -ldflags # codeberg.org/snaums/mvoCI/build build/worker.go:34:21: undefined: core.Thread build/worker.go:71:28: undefined: core.Thread build/worker.go:73:22: undefined: core.Pthread_create make: *** [Makefile:28: mvobuild] Error 2 ``` What could be wrong?
Owner

Hello,

you seem to be on Linux, with a recent go compiler. The git hash seems a bit odd, try git pull to get the most recent version, make sure you are on the master branch.

I've tested it with a freshly cloned repo on my side and it works like a charm.

core.Thread should be very much not missing. Did you accidentally remove the core/pthread.go file?

Regards,
snaums

Hello, you seem to be on Linux, with a recent go compiler. The git hash seems a bit odd, try `git pull` to get the most recent version, make sure you are on the master branch. I've tested it with a freshly cloned repo on my side and it works like a charm. `core.Thread` should be very much not missing. Did you accidentally remove the `core/pthread.go` file? Regards, snaums
Poster

Yes, it's updated Archlinux

speran ➜  mvoCI git:(master) git log -1
commit 819147550690e55ac8bbcbf47112bad003244dd2 (HEAD -> master, origin/master, origin/HEAD)
Author: Stefan Naumann <me@stefannaumann.de>
Date:   Tue Jan 11 20:35:54 2022 +0100

    web/user: fixed privilege escalation bug, where users could mkae themselves superusers

speran ➜  mvoCI git:(master) ls core
acl.go  config.go  log.go  models.go  pthread.go

speran ➜  mvoCI git:(master) make dist
go build -gccgoflags "-pthread" -ldflags "-s -w -X 'codeberg.org/snaums/mvoCI/core.Version=dev-8191475506' -X 'codeberg.org/snaums/mvoCI/core.BuildTime=Thu Jan 20 01:02:19 PM MSK 2022' -X 'codeberg.org/snaums/mvoCI/core.Compiler=go version go1.17.6 linux/amd64'  -X 'codeberg.org/snaums/mvoCI/core.GitHash=819147550690e55ac8bbcbf47112bad003244dd2'" main.go
go build: when using gc toolchain, please pass compile flags using -gcflags, and linker flags using -ldflags
# codeberg.org/snaums/mvoCI/build
build/worker.go:34:21: undefined: core.Thread
build/worker.go:71:28: undefined: core.Thread
build/worker.go:73:22: undefined: core.Pthread_create
make: *** [Makefile:28: mvobuild] Error 2 

Go version is

local/go 2:1.17.6-2
    Core compiler tools for the Go programming language
Yes, it's updated Archlinux ``` speran ➜ mvoCI git:(master) git log -1 commit 819147550690e55ac8bbcbf47112bad003244dd2 (HEAD -> master, origin/master, origin/HEAD) Author: Stefan Naumann <me@stefannaumann.de> Date: Tue Jan 11 20:35:54 2022 +0100 web/user: fixed privilege escalation bug, where users could mkae themselves superusers speran ➜ mvoCI git:(master) ls core acl.go config.go log.go models.go pthread.go speran ➜ mvoCI git:(master) make dist go build -gccgoflags "-pthread" -ldflags "-s -w -X 'codeberg.org/snaums/mvoCI/core.Version=dev-8191475506' -X 'codeberg.org/snaums/mvoCI/core.BuildTime=Thu Jan 20 01:02:19 PM MSK 2022' -X 'codeberg.org/snaums/mvoCI/core.Compiler=go version go1.17.6 linux/amd64' -X 'codeberg.org/snaums/mvoCI/core.GitHash=819147550690e55ac8bbcbf47112bad003244dd2'" main.go go build: when using gc toolchain, please pass compile flags using -gcflags, and linker flags using -ldflags # codeberg.org/snaums/mvoCI/build build/worker.go:34:21: undefined: core.Thread build/worker.go:71:28: undefined: core.Thread build/worker.go:73:22: undefined: core.Pthread_create make: *** [Makefile:28: mvobuild] Error 2 ``` Go version is ``` local/go 2:1.17.6-2 Core compiler tools for the Go programming language ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.