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

relocation target runtime.support_avx not defined #3

Closed
bryanpedini opened this issue Apr 16, 2020 · 6 comments
Closed

relocation target runtime.support_avx not defined #3

bryanpedini opened this issue Apr 16, 2020 · 6 comments

Comments

@bryanpedini
Copy link
Collaborator

After solving #1 (with PR #2), I finally tried to build the project and who knew another problem arised...

This one tho seems I'm not able to either understand or solve correctly:

# go.rls.moe/nyx
go.rls.moe/nyx/vendor/golang.org/x/crypto/blake2b.supportsAVX2: relocation target runtime.support_avx2 not defined
go.rls.moe/nyx/vendor/golang.org/x/crypto/blake2b.supportsAVX: relocation target runtime.support_avx not defined

This issue will need to be taken by the original author, and I cannot help with it.
I've already searched online and it suggests that the problem has to do with wrapping and the CPU detection features of the crypto library, which, having never used it, I don't know even how it works, let alone solve a problem with it.

@tscs37
Copy link
Contributor

tscs37 commented Apr 17, 2020

I'll have to look at this tomorrow. The library probably expects AVX to be supported but I'm not entirely certain since I haven't done anything larger in Go since I finished this project. I'm somewhat surprised someone is still interested in a project not maintained for 3 years but I'm very much going to look into this and see if I can fix it, don't like my code being broken.

@tscs37 tscs37 pinned this issue Apr 17, 2020
@bryanpedini
Copy link
Collaborator Author

bryanpedini commented Apr 17, 2020

Sure thing, I too don't like my code being broken, even after time passes.

By the way, I'm still interested because I have the absolute need to put up an image board with no javascript at all. (also because the Tor network (and browser) and Javascript aren't the most famous best friends...)

@tscs37
Copy link
Contributor

tscs37 commented Apr 18, 2020

I've pushed an update of external dependencies, that should fix the issue. Was probably related to changes in the go crypto libs.

@bryanpedini
Copy link
Collaborator Author

I don't know if it's my environment or what, but unfortunately both git clone-ing (and go building) and go getting the source code, return the same error from before on blake2b.
I also made sure to have deleted the entire project from my drive and downloaded a new copy, and checked the git log to make sure the last commit by you pushed was there; nothing...

Perhaps you could setup Drone or Travis to test the builds as soon as you push (plus a couple of minutes) to avoid these long polling to get results. (and that could even create a binary build suitable to be distributed on GitHub aswell, so people don't even have to install go either)

@tscs37
Copy link
Contributor

tscs37 commented Apr 19, 2020

Hi, I've added a .drone.yml that runs on my local infra and it builds there after reproducing the error again; go mod didn't properly pull a modern version of golang.org/x/crypto.

@bryanpedini
Copy link
Collaborator Author

bryanpedini commented Apr 19, 2020

Fixed #3 now.
Thanks a lot @tscs37!!

@tscs37 tscs37 unpinned this issue Apr 19, 2020
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