https://bugs.kde.org/show_bug.cgi?id=458033

--- Comment #10 from Timo Gurr <timo.g...@gmail.com> ---
(In reply to amyspark from comment #9)
> (In reply to Timo Gurr from comment #8)
> > I haven't come across any issues with other packages and since we're a
> > source-based distribution and compile everything such fundamental issues
> > should become directly obvious.
> > 
> > Also our GCC version is pretty recent:
> 
> The RGBA interleavers code that's causing the error checks for 256-bit wide
> vectors (AVX) of 32-bit integers. Your version of GCC is reporting `unsigned
> int` to not be 32-bit in size. I do not know what your distribution is
> doing, but the code is not designed for that circumstance.
> 
> FTR, I compile the code with Clang 14.0.6, GCC 12.1 (MSYS flavours CLANG64
> and UCRT64), and MSVC 17.4 Preview 1. All of them work correctly.

After further investigation and finding the actual problem I'd say this is
clearly an issue on your side regarding the CMake magic you've implemented
doing the wrong thing since if I compile with -march=x86-64 krita builds just
fine with vectorization/xsimd enabled, but it fails when trying to build with
-march=native on the very same machine with nothing else changed. That
shouldn't be the case and I don't consider this an issue with our compiler.
Probably you should be able to reproduce this when trying to compile with
-march=native as well, not sure what the CMake magic does in regards to
different hardware/processor features though and if that may also play a role
here.

For reference, working:
CHOST="x86_64-pc-linux-gnu"
x86_64_pc_linux_gnu_CFLAGS="-march=x86-64 -O2 -pipe"
x86_64_pc_linux_gnu_CXXFLAGS="-march=x86-64 -O2 -pipe"

Failing:
CHOST="x86_64-pc-linux-gnu"
x86_64_pc_linux_gnu_CFLAGS="-march=native -O2 -pipe"
x86_64_pc_linux_gnu_CXXFLAGS="-march=native -O2 -pipe"

/proc/cpuinfo of CPUs tested on:

vendor_id       : GenuineIntel
cpu family      : 6
model           : 94
model name      : Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
stepping        : 3
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb
rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est
tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt
tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch
cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi
flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms
invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves
dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear
flush_l1d arch_capabilities

vendor_id       : GenuineIntel
cpu family      : 6
model           : 85
model name      : Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz
stepping        : 4
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm
constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid
tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe
popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm
3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp fsgsbase
tsc_adjust bmi1 avx2 smep bmi2 invpcid avx512f avx512dq rdseed adx smap
clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xsaves arat pku
ospke md_clear flush_l1d arch_capabilities

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to