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

undefined: channel.OsChannel #1016

Open
lomoonmoonbird opened this issue Mar 19, 2024 · 2 comments
Open

undefined: channel.OsChannel #1016

lomoonmoonbird opened this issue Mar 19, 2024 · 2 comments

Comments

@lomoonmoonbird
Copy link

lomoonmoonbird commented Mar 19, 2024

Issue Description

编译chaosblade,执行命令 make build_linux

Type: bug report , feature request or question

Describe what happened (or what feature you want)

git clone -b master https://github.com/lomoonmoonbird/chaosblade-exec-cplus.git target/cache/chaosblade-exec-cplus
Cloning into 'target/cache/chaosblade-exec-cplus'...
make -C target/cache/chaosblade-exec-cplus
make[1]: Entering directory '/go/src/github.com/lomoonmoonbird/chaosblade/target/cache/chaosblade-exec-cplus'
rm -rf build-target/chaosblade-1.7.3
mkdir -p build-target/chaosblade-1.7.3/yaml build-target/chaosblade-1.7.3/lib/cplus/script
env CGO_ENABLED=1 GO111MODULE=on go build -ldflags="-linkmode external -extldflags -static" -o build-target/chaosblade-1.7.3/lib/cplus/chaosblade-exec-cplus main.go
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/shirou/gopsutil v2.20.5+incompatible
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3
github.com/lomoonmoonbird/chaosblade-exec-cplus/common
common/channel.go:27:15: undefined: channel.OsChannel
make[1]: *** [Makefile:40: build_cplus] Error 2
make[1]: Leaving directory '/go/src/github.com/lomoonmoonbird/chaosblade/target/cache/chaosblade-exec-cplus'
make: *** [Makefile:208: cplus] Error 2
make[1]: *** [Makefile:277: build_linux_with_arg] Error 2
make[1]: Leaving directory '/home/chaosblade/chaosblade'
make: *** [Makefile:111: build_linux] Error 2

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

  1. make build_linux

Tell us your environment

Anything else we need to know?

@zhanluxianshen
Copy link

Your clone repo is not https://github.com/chaosblade-io/chaosblade .

@lomoonmoonbird
Copy link
Author

lomoonmoonbird commented Mar 25, 2024

Your clone repo is not https://github.com/chaosblade-io/chaosblade .

yes, my clone repo is definitely is https://github.com/chaosblade-io/chaosblade,
image

in the chaosblade dirctory, it is the same as chaosblade-io repo:
image

so in this direcotry i ran "make build_Linux" command, and then when built on exec_cplus step, it throw an errors

image

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