base64
base64 copied to clipboard
Issues with recent changes
After pulling in recent changes I encountered a couple of issues so far:
- With the new AVX target, I found that the XRSTORE check only works for AVX2. Here's what I ended up using in codec_choose.c to support AVX (not sure how correct this is):
if (max_level >= 7) {
#ifdef HAVE_AVX2
__cpuid_count(7, 0, eax, ebx, ecx, edx);
#endif
#ifdef HAVE_AVX
if (!(ecx & bit_XSAVE_XRSTORE)) {
__cpuid(1, eax, ebx, ecx, edx);
}
#endif
// ...
- My build setup uses libtool, which apparently has issues on macOS when multiple files have the same base name, in this case it's the codec.c files in each target/arch directory. Supposedly Windows may have a similar issue in some cases?
Well the code for AVX2 was buggy before. It's still buggy now... I will make a PR to get this fixed.
Regarding you second bullet point, without any pointer to your configuration, it will be hard to provide any support. I'm on macOS, I have libtool installed, I can try to check that if you provide me with your fork URL.
So the AVX detection was fixed (thanks @mayeut), which leaves the macOS libtool problem. @mscdex, could you provide some more information about what exactly is going wrong, such as terminal output or error messages?