Your message dated Sat, 20 Jan 2024 16:47:18 +0000
with message-id <e1rrev4-00eet3...@fasolo.debian.org>
and subject line Bug#1038603: fixed in isl 0.25-1.1
has caused the Debian Bug report #1038603,
regarding libisl23: amd64/i386 baseline violation: uses BMI instructions
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1038603: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038603
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-12
Version: 12.3.0-4
Severity: important

Dear Maintainer,

It seems that the Debian package of GCC 12 was compiled with BMI1 (and
BMI2) instructions (perhaps the wrong -march setting is being
used?). At least apparently (see below). Those are relatively new
instruction sets, and are not supported by older CPUs.

* What led up to the situation?

Compiling darktable from the git repository (I am a darktable
translator, so installing the pre-packaged version doesn't work for
me). I noticed another darktable submitted an issue to darktable:

https://github.com/darktable-org/darktable/issues/14701

and realized it was exactly the same error that occurred when I tried
to compile darktable on my machine.

* What exactly did you do (or not do) that was effective (or
  ineffective)?

Just cloned and tried to compile darktable:

git clone https://github.com/darktable-org/darktable.git
git submodule update
cd darktable
./build.sh --prefix /usr/local --build-type Release

* What was the outcome of this action?

Illegal instruction while compiling:

[ 20%] Building C object bin/CMakeFiles/lib_darktable.dir/common/iop_order.c.o
during GIMPLE pass: graphite
/home/magnus/camera2/test2/darktable-debian12/darktable/src/common/iop_order.c: 
In function ‘_insert_before.isra’:
/home/magnus/camera2/test2/darktable-debian12/darktable/src/common/iop_order.c:404:15:
 internal compiler error: Illegal instruction
  404 | static GList *_insert_before(GList *iop_order_list,
      |               ^~~~~~~~~~~~~~
0x7f1fc963ef8f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f1fc962a189 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f1fc962a244 __libc_start_main_impl
        ../csu/libc-start.c:381
Please submit a full bug report, with preprocessed source (by using 
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
make[2]: *** [bin/CMakeFiles/lib_darktable.dir/build.make:726: 
bin/CMakeFiles/lib_darktable.dir/common/iop_order.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2473: bin/CMakeFiles/lib_darktable.dir/all] 
Error 2
make: *** [Makefile:156: all] Error 2


* What outcome did you expect instead?

Full compilation without problems.

Some more info:

- Clang compiles darktable without problems
- Could not test gcc-11, because 12 is the minimum version that
  the darktable build script accepts
- The darktable issue has some more information on this, incuding
  some guided debugging (a darktable maintainer helped me and
  the issue submitter find the exact problem, which was BMI1 and
  BMI2 instructions being executed during compilation):
  https://github.com/darktable-org/darktable/issues/14701

For me the illegal instruction was blsr, and for the issue submitter,
it was shlx (see the issue).

My CPU is an AMD FX-8320E. The original issue submitter had an Intel
i7-3770K CPU.

The illegal instruction is in 'isl_hash_table_init'. Now, the strange
part is that

grep -r isl_hash_table_init *

inside gcc sources doesn't return anything. But as the original
darktable issue reporter mentioned, recompiling GCC manually seems to
fix the issue. For lack of better information, and since recompiling
gcc seems to have fixed the issue for one person, I am submitting this
bug to the gcc-12 package. Sorry if it's not the correct place.

Please tell me if there is anything else I can do to help.

Thank you!
Jeronimo

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-12 depends on:
ii  binutils       2.40.50.20230611-2
ii  cpp-12         12.3.0-4
ii  gcc-12-base    12.3.0-4
ii  libc6          2.36-9
ii  libcc1-0       13.1.0-6
ii  libgcc-12-dev  12.3.0-4
ii  libgcc-s1      13.1.0-6
ii  libgmp10       2:6.2.1+dfsg1-1.1
ii  libisl23       0.26-2
ii  libmpc3        1.3.1-1
ii  libmpfr6       4.2.0-1
ii  libstdc++6     13.1.0-6
ii  libzstd1       1.5.4+dfsg2-5
ii  zlib1g         1:1.2.13.dfsg-1

Versions of packages gcc-12 recommends:
ii  libc6-dev  2.36-9

Versions of packages gcc-12 suggests:
ii  gcc-12-doc       12.2.0-1
pn  gcc-12-locales   <none>
ii  gcc-12-multilib  12.3.0-4

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: isl
Source-Version: 0.25-1.1
Done: Aurelien Jarno <aure...@debian.org>

We believe that the bug you reported is fixed in the latest version of
isl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1038...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aure...@debian.org> (supplier of updated isl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 02 Jan 2024 10:58:13 +0000
Source: isl
Architecture: source
Version: 0.25-1.1
Distribution: bookworm
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org>
Changed-By: Aurelien Jarno <aure...@debian.org>
Closes: 1038603
Changes:
 isl (0.25-1.1) bookworm; urgency=medium
 .
   * Non-maintainer upload.
   * Configure --without-gcc-arch.  Closes: #1038603.
Checksums-Sha1:
 5e134f754dd94b148d9dbaa21ea2c33bb073f14f 1815 isl_0.25-1.1.dsc
 5107cb5e3fa38dc5bf59bcf1cc054e1512d85821 24376 isl_0.25-1.1.debian.tar.xz
 99785c37ecaf9dba3be823913b8d75045c089de6 6242 isl_0.25-1.1_source.buildinfo
Checksums-Sha256:
 9d09e7763532bdb21c490042e6b067011cc488feb6418ff9c7db1b1663e09e8b 1815 
isl_0.25-1.1.dsc
 ac13fdfecc8acb1ba11be2b03b4cbdbe2892a65f37df166bd61784893142b30d 24376 
isl_0.25-1.1.debian.tar.xz
 6be21d39f0d40eda1b3cade3990e60dfa7f4f2e038d972e5d4e2efe2271e0650 6242 
isl_0.25-1.1_source.buildinfo
Files:
 3c5fefee6569298f70ad58977cd6acf2 1815 libs optional isl_0.25-1.1.dsc
 47359d6bfd13366559c4b08f5ba4de3d 24376 libs optional isl_0.25-1.1.debian.tar.xz
 6ec188c1c813fa1663aa978dab2a7d8a 6242 libs optional 
isl_0.25-1.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmWT7NMACgkQE4jA+Jno
M2uYyA//Rw9mY3LghUL8UGmFgHdPGoHuUH8TTEk2oJyA/ij+lfGONRNyaPC+eI/X
cWDEJHmc/4+nJ0JyzBz9nGDQBXRbbjFQCFvaqrio7yRjsKdwO1Q4fi+cqrut+7L5
uKpugSUN8mmYgci7VD7dxywerlkkgJZ89pPggJxq9VTzseFBznbIjY5d74aDrTle
HQInlGxVWZNHWrnS4q8k0/5xjmvujGPd/4golmSLKSGdnGrrB4e//u/ITJa9EAwz
E7y+IFZGr7Kz1EngdBGK2w9GQfqTKGiOjA05cH4ahFXCIG32gy2yEEE9Zx4GP6gV
9+MpfBZnf1pfPjApzuOtLBKD/vNisM9Jjhzcj81Z6F33fWM+V6ZV/dZ82VRlyIBV
ZO2UvEaqGplAHjC0pISA8Nz/m2tSuhGGcMDljWR8mgB+Kox1XugKEAJWpLpmkF5R
2o/EufvmtM2KwA8OK70Zg1Bq2fZatJUrcFdvAjgPLWud/9TY7ahZPbIA8eTmvsFH
/g8ORX9rnenJj0eRE34nqEQc+WShHtWtXlJrBdsO0NiBtMbB7hB+3Dlz/IdwlpOr
k3tHyTGsFxENhE5D3AsvlL18lOBCV9b8aQLqRZ7kA0q10ruVEJEusCTcQXsTUATq
PpDf1zJ8LNHrcFXdqeUfAY1VHsKB6X37AHFWNnnVZ/TalocLR3g=
=U9nG
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to