[hatari-devel] macOS build on x86_64 broken?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hello,

I’m building my own versions of Hatari locally (since I want a version without portmidi) on an Intel iMac running macOS 13.6.3 with Xcode 15.1 using the following sequence of commands in the terminal:

% cd Source/hatari

% git pull

% cd build

% cmake ...

Libraries summary :

-------------------


  - sdl : using SDL2 2.28.5

  - readline : found, enables history/completion in the debugger

  - zlib : found, allows to use zip/gz files directly

  - png : found, allows to compress screenshot/avi files using png

  - portmidi : not found, install it for MIDI support on Windows / OSX

  - capsimage : v5 not found, install it to use .IPF, .RAW and .CTR disk images

  - python Gtk: not found, install it to enable the python-ui

  - capstone : found, allows nice disassembly with --disasm ext

  - LFS : Large File Support is available (size of off_t = 8),

         AVI recording and HD image files can be bigger than 2 GB


-- Configuring done (10.5s)

-- Generating done (0.2s)

-- Build files have been written to: /Users/frank/Source/hatari/build

% cmake --build ..

(the source repo was originally cloned with % git clone https://github.com/hatari/hatari.git and the required libraries have been installed via homebrew (% brew install sdl2 libpng make tidy-html5 imagemagick capstone))

Until recently (around December 15) this worked without issues, but now the build fails with the following errors:

[ 26%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/memory.c.o

In file included from /Users/frank/Source/hatari/src/cpu/memory.c:15:

In file included from /usr/local/Cellar/sdl2/2.28.5/include/SDL2/SDL.h:38:

In file included from /usr/local/Cellar/sdl2/2.28.5/include/SDL2/SDL_cpuinfo.h:111:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

#error "This header is only meant to be used on x86 and x64 architecture"

 ^

In file included from /Users/frank/Source/hatari/src/cpu/memory.c:15:

In file included from /usr/local/Cellar/sdl2/2.28.5/include/SDL2/SDL.h:38:

In file included from /usr/local/Cellar/sdl2/2.28.5/include/SDL2/SDL_cpuinfo.h:111:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/immintrin.h:17:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/x86gprintrin.h:15:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm

  __asm__ ("hreset $0" :: "a"(__eax));

                          ^

In file included from /Users/frank/Source/hatari/src/cpu/memory.c:15:

In file included from /usr/local/Cellar/sdl2/2.28.5/include/SDL2/SDL.h:38:

In file included from /usr/local/Cellar/sdl2/2.28.5/include/SDL2/SDL_cpuinfo.h:111:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/immintrin.h:21:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

#error "This header is only meant to be used on x86 and x64 architecture"

 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:54:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:133:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:163:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:193:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:220:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:243:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:264:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:291:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:314:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:335:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:356:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:377:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:398:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:420:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:443:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2);

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

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:465:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

    return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2);

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

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

gmake[2]: *** [src/cpu/CMakeFiles/UaeCpu.dir/build.make:606: src/cpu/CMakeFiles/UaeCpu.dir/memory.c.o] Error 1

gmake[1]: *** [CMakeFiles/Makefile2:742: src/cpu/CMakeFiles/UaeCpu.dir/all] Error 2

gmake: *** [Makefile:146: all] Error 2


Does anybody have an idea what is causing this and how to fix it (since building worked until December 15 I’m guessing it has something to do with  one of the commits to the git repo since then, but I don’t heve enough knowledge to figure out which one)?

Regards,
Frank



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/