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

riscv64 compiling error: expected 'package', found signal_darwin #9590

Closed
xswfantasy opened this issue Sep 14, 2022 · 7 comments · Fixed by #13534
Closed

riscv64 compiling error: expected 'package', found signal_darwin #9590

xswfantasy opened this issue Sep 14, 2022 · 7 comments · Fixed by #13534
Labels
area/build Build or GithubAction/CI issues area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix area/executor P3 Low priority type/bug

Comments

@xswfantasy
Copy link

xswfantasy commented Sep 14, 2022

Hello: I am compiling argo-workflow (v3.3.9) under the riscv64 architecture. When I execute make dist/argoexec, I get an error:

make dist/argoexec:

GIT_COMMIT=5db53aa0ca54e51ca69053e1d3272e37064559d7 GIT_BRANCH=HEAD GIT_TAG=v3.3.9 GIT_TREE_STATE=dirty RELEASE_TAG=true DEV_BRANCH=false VERSION=v3.3.9
KUBECTX=none DOCKER_DESKTOP=false K3D=false DOCKER_PUSH=false
RUN_MODE=local PROFILE=minimal AUTH_MODE=hybrid SECURE=false STATIC_FILES=true ALWAYS_OFFLOAD_NODE_STATUS=false UPPERIO_DB_DEBUG=0 LOG_LEVEL=debug NAMESPACED=true
CGO_ENABLED=0 go build -v -ldflags '-X github.com/argoproj/argo-workflows/v3.version=v3.3.9 -X github.com/argoproj/argo-workflows/v3.buildDate=2022-09-14T11:40:24Z -X github.com/argoproj/argo-workflows/v3.gitCommit=5db53aa0ca54e51ca69053e1d3272e37064559d7 -X github.com/argoproj/argo-workflows/v3.gitTreeState=dirty -X github.com/argoproj/argo-workflows/v3.gitTag=v3.3.9 -extldflags -static' -o dist/argoexec ./cmd/argoexec
workflow/executor/os-specific/signal_linux.go:1:1: expected 'package', found signal_darwin
make: *** [Makefile:228: dist/argoexec] Error 1

uname -a:

Linux 74255990087b 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 riscv64 riscv64 riscv64 GNU/Linux

Do you have any ideas about where the problem lies?

@alexec
Copy link
Contributor

alexec commented Sep 15, 2022

signal_linux.go is a symlink to signal_darwin.go

Something to do with your OS?

@alexec alexec added the area/build Build or GithubAction/CI issues label Sep 15, 2022
@stale

This comment was marked as resolved.

@stale stale bot added the problem/stale This has not had a response in some time label Oct 1, 2022
@terrytangyuan terrytangyuan removed the problem/stale This has not had a response in some time label Sep 20, 2023
@agilgur5 agilgur5 changed the title riscv64 compliing error: expected 'package', found signal_darwin riscv64 compling error: expected 'package', found signal_darwin Jul 19, 2024
@agilgur5 agilgur5 added area/executor area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix labels Jul 19, 2024
@agilgur5
Copy link

Possibly same issue with symlinks as #12603

@agilgur5 agilgur5 added the P3 Low priority label Jul 19, 2024
@agilgur5 agilgur5 changed the title riscv64 compling error: expected 'package', found signal_darwin riscv64 compiling error: expected 'package', found signal_darwin Jul 19, 2024
@chengjoey
Copy link
Member

+1, mac os m1
command:

make argoexec-image TARGET_PLATFORM=linux/arm64 IMAGE_NAMESPACE=${my-docker-repo}

error:

 > [argoexec-build 1/1] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make dist/argoexec GIT_COMMIT=3450c2f15148a123c950840f1f87e1db5062f01f GIT_TAG=untagged GIT_TREE_STATE=dirty:
0.196 fatal: not a git repository (or any of the parent directories): .git
0.199 fatal: not a git repository (or any of the parent directories): .git
0.200 fatal: not a git repository (or any of the parent directories): .git
0.203 bash: line 1: [: =: unary operator expected
0.204 bash: line 1: [: =: unary operator expected
0.207 GIT_COMMIT=3450c2f15148a123c950840f1f87e1db5062f01f GIT_BRANCH= GIT_TAG=untagged GIT_TREE_STATE=dirty RELEASE_TAG=false DEV_BRANCH=true VERSION=latest
0.213 KUBECTX=none DOCKER_DESKTOP=false K3D=false DOCKER_PUSH=false TARGET_PLATFORM=linux/arm64
0.213 RUN_MODE=local PROFILE=minimal AUTH_MODE=hybrid SECURE=false  STATIC_FILES=false ALWAYS_OFFLOAD_NODE_STATUS=false UPPERIO_DB_DEBUG=0 LOG_LEVEL=debug NAMESPACED=true
1.731 workflow/executor/os-specific/signal_linux.go:1:1: expected 'package', found signal_darwin
2.720 find: manifests/base/crds: No such file or directory
2.792 find: examples: No such file or directory
2.792 CGO_ENABLED=0 go build -v -gcflags '' -ldflags '-X github.com/argoproj/argo-workflows/v3.version=latest -X github.com/argoproj/argo-workflows/v3.buildDate=2024-08-29T15:02:25Z -X github.com/argoproj/argo-workflows/v3.gitCommit=3450c2f15148a123c950840f1f87e1db5062f01f -X github.com/argoproj/argo-workflows/v3.gitTreeState=dirty -X github.com/argoproj/argo-workflows/v3.gitTag=untagged -extldflags -static' -o dist/argoexec ./cmd/argoexec
2.961 workflow/executor/os-specific/signal_linux.go:1:1: expected 'package', found signal_darwin
2.963 make: *** [Makefile:229: dist/argoexec] Error 1

@agilgur5
Copy link

@chengjoey my guess is that your git installation has core.symlinks disabled as that was the same error in #12603, as I wrote above, and that file is a symlink, as Alex wrote above.
See also #12604 (comment)

@chengjoey
Copy link
Member

chengjoey commented Aug 30, 2024

my guess is that your git installation has core.symlinks disabled

yeah, i set core.symlinks=true, then it worked

@chengjoey
Copy link
Member

also add note for this, #13534, feel free to close this pr if it is not necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix area/executor P3 Low priority type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants