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

32-bit architectures: util/linux_util/linux_user.go:176:31: cannot use _Ctype_ulong(bufLen) (value of type _Ctype_ulong) as _Ctype_uint value in argument to (_Cfunc__CMalloc) #53

Closed
vt-alt opened this issue Dec 17, 2023 · 1 comment · Fixed by #128
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@vt-alt
Copy link

vt-alt commented Dec 17, 2023

(Native) build error on 32-bit architectures (i586 and arm32):

[00:00:27] + go build -v -o ssh3-server cli/server/main.go
[00:00:27] text/tabwriter
[00:00:27] html
[00:00:27] internal/lazyregexp
[00:00:27] runtime/trace
[00:00:27] github.com/creack/pty
[00:00:27] runtime/pprof
[00:00:27] internal/profile
[00:00:27] ssh3/util/linux_util
[00:00:28] net/http/pprof
[00:00:28] # ssh3/util/linux_util
[00:00:28] util/linux_util/linux_user.go:176:31: cannot use _Ctype_ulong(bufLen) (value of type _Ctype_ulong) as _Ctype_uint value in argument to (_Cfunc__CMalloc)
[00:00:28] util/linux_util/linux_user.go:180:77: cannot use _Ctype_ulong(bufLen) (value of type _Ctype_ulong) as _Ctype_uint value in variable declaration
@francoismichel
Copy link
Owner

Yes due to the pain of using C/CGo, we currently focus on x86_64 and arm64 for the server (the client builds on a lot more architectures as you can see it on the Release page).

I am planning to get rid of CGo entirely so that the server can compile on every linux host.
If somewants want to fix that for 32bit archs it would be great. On my side, I'll focus on getting rid of CGo and it will naturally sorve this problem.

@francoismichel francoismichel added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants