Re: [hatari-devel] macOS build on x86_64 broken? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] macOS build on x86_64 broken?
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sat, 6 Jan 2024 10:14:46 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1704536087; bh=iQYBwjpiTYCYzflTXan7gJkJqsRXMqaGycw5KQex1z0=; h=Date:From:To:Subject:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=BCBlPk8l2VRQPXMjwN43VdY4uIEtZt6nNnz8nERiURZw3dd5l5d/NDawwbPFxAL4w g0AXqFOE5Twifz7bm34q7cOv3N+ymLE7kQWJv4ykQvGmdNQIWz57kq4S5aLWf03BLt cAG55s6pjfny1sWzcd9k80+k7+FOtfo5eVINI0CSbcxCrHGzIYg2wVip3StQhWAMrf TFhOEbSEZB3MTs8Gjm5rmD+J3AHinSZ6cCpF6Sa9udOfQeMjKfesIfekzUZDwt1dF0 LhqemPHglAu8Yjb9wVfgdQbWrkL5W1g3r0B3hixLBfpDQS3XAk1s0U1xi7jNMg0HSv wBdHkYRhJEMXw==
Am Sat, 6 Jan 2024 11:05:19 +0100
schrieb Frank Danapfel <frank.danapfel@xxxxxxxxxxxxxx>:
> 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 ..
…
> % 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"
Hi Frank,
this sounds like your SDL library can not deal with universal binaries?
Hatari now defaults to building universal binaries, so if your SDL is not
capable of that, you might want to try to switch it off again. Try:
cmake -DCMAKE_OSX_ARCHITECTURES:STRING="x86_64" ..
to configure your sources instead of running "cmake .." - I hope that will
fix the issue for you.
Thomas