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: Frank Danapfel <frank.danapfel@xxxxxxxxxxxxxx>
- Date: Sat, 6 Jan 2024 11:37:31 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1704537462; x=1705142262; darn=lists.tuxfamily.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=oOi8Kz2DmC3yAbHl/1xrGvzFkeyxZ77s0g4mUjTO28M=; b=Hui7iyGwXbCN69CRcn+0FpGRHK6Izovodf+3BgFAGf2H1JSH0Tfs+xfiFLipgnXONq XcsPJLKHx9OaxtJxLKKEJMinbllygtQ5Ote4Fylcr19O9yfOkDl+5nCAZgFEqBxEUQkt eEVZNaUxk2sf1zzjrBFgUZajzya2zq5ak1C8XICkJflGki8e7mLxAFRx+DKGUp1Fx3gw kju8fuEAwHoGh0aiCz0GYpHEcpFumogykxwNYlPRu3o3ANSnas8ZzGMiUIK60twQei7v LFlnbZgJ/t25iG+ilvIL1DBViexs9/u41vZ6K9nVrwu2bEml0XMr/2+R94d6BVKxtokQ J3xw==
Hi Thomas,
thanks a lot for the quick response!
> On 6. Jan 2024, at 11:14, Thomas Huth <th.huth@xxxxxxxxx> wrote:
>
> 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.
Yepp, adding -DCMAKE_OSX_ARCHITECTURES:STRING="x86_64" fixed the error and Hatari now builds again.
Thanks for your help!
Regards,
Frank