base64 icon indicating copy to clipboard operation
base64 copied to clipboard

Issues with recent changes

Open mscdex opened this issue 9 years ago • 3 comments

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?

mscdex avatar Oct 23 '16 17:10 mscdex

Well the code for AVX2 was buggy before. It's still buggy now... I will make a PR to get this fixed.

mayeut avatar Oct 23 '16 18:10 mayeut

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.

mayeut avatar Oct 23 '16 18:10 mayeut

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?

aklomp avatar Nov 29 '16 21:11 aklomp