Jump to content
35 posts in this topic

Recommended Posts

I've made a new OPEMU.

It's included in the attachment.

It is required for High Sierra and Mojave

 

# OPEMU
osfmk/OPEMU/opemu.c		standard
osfmk/OPEMU/opemu_math.c	standard
osfmk/OPEMU/ssse3.c		standard
osfmk/OPEMU/sse42.c		standard
osfmk/OPEMU/sse41.c		standard
osfmk/OPEMU/sse3.c		standard
osfmk/OPEMU/libudis86/decode.c standard
osfmk/OPEMU/libudis86/itab.c standard
osfmk/OPEMU/libudis86/syn.c standard
osfmk/OPEMU/libudis86/syn-intel.c standard
osfmk/OPEMU/libudis86/udis86.c standard

 

OPEMU.zip

  • Like 11
  • Thanks 2
5 hours ago, Andy Vandijck said:

I've made a new OPEMU.

It's included in the attachment.

It is required for High Sierra and Mojave

 


# OPEMU
osfmk/OPEMU/opemu.c		standard
osfmk/OPEMU/opemu_math.c	standard
osfmk/OPEMU/ssse3.c		standard
osfmk/OPEMU/sse42.c		standard
osfmk/OPEMU/sse41.c		standard
osfmk/OPEMU/sse3.c		standard
osfmk/OPEMU/libudis86/decode.c standard
osfmk/OPEMU/libudis86/itab.c standard
osfmk/OPEMU/libudis86/syn.c standard
osfmk/OPEMU/libudis86/syn-intel.c standard
osfmk/OPEMU/libudis86/udis86.c standard

 

OPEMU.zip

Hope some genius can develope a new kernel for AMD K10 CPUs hackintosh or Intel LGA 775 MB as soon as possible !

Nice work...

however it breaks kernels past some 10.13 version (10.13.6? idk) as it accesses user data while SMAP is enabled and the flag is not cleared. Mind adding one hook before accessing user data and another after being done (there does not seem to be one unified return path, so should be a bunch)? The hook would be NOP for old kernels and call clac/stac for new kernels.

 

Thx, DF

  • Like 1
  • Thanks 1
10 hours ago, Andy Vandijck said:

I've made a new OPEMU.

It's included in the attachment.

It is required for High Sierra and Mojave

 


# OPEMU
osfmk/OPEMU/opemu.c		standard
osfmk/OPEMU/opemu_math.c	standard
osfmk/OPEMU/ssse3.c		standard
osfmk/OPEMU/sse42.c		standard
osfmk/OPEMU/sse41.c		standard
osfmk/OPEMU/sse3.c		standard
osfmk/OPEMU/libudis86/decode.c standard
osfmk/OPEMU/libudis86/itab.c standard
osfmk/OPEMU/libudis86/syn.c standard
osfmk/OPEMU/libudis86/syn-intel.c standard
osfmk/OPEMU/libudis86/udis86.c standard

 

OPEMU.zip

 

Thanks for the update. Having issues compiling though,

 

CC  opemu.o
CC  opemu_math.o
In file included from /Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:38:
In file included from /Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.h:5:
In file included from /Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/libudis86/extern.h:33:
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/libudis86/types.h:152:3: error: unknown type name 'int128_t'
  int128_t   sqqword;
  ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/libudis86/types.h:153:3: error: unknown type name 'uint128_t'
  uint128_t  uqqword;
  ^
In file included from /Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:38:
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.h:32:11: warning: parameter 'state:' not found in the function declaration [-Wdocumentation]
 * @param state: xnu's trap.c saved thread state
          ^~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.h:32:11: note: did you mean 'state'?
 * @param state: xnu's trap.c saved thread state
          ^~~~~~
          state
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:65:13: error: use of undeclared identifier 'islongmode'
        if (islongmode)
            ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:90:13: error: use of undeclared identifier 'islongmode'
        if (islongmode)
            ^
CC  nat464_utils.o
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:268:11: warning: parameter 'saved_state:' not found in the function declaration
      [-Wdocumentation]
 * @param saved_state: the saved state
          ^~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:269:11: warning: parameter 'base:' not found in the function declaration [-Wdocumentation]
 * @param base:  the register type itself
          ^~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:269:11: note: did you mean 'base'?
 * @param base:  the register type itself
          ^~~~~
          base
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:270:11: warning: parameter 'where:' not found in the function declaration [-Wdocumentation]
 * @param where: reg's value will be stored there
          ^~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:270:11: note: did you mean 'where'?
 * @param where: reg's value will be stored there
          ^~~~~~
          where
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:400:11: warning: parameter 'saved_state:' not found in the function declaration
      [-Wdocumentation]
 * @param saved_state: the saved state
          ^~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:401:11: warning: parameter 'base:' not found in the function declaration [-Wdocumentation]
 * @param base:  the register type itself
          ^~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:401:11: note: did you mean 'base'?
 * @param base:  the register type itself
          ^~~~~
          base
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:402:11: warning: parameter 'where:' not found in the function declaration [-Wdocumentation]
 * @param where: reg's value will be stored there
          ^~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:402:11: note: did you mean 'where'?
 * @param where: reg's value will be stored there
          ^~~~~~
          where
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:413:29: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> isf.rip = where;
            ~~~~~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:417:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rax = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:421:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rcx = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:425:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rdx = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:429:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rbx = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:433:29: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> isf.rsp = where;
            ~~~~~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:437:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rbp = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:441:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rsi = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:445:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> rdi = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:449:24: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> r8 = where;
            ~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:453:24: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> r9 = where;
            ~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:457:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> r10 = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:461:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> r11 = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:465:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> r12 = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:469:25: error: cannot assign to variable 'ss64' with const-qualified type
      'const x86_saved_state64_t *' (aka 'const struct x86_saved_state64 *')
            ss64 -> r13 = where;
            ~~~~~~~~~~~ ^
/Users/shaneee/Desktop/xnu-4903.221.2/osfmk/OPEMU/opemu.c:407:32: note: variable 'ss64' declared const here
    const x86_saved_state64_t *ss64 = saved_state64(state);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
CC  pf.o
make[7]: *** [opemu.o] Error 1
make[7]: *** Waiting for unfinished jobs....
CC  pf_if.o
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_osfmk] Error 2
make[2]: *** Waiting for unfinished jobs....

 

  • Thanks 1

First up the compiler doesn't seem to like multi line comments starting with /**, removing one asterisk solves that. Also ss32 and ss64 are defined as constants but are constantly changing, so you need to remove the "const" from their definitions too. Also you need to replace int64_t with __int64_t (same thing with uint64_t), that also solves some errors. Doing so greeted me with another wall of errors though coming from xmmintrin.h and its cousins which I'm currently trying to fix, part of it is caused by duplicate declarations, those are an easy fix, but others seem to come from within the header file itself (?) which leads me to believe that my build environment is just really borked... @XLNC is experiencing the same errors though, so IDK about that. I attached the terminal output from how far I got.

 

Edit: Also in some files you forgot to declare islongmode, doing that also resolves some issues

 

opemu.log

Edited by notiflux
  • Thanks 2
  • 5 months later...
On ‎1‎/‎2‎/‎2019 at 6:05 AM, Andy Vandijck said:

I've made a new OPEMU.

It's included in the attachment.

It is required for High Sierra and Mojave

 


# OPEMU
osfmk/OPEMU/opemu.c		standard
osfmk/OPEMU/opemu_math.c	standard
osfmk/OPEMU/ssse3.c		standard
osfmk/OPEMU/sse42.c		standard
osfmk/OPEMU/sse41.c		standard
osfmk/OPEMU/sse3.c		standard
osfmk/OPEMU/libudis86/decode.c standard
osfmk/OPEMU/libudis86/itab.c standard
osfmk/OPEMU/libudis86/syn.c standard
osfmk/OPEMU/libudis86/syn-intel.c standard
osfmk/OPEMU/libudis86/udis86.c standard

 

OPEMU.zip

Hi Andy, did you fix the bugs by now?
 

  • Sad 1
  • 9 months later...

This should fix the OPEMU errors....

 

OPEMU.zip

 

Don't have macOS on any of my machines to look into 

/osfmk/i386/trap.c:731] (error) Comparing pointers that point to different objects [comparePointers]

 

Also, hey spakk

  • Thanks 1
13 hours ago, Duran Keeley said:

This should fix the OPEMU errors....

 

OPEMU.zip

 

Don't have macOS on any of my machines to look into 

/osfmk/i386/trap.c:731] (error) Comparing pointers that point to different objects [comparePointers]

 

Also, hey spakk

 

Hey Duran hope you're doing well. I'm still facing issues using this while building for Spakk. See the errors in the attached document. 

build_error.rtf

In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/decode.c:27:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/itab.c:2:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/decode.h:29:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
In file included from 1/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/syn-att.c error: generated26.
:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
make[7]: *** [decode.o] Error 1
make[7]: *** Waiting for unfinished jobs....
1 error generated.
make[7]: *** [syn-att.o] Error 1
1 error generated.
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/syn.c:26:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
make[7]: *** [itab.o] Error 1
1 error generated.
make[7]: *** [syn.o] Error 1
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3.c:12:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/extern.h:33:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:38:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/extern.h:33:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
1 error generated.
make[7]: *** [opemu.o] Error 1
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse41.c:1:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3_priv.h:3:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/extern.h:33:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse3.c:12:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/extern.h:33:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>
          ^~~~~~~~~~~~
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse42.c:1:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3_priv.h:3:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/extern.h:33:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/libudis86/types.h:46:11: fatal error: 'inttypes.h' file not found
# include <inttypes.h>

 

11 hours ago, Duran Keeley said:

Cheers,

Tried upgrading libudis86....

 

Try this one: OPEMU III - V3.zip

 

Thanks for working on this. This is the errors I receive now,

 

/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:47:40: error: use of undeclared identifier 'regs'
        uint8_t islongmode = is_saved_state64(regs);
                                              ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:414:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = 0;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:419:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> ip;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:419:20: error: no member named 'ip' in 'struct x86_saved_state64'
                *where = ss64 -> ip;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:423:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> ax;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:423:20: error: no member named 'ax' in 'struct x86_saved_state64'
                *where = ss64 -> ax;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:427:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> cx;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:427:20: error: no member named 'cx' in 'struct x86_saved_state64'
                *where = ss64 -> cx;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:431:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> dx;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:431:20: error: no member named 'dx' in 'struct x86_saved_state64'
                *where = ss64 -> dx;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:435:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> bx;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:435:20: error: no member named 'bx' in 'struct x86_saved_state64'
                *where = ss64 -> bx;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:439:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> sp;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:439:20: error: no member named 'sp' in 'struct x86_saved_state64'
                *where = ss64 -> sp;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:443:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> bp;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:443:20: error: no member named 'bp' in 'struct x86_saved_state64'
                *where = ss64 -> bp;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:447:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> si;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:447:20: error: no member named 'si' in 'struct x86_saved_state64'
                *where = ss64 -> si;In file included from 
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse41.c:                         ~~~~    ^1
:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus.h::4518::
3: /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:error10: :10:indirection  requires fatal errorpointer:  operand
      'xmmintrin.h'('uint64_t' (aka 'unsigned long long') invalid) file
 not found                *where = ss64 -> di;

                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:451:20: error: no member named #include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)'di'
 in         ^~~~~~~~~~~~~ 
'struct x86_saved_state64'
                *where = ss64 -> di;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:455:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r8;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:459:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r9;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:463:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r10;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:467:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r11;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:471:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r12;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:475:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r13;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:479:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r14;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:483:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss64 -> r15;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:489:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> ax;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:489:20: error: no member named 'ax' in 'struct x86_saved_state32'
                *where = ss32 -> ax;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:493:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> cx;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:493:20: error: no member named 'cx' in 'struct x86_saved_state32'
                *where = ss32 -> cx;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:497:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> dx;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:497In file included from :20/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3.c:: 13:
In file included from error/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3_priv.h: :5:
noIn file included from  /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus.hmember: 8named:
 'dx' in/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus_base.h :'struct x86_saved_state32'10:
10:                 *where = ss32 -> dx;fatal error
:                          ~~~~    ^
'xmmintrin.h' file not/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c :found501:
3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)                *where = ss32 -> bx;

         ^~~~~~~~~~~~~                ^~~~~~

/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:501:20: error: no member named 'bx' in 'struct x86_saved_state32'
                *where = ss32 -> bx;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:505:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> sp;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:505:20: error: no member named 'sp' in 'struct x86_saved_state32'
                *where = ss32 -> sp;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:509:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> bp;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:509:20: error: no member named 'bp' in 'struct x86_saved_state32'
                *where = ss32 -> bp;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:513:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> si;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:513:20: error: no member named 'si' in 'struct x86_saved_state32'
                *where = ss32 -> si;
                         ~~~~    ^
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:517:3: error: indirection requires pointer operand
      ('uint64_t' (aka 'unsigned long long') invalid)
                *where = ss32 -> di;
                ^~~~~~
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/opemu.c:517:20: error: no member named 'di' in 'struct x86_saved_state32'
                *where = ss32 -> di;
                         ~~~~    ^
44 errors generated.
make[7]: *** [opemu.o] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse42.c:1:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:10: fatal error: 'xmmintrin.h' file not found
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)
         ^~~~~~~~~~~~~
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse3.c:14:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/sse3_priv.h:5:
In file included from /Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
/Users/shaneee/Desktop/xnu-6153.11.26/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:10: fatal error: 'xmmintrin.h' file not found
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)

 

Hi Duran, Hi Shane

 

At the moment I'm only turning in circles.

With all previous attempts, I have at best achieved the same errors as Shane with xnu-4570.1.46

 

Yeah, Meowthra did a full opemu for linux and a kext in macOS. The best option would be to figure out how to convert the c++ kext to the kernel. Or the c linux ported over to the kernel...

 

But the few attemps I have tried with zero knowledge... :) Not very successful

5 hours ago, Duran Keeley said:

Yeah, Meowthra did a full opemu for linux and a kext in macOS. The best option would be to figure out how to convert the c++ kext to the kernel. Or the c linux ported over to the kernel...

 

But the few attemps I have tried with zero knowledge... :) Not very successful

https://www.insanelymac.com/forum/topic/338919-opcode-emulator-opemu-for-linux-64-bit/

Opcode Emulator (OPEMU) for Linux 64-bit (By Meowthra, May 24, 2019 in *nix)

_______________________________________________________________________________________

https://github.com/saviosg/opemu-linux

read the README.md:

OPEMU for Linux

This is an adaptation of the original Opcode Emulator from xnu-amd's repo for Linux.

For the kernel module, and a few other things (fpins, SSE4.1...), I took some code from Meowthra's OPEMU , which looks pretty good, but does not fit my needs (SSSE3, SSE4.1, & SSE4.2).

What's working

SSE3, SSSE3, SSE4.2 (mostly).most SSE4.1 instructions are missing, I tried to add a few but it's not working well yet.

 

Here it is explicitly pointed out again that the SSE4.1 emulator is not working and the source needs to be improved. (By Saviosg)

  • Like 1

Yeah... But he was building on the Opemu from the amd side and porting over to linux 

This is an adaptation of the original Opcode Emulator from xnu-amd.... I took some code from Meowthra's OPEMU

... Meowthra linux is fully built and needs porting to the opemu we have or rebuilt using his. Look at the source code of Meowthra's kext or linux code... the are quite different.

I take it all back... went back to the drawing board with Andy's source.

 

My errors are in sseplus now and the #include <xmmintrin.h> .... But errors in other areas that didn't before so probably broke more then I fixed :) for some reason I feel like we have done this fix before!

 

In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:13:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
/Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:10: fatal error: 'xmmintrin.h' file not found
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)
         ^~~~~~~~~~~~~
1 error generated.
make[7]: *** [ssse3.o] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.c:1:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
/Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:10: fatal error: 'xmmintrin.h' file not found
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)
         ^~~~~~~~~~~~~
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c:1:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
/Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:10: fatal error: 'xmmintrin.h' file not found
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)
         ^~~~~~~~~~~~~
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c:14:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3_priv.h:5:
In file included from /Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
/Users/durankeeley/Downloads/xnu/amd-xnu/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:10: fatal error: 'xmmintrin.h' file not found
#include <xmmintrin.h>  // SSE  (Required to use the __m128, and __m128d type)
         ^~~~~~~~~~~~~
1 error generated.
make[7]: *** [sse42.o] Error 1
1 error generated.
1 error generated.
make[7]: *** [sse3.o] Error 1
make[7]: *** [sse41.o] Error 1
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_osfmk] Error 2
make[1]: *** [build_all_bootstrap_RELEASE^X86_64^NONE] Error 2
make: *** [all] Error 2

 

AMD-High-Sierra-XNU-master 2.zip

9 minutes ago, Duran Keeley said:

I take it all back... went back to the drawing board with Andy's source.

 

My errors are in sseplus now and the #include <xmmintrin.h> .... But errors in other areas that didn't before so probably broke more then I fixed :) for some reason I feel like we have done this fix before!

 

AMD-High-Sierra-XNU-master 2.zip

 

From your source there the errors continue when using the EXTERNAL_HEADERS used by Andy in previous kernels,

 

shaneee@iMac-Pro ~ % cd /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master 
shaneee@iMac-Pro AMD-High-Sierra-XNU-master % make SDKROOT=macosx ARCH_CONFIGS=X86_64 KERNEL_CONFIGS="RELEASE"
Password:
CC  ssse3.o
CC  sse42.o
CC  sse41.o
CC  sse3.o
CC  decode.o
CC  syn.o
CC  itab.o
CC  syn-intel.o
CC  udis86.o
CC  vm_purgeable.o
CC  vm_object.o
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_object.c:72:
In file included from ./mach/memory_object_control_server.h:58:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/ipc_kobject.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/ipc/ipc_port.h:90:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/ipc/ipc_mqueue.h:76:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/waitq.h:107:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/syn.c:-XNU-master/osfmk/kern/sched.h120::9:78 :
warning: /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9implicit:  declaration ofwarning : function 'vsnprintf' implicitis  useinvalid 
of       insequentially-consistent  C99atomic  [-Wimplicit-function-declaration]may 
incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
  ret = vsnprintf((char*) u->asm_buf + u->asm_buf_fill, avail, fmt, ap);
        ^
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/syn.c:119/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/decode.c::45671::24 : warningwarning: : implicitimplicit  conversionconversion  losesloses  integerinteger precision: 
precision:      
'size_t'       'unsigned long'(aka 'unsigned long')  toto  'int''unsigned int'  [-Wshorten-64-to-32][-Wshorten-64-to-32]

  avail = u->asm_buf_size - u->asm_buf_fill - 1 /* nullchar */;
        ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
    decode_mem_disp(u, offset, op);
    ~~~~~~~~~~~~~~~    ^~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/decode.c:1260:13: warning: implicit conversion loses integer precision:
      'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  return u->inp_ctr;
  ~~~~~~ ~~~^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/udis86.c:175:7: warning: 'sprintf' is deprecated [-Wdeprecated-declarations]
      sprintf(src_hex, "%02x", *src_ptr & 0xFF);
      ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c:12:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:109:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/cpu_number.h:64:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched.h:78:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:206:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_set(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: note: expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:212:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_clear(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:47:32: note: expanded from macro 'bit_clear'
#define bit_clear(x, b)                 ((x) &= ~BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:230:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:240:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:8: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                     ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:41: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                                      ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:266:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:280:23: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int res = __bit_next(map[i], bits(prev, 5, 0));
                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:289:37: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + bit_first(map[i]));
                                                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:304:35: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int32_t res = lsb_next((uint64_t)map[i], (int)b);
                                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:313:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));
                                                            ^
In file included from                         ^/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:3:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:1/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/misc_protos.h:141:59: note: 'sprintf' has been explicitly marked deprecated here
extern integer_t sprintf(char *buf, const char *fmt, ...) __deprecated;
                                                          ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/libsa/types.h:102:37: note: expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
                                    ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/udis86.c:205:13: warning: implicit conversion loses integer precision:
      'const size_t' (aka 'const unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  return u->inp_ctr;
  ~~~~~~ ~~~^~~~~~~
2 warnings generated.
09:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/cpu_number.h:64:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched.h:78:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^

/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:206:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_set(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: note: expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:212:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_clear(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:47:32: note: expanded from macro 'bit_clear'
#define bit_clear(x, b)                 ((x) &= ~BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:230:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:240:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:8: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                     ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:41: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                                      ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:266:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:280:23: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int res = __bit_next(map[i], bits(prev, 5, 0));
                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:289:37: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + bit_first(map[i]));
                                                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:304:35: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int32_t res = lsb_next((uint64_t)map[i], (int)b);
                                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:313:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:12:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:109:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/cpu_number.h:64:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched.h:78:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
/Users/shaneee/In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_purgeable.c:24:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:109:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/cpu_number.h:64:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched.h:78:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9: warning: implicit use o/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/itab.c:4889:16: error: use of undeclared identifier 'UD_Ipwvb'; did you mean
      'UD_Ipavgb'?
  /* 1616 */ { UD_Ipwvb, O_V, O_W, O_NONE, O_NONE, P_aso|P_rexr|P_rexx|P_rexb },
               ^~~~~~~~
               UD_Ipavgb
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/itab.h:397:5: note: 'UD_Ipavgb' declared here
    UD_Ipavgb,
    ^
Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:206:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_set(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: note: expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:212:2: warning: implicit use of sequenti2 warnings generated.
f sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:206:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_set(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: note: expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
ally-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_clear(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h::47212::322::  warning:: 206implicit: 2use:  of sequentially-consistentwarning : atomic mayimplicit  incuruse  strongerof
       sequentially-consistentmemory  atomicbarriers  maythan  incurnecessary  stronger[-Watomic-implicit-seq-cst]
      
memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_clear(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:47:32: note:         bit_set(map[bitmap_index(n)], bitmap_bit(n));expanded
 from        ^ 
macro 'bit_clear'
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: #define bit_clear(x, b)                 ((x) &= ~BIT(b))
note                                             ^: 
expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
/Users/sh/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:230:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:240:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:8: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                     ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:41: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                                      ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:266:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:280:23: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int res = __bit_next(map[i], bits(prev, 5, 0));
                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:289:37: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + bit_first(map[i]));
                                                  ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c:12:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:827:53: warning: implicit use of sequentially-consistent atomic may incur
      stronger memory barriers than necessary [-Watomic-implicit-seq-cst]
        return __sync_fetch_and_or(&thread->thread_tag, tag);
               ~~~~~~~~~~~~~~~~~~~                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:304:35: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int32_t res = lsb_next((uint64_t)map[i], (int)b);
                                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:313:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));
                                                            ^
note: expanded from macro 'bit_clear'
#define bit_clear(x, b)                 ((x) &= ~BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:230:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:240:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:8: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
         aneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:212:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_clear(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:47:32: note: expanded from macro 'bit_clear'
#define bit_clear(x, b)                 ((x) &= ~BIT(b))
                                             ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:3:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:109:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/cpu_number.h:64:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched.h:78:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h        return bit_test(prev, n);:
230:                        ^18
: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h            ^:
240:31: warning: implicit use of sequentially-consistent atomic may /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.hincur: 250stronger:
18      :memory  barriers warningthan:  necessary implicit[-Watomic-implicit-seq-cst] use
 of sequentially-consistent atomic may                 return (i << 6) + bit_first(map[i]);incur
 stronger                                            ^

      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-csIn file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.ct]:/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h1::
250In file included from 
:/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h8::3 :
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.hwarning:: 4:
In file included from implicit/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h                return (i << 6) + bit_first(map[i] & ~mask[i]);: 
74use :
                                            ^of
 /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.hsequentially-consistent: 827atomic: 53may:/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h  :incur253 :strongerwarning41
: :       memory implicitbarriers warning use: than of  necessaryimplicitsequentially-consistent   [-Watomic-implicit-seq-cst]useatomic  
ofmay  sequentially-consistentincur 
atomic                       if ((map[i] & ~mask[i]) == 0) {strongermay
  memoryincur                      ^ barriers
stronger 
than       memorynecessary  /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.hbarriers[-Watomic-implicit-seq-cst]: 250than
: 18necessary:  [-Watomic-implicit-seq-cst]
warning:         return __sync_fetch_and_or(&thread->thread_tag, tag);
implicit                ~~~~~~~~~~~~~~~~~~~                         ^use
 of sequentially-consistent                return (i << 6) + bit_first(map[i] & ~mask[i]); 
atomic                                                       ^may
 incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:41: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:266                return (i << 6) + bit_first(map[i] & ~mask[i]);:
47:                                                      ^ 
warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:
206266:47:                                                            ^:2
:  warningwarning: : implicitimplicit  useuse  ofof  sequentially-consistentsequentially-consistent  atomicatomic  maymay  incurincur  strongerstronger

            memorymemory  barriersbarriers  thanthan  necessarynecessary  [-Watomic-implicit-seq-cst][-Watomic-implicit-seq-cst]

                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));
                                                            ^
        bit_set(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: note: expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:280:23: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h        int res = __bit_next(map[i], bits(prev, 5, 0));:
280:                             ^23
: /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:warning212: :2:implicit  use warningof:  sequentially-consistent implicitatomic  usemay  ofincur  sequentially-consistentstronger 
atomic may       incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:289:memory37 :        bit_clear(map[bitmap_index(n)], bitmap_bit(n));barriers
          ^than
 warningnecessary:  [-Watomic-implicit-seq-cst]/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:implicit
47 :use32:  of notesequentially-consistent: In file included from expanded/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c :from14 :
macro In file included from 'bit_clear'/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3_priv.h:
5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10#define bit_clear(x, b)                 ((x) &= ~BIT(b)):

In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h                                             ^:
31:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:31:19: error: typedef redefinition with different types
      ('__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value) vs 'u_int64_t' (aka 'unsigned long long'))
typedef long long __m64 __attribute__((__vector_size__(8)));
                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:65:15: note: expanded from macro '__m64'
#define __m64 uint64_t
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/stdint.h:32:30: note: previous definition is here
typedef u_int64_t            uint64_t;   /* u_int64_t is defined in <machine/types.h> */
                             ^
 atomic may incur stronger
      memory barriers than/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h :necessary230 :[-Watomic-implicit-seq-cst]18:
 warning: implicit use of                 return (int)((i << 6) + bit_first(map[i]));sequentially-consistent
 atomic                                                  ^ 
may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c
:/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h14::
304In file included from :/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3_priv.h35::5 :
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));In file included from 
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:warning                        ^8: 
:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.himplicit: 10use:
 In file included from of/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h :sequentially-consistent31 :
atomic /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.hmay: 226incur: 53stronger:
       memory errorbarriers:  than passingnecessary  'uint64_t'[-Watomic-implicit-        int res = __bit_next(map[i], bits(prev, 5, 0));
seq-cst]                             ^

        int32_t res = lsb_next((uint64_t)map[i], (int)b);
                                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:240:31: warning: implicit use of sequentially-consistent atomic may /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.hincur: 289stronger:
37      :memory  barriers warningthan:  necessary implicit[-Watomic-implicit-seq-cst] use
 of sequentially-consistent atomic may incur                return (i << 6) + bit_first(map[i]); 
stronger
                                            ^      /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h
memory: 313barriers: 47than:  necessary [-Watomic-implicit-seq-cst]warning: 
implicit use of sequentially-consistent                 return (int)((i << atomic(aka 'unsigned long long')  tomay
       incurparameter  strongerof
       incompatiblememory  typebarriers  '__attribute__((__vector_size__(1 * sizeof(long long)))) long long'than  (vector of 1 'long long' value)necessary 
[-Watomic-implicit-seq-cst]
    return (__m64)__builtin_ia32_psllw((__v4hi)__m, __count);                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));

                                                    ^~~~~~~                                                            ^

/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:8: warning: implicit use of In file included from sequentially-consistent atomic /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.cmay: 1incur:
 In file included from stronger/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h
:      5memory:
 In file included from barriers/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osf 6) + bit_first(map[i]));
                                                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:238:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_pslld((__v2si)__m, __count);
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:250:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllq(__m, __count);/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h
:304                                       ^~~:
35: warning: implicit use of sequentially-consistent atomic may incur stronger
      /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.hmemory: 256barriers: 41than:  necessary [-Watomic-implicit-seq-cst]error: 
