-
Notifications
You must be signed in to change notification settings - Fork 15
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
CGO failed processing error #49
Comments
The path shows that you're on Windows, however this module is only supported on Linux: https://github.com/microsoft/go-crypto-openssl#limitations. (@qmuntal, is this meant to be smoother when the platform doesn't match? Or would that be bad to maintain vs. the stuff we already detect in microsoft/go?) (For Windows CNG crypto, we have https://github.com/microsoft/go-crypto-winnative.) Why are you looking at this library in particular? For most scenarios (particularly inside Microsoft), these libraries will automatically be used when you use FIPS mode with our fork of the Go Toolset: |
@dagood I stumbled on this ticket but I'm struggling with a different issue. Do you have an example of a build command for a shared executable that properly links to openssl.? I keep getting: "openssl: can't load libcrypto.so.3: Dynamic loading not supported" |
Sported this . Was using |
Hi, I have encountered this error: "go list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing; try building at the command line. See https://golang.org/issue/38990." after I installed the package locally.
go env
go list -json -compiled -e
It seems to ignore those files with C imported, so basically the only file that is successfully compiled is big.go, and this made my code that uses this package not able to recognize functions/identifiers in those cgo files. For example, it can only understand
openssl.BigInt
because this is the only thing that is compiled. All other requests, such asopenssl.NewAESCipher
, will have error similar to this shown: "undefined: openssl.NewAESCipher" with yellow squiggly lines "NewAESCipher not declared by package openssl (compile)"Is there something wrong with my gopls settings, or is it an issue with go version (go.mod indicates 1.16 yet go version is 1.19)? Thanks!
The text was updated successfully, but these errors were encountered: