Re: [INTERNALS-WIN] --enable-native-intrinsics issue

[email protected] (Kalle Sommer Nielsen) Fri, 28 Dec 2018 19:37:39 +0100
Newsgroups php.internals.win
Message-ID <CAJW__o0ErrYgcMF+0KjAPkNTq5uHDGBNwgeM-=N-6DTEchdLsQ@mail.gmail.com>
Hi Christoph

Den fre. 28. dec. 2018 kl. 19.05 skrev Christoph M. Becker <[email protected]>:
>
> Hi!
>
> I've just noticed the --enable-native-intrinsics configure option, and
> did the following on a machine which does not support AVX2:
>
>   configure --disable-all --enable-cli --enable-debug
> --enable-native-intrinsics=avx2
>
> The build succeeds (without particular warning), but running `php -v`
> crashes the program with:
>
>   Exception thrown at 0x00007FFC7ED8F70A (php7ts_debug.dll) in php.exe:
> 0xC000001D: Illegal Instruction.
>
> Wouldn't it be possible to somehow detect missing support for certain
> required SIMD extension sets, and bail out gracefully (including
> reporting the problem) if the executable can't run on the present machine?

This is detectable, but I don't think it is through JS (even with the
shell script objects), could you open a FR and assign it to me as I
got an idea to something I maybe can patch up in the weekend for this?

-- 
regards,

Kalle Sommer Nielsen
[email protected]