passing 'uint64_t' (aka 'unsigned long long') to
      parameter        int32_t res = lsb_next((uint64_t)map[i], (int)b); 
of                                          ^incompatible
 type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:262:53: error: /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:313passing: 47'uint64_t':  (aka 'unsigned long long') towarning
:       parameter implicitof  useincompatible  oftype  sequentially-consistent'__attribute__((__vector_size__(1 * sizeof(long long)))) long long'  atomic(vector of 1 'long long' value) may
 incur stronger
      memory barriers than necessary    return (__m64)__builtin_ia32_psraw((__v4hi)__m, __count);     
[-Watomic-implicit-seq-cst]                                                    ^~~~~~~

                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:274:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrad((__v2si)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:286:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:298:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrld((__v2si)__m, __count);       
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:310:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlq(__m, __count);    
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:316:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:322:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pand(__m1, __m2);
                               ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:328:33: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pandn(__m1, __m2);
                                ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:334:31: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_por(__m1, __m2);
                              ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:340:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pxor(__m1, __m2);
                               ^~~~
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c:14:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:35:15: error: typedef redefinition with different types
      ('__attribute__((__vector_size__(4 * sizeof(float)))) float' (vector of 4 'float' values) vs 'unsigned __int128')
typedef float __m128 __attribute__((__vector_size__(16)));
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:64:16: note: expanded from macro '__m128'
#define __m128 __uint128_t
               ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3.c:14:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:6: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
  ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:16: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
            ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:59:6: error: subscripted value is not an array, pointer, or vector
  __a[0] -= __b[0];
  ~~~^~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
mk/OPEMU/SSEPlus/SSEPlus.hIn file included from :/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_purgeable.c:824:
:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.hIn file included from :74/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:
:10/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:
:827In file included from :53/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:: 31:
warning: /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:implicit31 use: 19of: sequentially-consistent  atomic mayerror incur: 
      stronger memorytypedef  barriers redefinitionthan  necessarywith  [-Watomic-implicit-seq-cst]different
 types
      ('__attribute__((__vector_size__(1 * sizeof(long long))))        return __sync_fetch_and_or(&thread->thread_tag, tag); 
long                ~~~~~~~~ than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                     ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicitlong' use of  sequentially-consistent(vector of 1 'long long' value)  atomicvs  may'u_int64_t'  incur(aka 'unsigned long long')) stronger

      memory barriers than necessary [-Watomic-implicit-seq-cst]
typedef long long __m64 __attribute__((__vector_size__(8)));
                  ^
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h::4165:: 15: warning: note: implicit expandeduse  fromof  macrosequentially-consistent  '__m64'atomic 
may incur stronger#define __m64 uint64_t

      memory              ^ 
barriers than necessary [-Watomic-implicit-seq-cst]/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/stdint.h:
32:30: note:                 return (i << 6) + bit_first(map[i] & ~mask[i]);previous
 definition                                                      ^ 
is here
typedef u_int64_t            uint64_t;   /* u_int64_t is defined in <machine/types.h> */
                             ^
~~~~~~~~~~~                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:266:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:280:23: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int res = __bit_next(map[i], bits(prev, 5, 0));
                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:289:37: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + bit_first(map[i]));
                                                  ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:31:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:226:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:304:35:     return (__m64)__builtin_ia32_psllw((__v4hi)__m, __count);
warning                                                    ^~~~~~~: 
implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int32_t res = lsb_next((uint64_t)map[i], (int)b);
                                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:238:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h :incompatible313 :type47 :'__attribute__((__vector_size__(1 * sizeof(long long)))) long long'  (vector of 1 'long long' value)warning
: implicit use of sequentially-consistent atomic may     return (__m64)__builtin_ia32_pslld((__v2si)__m, __count);incur
 stronger                                                    ^~~~~~~

      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:250:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllq(__m, __count);
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:256:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:262:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psraw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:274:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrad((__v2si)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:286:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:298:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrld((__v2si)__m, __count);       
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:310:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlq(__m, __count);    
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:316:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:322:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pand(__m1, __m2);
                               ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:328:33: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pandn(__m1, __m2);
                                ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:334:31: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_por(__m1, __m2);
                              ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:340:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pxor(__m1, __m2);
                               ^~~~
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:35:15: error: typedef redefinition with different types
      ('__attribute__((__vector_size__(4 * sizeof(float)))) float' (vector of 4 'float' values) vs 'unsigned __int128')
typedef float __m128 __attribute__((__vector_size__(16)));
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:64:16: note: expanded from macro '__m128'
#define __m128 __uint128_t
               ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse42.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:6: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
  ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:16: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
            ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:59:6: error: subscripted value is not an array, pointer, or vector
  __a[0] -= __b[0];
  ~~~^~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_object.c:72:
In file included from ./mach/memory_object_control_server.h:58:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/ipc_kobject.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/ipc/ipc_port.h:91:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/ipc/ipc_space.h:89:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/task.h:127:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:827:53: warning: implicit use of sequentially-consistent atomic may incur
      stronger memory barriers than necessary [-Watomic-implicit-seq-cst]
        return __sync_fetch_and_or(&thread->thread_tag, tag);
               ~~~~~~~~~~~~~~~~~~~                         ^
1 error generated.
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/syn.c:120:9: warning: implicit declaration of function 'vsnprintf' ismake[7]:  invalid
      *** [itab.o] Error 1in C99
 [-Wimplicit-function-declaration]
make[7]: *** Waiting for unfinished jobs....
  ret = vsnprintf((char*) u->asm_buf + u->asm_buf_fill, avail, fmt, ap);
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/syn.c:119:45: warning: implicit conversion loses integer precision:
      'unsigned long' to 'int' [-Wshorten-64-to-32]
  avail = u->asm_buf_size - u->asm_buf_fill - 1 /* nullchar */;
        ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:3:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:827:53: warning: implicit use of sequentially-consistent atomic may incur
      stronger memory barriers than necessary [-Watomic-implicit-seq-cst]
        return __sync_fetch_and_or(&thread->thread_tag, tag);
               ~~~~~~~~~~~~~~~~~~~                         ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:12:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/opemu.h:4:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:827:53: warning: In file included from implicit/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c :use1 :
ofIn file included from  /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.hsequentially-consistent: 5atomic:
 In file included from may/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h :incur8
:
      In file included from stronger/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h :memory10 :
barriersIn file included from  /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.hthan: 31necessary:
 [-Watomic-implicit-seq-cst]/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:
31:19: error: typedef redefinition with different        return __sync_fetch_and_or(&thread->thread_tag, tag); 
types
               ~~~~~~~~~~~~~~~~~~~                         ^      
('__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value) vs 'u_int64_t' (aka 'unsigned long long'))
typedef long long __m64 __attribute__((__vector_size__(8)));
                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:65:15: note: expanded from macro '__m64'
#define __m64 uint64_t
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/stdint.h:32:30: note: previous definition is here
typedef u_int64_t            uint64_t;   /* u_int64_t is defined in <machine/types.h> */
                             ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:31:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:226:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllw((__v4hi)__m, __count);
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:238:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_pslld((__v2si)__m, __count);
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:250:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllq(__m, __count);
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:256:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:262:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psraw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:274:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrad((__v2si)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:286:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:298:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrld((__v2si)__m, __count);       
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:310:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlq(__m, __count);    
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:316:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:322:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pand(__m1, __m2);
                               ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:328:33: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pandn(__m1, __m2);
                                ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:334:31: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_por(__m1, __m2);
                              ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:340:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pxor(__m1, __m2);
                               ^~~~
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:35:15: error: typedef redefinition with different types
      ('__attribute__((__vector_size__(4 * sizeof(float)))) float' (vector of 4 'float' values) vs 'unsigned __int128')
typedef float __m128 __attribute__((__vector_size__(16)));
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:64:16: note: expanded from macro '__m128'
#define __m128 __uint128_t
               ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/sse41.c:1:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:6: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
  ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:16: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
            ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:59:6: error: subscripted value is not an array, pointer, or vector
  __a[0] -= __b[0];
  ~~~^~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:13:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:31:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:31:19: error: typedef redefinition with different types
      ('__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value) vs 'u_int64_t' (aka 'unsigned long long'))
typedef long long __m64 __attribute__((__vector_size__(8)));
                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:65:15: note: expanded from macro '__m64'
#define __m64 uint64_t
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/stdint.h:32:30: note: previous definition is here
typedef u_int64_t            uint64_t;   /* u_int64_t is defined in <machine/types.h> */
                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/udis86.c:175:7: warning: 'sprintf' is deprecated [-Wdeprecated-declarations]
      sprintf(src_hex, "%02x", *src_ptr & 0xFF);
      ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/misc_protos.h:141:59: note: 'sprintf' has been explicitly marked deprecated here
extern integer_t sprintf(char *buf, const char *fmt, ...) __deprecated;
                                                          ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/libsa/types.h:102:37: note: expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
                                    ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:13:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/udis86.c::10205:
:In file included from 13/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:: 31:
warning/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h: :226implicit: 53conversion:  loses integererror : precision:
      passing'const size_t'  (aka 'const unsigned long')'uint64_t'  to(aka 'unsigned long long')  'unsigned int'to 
[-Wshorten-64-to-32]      parameter
 of incompatible type  return u->inp_ctr; 
'__attribute__((__vector_size__(1 * sizeof(long long)))) long long'   ~~~~~~ ~~~^~~~~~~(vector of 1 'long long' value)

    return (__m64)__builtin_ia32_psllw((__v4hi)__m, __count);
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:238:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_pslld((__v2si)__m, __count);
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:250:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllq(__m, __count);
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:256:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psllqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:262:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psraw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:274:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrad((__v2si)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:286:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlw((__v4hi)__m, __count);    
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:298:53: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrld((__v2si)__m, __count);       
                                                    ^~~~~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:310:40: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlq(__m, __count);    
                                       ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:316:41: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return (__m64)__builtin_ia32_psrlqi(__m, __count);    
                                        ^~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:322:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pand(__m1, __m2);
                               ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:328:33: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pandn(__m1, __m2);
                                ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:334:31: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_por(__m1, __m2);
                              ^~~~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/mmintrin.h:340:32: error: passing 'uint64_t' (aka 'unsigned long long') to
      parameter of incompatible type '__attribute__((__vector_size__(1 * sizeof(long long)))) long long' (vector of 1 'long long' value)
    return __builtin_ia32_pxor(__m1, __m2);
                               ^~~~
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:13:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:35:15: error: typedef redefinition with different types
      ('__attribute__((__vector_size__(4 * sizeof(float)))) float' (vector of 4 'float' values) vs 'unsigned __int128')
typedef float __m128 __attribute__((__vector_size__(16)));
              ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_platform.h:64:16: note: expanded from macro '__m128'
#define __m128 __uint128_t
               ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3.c:13:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/ssse3_priv.h:5:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus.h:8:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/SSEPlus/SSEPlus_base.h:10:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:6: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
  ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:46:16: error: subscripted value is not an array, pointer, or vector
  __a[0] += __b[0];
            ~~~^~
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/EXTERNAL_HEADERS/xmmintrin.h:59:6: error: subscripted value is not an array, pointer, or vector
  __a[0] -= __b[0];
  ~~~^~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_object.c:355:10: error: cannot assign to lvalue with const-qualified data member
      'wired_page_count'
        *object = vm_object_template;
        ~~~~~~~ ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_object.h:174:21: note: data member 'wired_page_count' declared const here
        const unsigned int      wired_page_count; /* number of wired pages
        ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
2 warnings generated.
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_object.c:2955:13: warning: result of comparison 'vm_object_size_t'
      (aka 'unsigned long long') > 18446744073709551615 is always false [-Wtautological-type-limit-compare]
                        if (size > (vm_size_t) -1) {
                            ~~~~ ^ ~~~~~~~~~~~~~~
19 warnings and 1 error generated.
make[7]: *** [vm_object.o] Error 1
2 warnings generated.
18 warnings generated.
2 warnings generated.
18 warnings and 20 errors generated.
make[7]: *** [sse3.o] Error 1
18 warnings and 20 errors generated.
18 warnings and 20 errors generated.
make[7]: *** [sse42.o] Error 1
make[7]: *** [ssse3.o] Error 1
18 warnings and 20 errors generated.
make[7]: *** [sse41.o] Error 1
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/decode.c:671:24: warning: implicit conversion loses integer precision:
      'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
    decode_mem_disp(u, offset, op);
    ~~~~~~~~~~~~~~~    ^~~~~~
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_purgeable.c:24:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:109:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/cpu_number.h:64:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/machine/cpu_number.h:34:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_number.h:73:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/i386/cpu_data.h:41:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/processor.h:81:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched.h:78:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:155:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_or(map, BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:156:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:163:9: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order);
               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:164:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(prev, n);
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:206:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_set(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:46:30: note: expanded from macro 'bit_set'
#define bit_set(x, b)                   ((x) |= BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:212:2: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        bit_clear(map[bitmap_index(n)], bitmap_bit(n));
        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:47:32: note: expanded from macro 'bit_clear'
#define bit_clear(x, b)                 ((x) &= ~BIT(b))
                                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:230:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        return bit_test(map[bitmap_index(n)], bitmap_bit(n));
                        ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/OPEMU/libudis86/decode.c:1260:13: warning: implicit conversion loses integer precision:
      'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h
:240:31:   return u->inp_ctr;warning
:   ~~~~~~ ~~~^~~~~~~
implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:8: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                     ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:250:18: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                if ((map[i] & ~mask[i]) == 0) {
                               ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:31: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:253:41: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (i << 6) + bit_first(map[i] & ~mask[i]);
                                                      ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:266:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint32_t)lsb_first(map[i]));
                                                            ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:280:23: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int res = __bit_next(map[i], bits(prev, 5, 0));
                             ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:289:37: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + bit_first(map[i]));
                                                  ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:304:35: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
        int32_t res = lsb_next((uint64_t)map[i], (int)b);
                                         ^
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/bits.h:313:47: warning: implicit use of sequentially-consistent atomic may incur stronger
      memory barriers than necessary [-Watomic-implicit-seq-cst]
                return (int)((i << 6) + (uint64_t)lsb_first(map[i]));
                                                            ^
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/vm/vm_purgeable.c:24:
In file included from /Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/sched_prim.h:74:
/Users/shaneee/Desktop/AMD-High-Sierra-XNU-master/osfmk/kern/thread.h:827:53: warning: implicit use of sequentially-consistent atomic may incur
      stronger memory barriers than necessary [-Watomic-implicit-seq-cst]
        return __sync_fetch_and_or(&thread->thread_tag, tag);
               ~~~~~~~~~~~~~~~~~~~                         ^
18 warnings generated.
2 warnings generated.
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_osfmk] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [build_all_bootstrap_RELEASE^X86_64^NONE] Error 2
make: *** [all] Error 2

 

  • Like 1

Yeah I saw that, what was done in the past was SSEPlus was put in the external header and we copied (and some fixes) the missing GCC files since apple partially uses it in it's clang compiler (well maps some stuff to clang). If Apple stuck to GCC we wouldn't have this... But anyway I don't know what has been changed in the SDK that these files do not work correctly now.

 

EDIT: I tried copying the missing files from the GCC source but I copied the latest files... may need to go back a few versions and test.

 

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 

SSEPlus worked in the previous builds as clang was closer to GCC then it is now, I guess.

make [1]: *** [build_all_bootstrap_RELEASE ^ X86_64 ^ NONE] Error 2

I think this is an indication that an incorrect xcode version is installed or a missing or a defective or incorrect SDK version for the respective xnu-source version to be created.
insert the appropriate sdk version into your xcode or install the appropriate xcode version.

 

Duran, I will download MacOSX10.12.sdk and insert this into my xcode 9.4.1 and pray that it works, does not want to download xcode 9.1 for half a day with 2Mbit/s 

 

Yeah, I found something to download here: https://github.com/phracker/MacOSX-SDKs/releases

 

  • Like 1

Can you please try a 10.12 build that you know works and drop in these files and try build again? :) 

 

opemu-test-20200410.zip

 

Also can someone share a 10.12 diff...

 

ALso try other SSEPlus as this is a diff version to the one in ANdy's first post

  • Thanks 1


Duran, I searched for this files from the older source of Andy like crazy, I hope now that we can go on. At home I have everything on my PC and should access it immediately, I'am building now

 

error.txt

success.txt

 

×
×
  • Create New...