Skip to content

AVX error trying to compile in mingw for win64 with NOASM #15

Description

@tansy

AVX error trying to compile in MinGW for win64 with NOASM

Trying to compile in MinGW for win64 it gets 'stuck' on i386 code for CRC[1].

gcc -c  -Wall  -DIZ_CRCOPTIM_UNFOLDTBL -DASM_CRC   -O2  crc_i386.S
crc_i386.S: Assembler messages:
crc_i386.S:301: Error: no such instruction: `this asm version is for 386 only'
make: *** [crc_i386.o] Error 1

Then, trying to read documentation tried `NOASM=1' and got titled error[2]:

gcc -c -DWIN32 -DFORCE_WIN32_OVER_UNIX  -Wall  -DIZ_CRCOPTIM_UNFOLDTBL  -o win32.o  -O2  -I. win32/win32.c
In file included from win32/../unzpriv.h:586,
                 from win32/../unzip.h:719,
                 from win32/win32.c:57:
win32/../win32/w32cfg.h:54:16: warning: '_tzset' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
   54 |    extern void _tzset(void);    /* this is missing in <time.h> */
      |                ^~~~~~
In file included from Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/lib/gcc/x86_64-w64-mingw32/10.3.0/include/immintrin.h:51,
                 from Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/lib/gcc/x86_64-w64-mingw32/10.3.0/include/x86intrin.h:32,
                 from Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/x86_64-w64-mingw32/include/winnt.h:1555,
                 from Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/x86_64-w64-mingw32/include/minwindef.h:163,
                 from Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/x86_64-w64-mingw32/include/windef.h:9,
                 from Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/x86_64-w64-mingw32/include/windows.h:69,
                 from win32/win32.c:58:
Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/lib/gcc/x86_64-w64-mingw32/10.3.0/include/avxintrin.h: In function '_mm256_set_ps':
Z:/media/dev/mingw/tdm64-gcc-10.3.0-2/lib/gcc/x86_64-w64-mingw32/10.3.0/include/avxintrin.h:1250:31: error: parameter name omitted
 1250 |         float __E, float __F, float __G, float __H)
      |                               ^~~~~

(...)

win32/win32.c: In function 'set_direc_attribs':
win32/win32.c:1277:33: warning: pointer targets in passing argument 3 of 'SetSD' differ in signedness [-Wpointer-sign]
 1277 |                         NtAtt(d)->buf, NtAtt(d)->SDlen - EB_HEADSIZE);
      |                                 ^
      |                                 |
      |                                 char *
win32/win32.c:315:10: note: expected 'uch *' {aka 'unsigned char *'} but argument is of type 'char *'
  315 |     uch *eb_ptr;

     |          ^~~~~~
make: *** [win32.o] Error 1

Then, tried to use `USEZLIB=1', but got the same error like last time (with `NOASM=1')[3].

--

Funny thing is, earlier, I managed to compile it with bzip2 codec[4].


  1. make-1.sh.log
  2. make-2-NOASM.sh.log
  3. make-3-zlib.sh.log
  4. make-bzip2-zlib.sh.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions