Public bug reported:

Example is failure to compile libjpeg-turbo v3.1.90 and v3.2.0, reported
here https://github.com/libjpeg-turbo/libjpeg-turbo/issues/908


This appears to be a gcc 13 related problem, probably due to this bug fixed 
upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109504


Test program:
#pragma GCC target("sse2")
#include <immintrin.h>

Try to compile with
gcc-mingw-w64-i686 test.c -o test

and it fails with lots of errors, but it works if you perform
gcc-mingw-w64-i686 test.c -o test -msse2

It is fixed in gcc 14 apparently, perhaps by this commit:
https://gcc.gnu.org/cgit/gcc/commit/?id=9a19fa8b616f83474c35cc5b34a3865073ced829

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: gcc-mingw-w64-i686 13.2.0-6ubuntu1+26.1
ProcVersionSignature: Ubuntu 7.0.0-28.28-generic 7.0.12
Uname: Linux 7.0.0-28-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Aug  4 15:10:44 2026
InstallationDate: Installed on 2018-05-28 (2990 days ago)
InstallationMedia: Ubuntu-MATE 18.04 LTS "Bionic Beaver" - Release amd64 
(20180426)
PackageArchitecture: all
SourcePackage: gcc-mingw-w64
UpgradeStatus: Upgraded to resolute on 2026-07-01 (34 days ago)

** Affects: gcc-mingw-w64 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2162826

Title:
  i686 version fails to compile sse2 code if enabled using pragma

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-mingw-w64/+bug/2162826/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to