Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904339 - sys-devel/gcc: ICE when building sci-mathematics/form-4.3.0-r1 (canonical types differ for identical types ‘UBYTE [7]’ {aka ‘unsigned char [7]’} and ‘unsigned char [7]’)
Summary: sys-devel/gcc: ICE when building sci-mathematics/form-4.3.0-r1 (canonical typ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 905313 (view as bug list)
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-04-14 19:46 UTC by Toralf Förster
Modified: 2023-04-30 00:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.81 KB, text/plain)
2023-04-14 19:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,180.59 KB, text/plain)
2023-04-14 19:46 UTC, Toralf Förster
Details
environment (environment,81.46 KB, text/plain)
2023-04-14 19:46 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,909 bytes, application/x-bzip)
2023-04-14 19:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.78 KB, application/x-bzip)
2023-04-14 19:46 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.82 KB, application/x-bzip)
2023-04-14 19:46 UTC, Toralf Förster
Details
sci-mathematics:form-4.3.0-r1:20230414-193854.log (sci-mathematics:form-4.3.0-r1:20230414-193854.log,19.58 KB, text/plain)
2023-04-14 19:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.11 KB, application/x-bzip)
2023-04-14 19:46 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-04-14 19:46:38 UTC
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sci-mathematics/form-4.3.0-r1/work/form-4.3.0/sources'
make[1]: *** [Makefile:406: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sci-mathematics/form-4.3.0-r1/work/form-4.3.0'
make: *** [Makefile:347: all] Error 2
 * ERROR: sci-mathematics/form-4.3.0-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-mathematics/form-4.3.0-r1::gentoo'`,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20230412-054012

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.1
Python 3.10.11
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
go version go1.20.3 linux/amd64

  HEAD of ::gentoo
commit 837ad87b9707e33a5fb0c0d234369b7f6496b973
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Apr 14 19:16:56 2023 +0000

    2023-04-14 19:16:56 UTC

emerge -qpvO sci-mathematics/form
[ebuild  N    ] sci-mathematics/form-4.3.0-r1  USE="zlib -devref -doc -doxygen -emacs -gmp -mpi -threads"
Comment 1 Toralf Förster gentoo-dev 2023-04-14 19:46:39 UTC
Created attachment 860103 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-04-14 19:46:40 UTC
Created attachment 860104 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-04-14 19:46:41 UTC
Created attachment 860105 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-04-14 19:46:42 UTC
Created attachment 860106 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-04-14 19:46:43 UTC
Created attachment 860107 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-04-14 19:46:44 UTC
Created attachment 860108 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-04-14 19:46:45 UTC
Created attachment 860109 [details]
sci-mathematics:form-4.3.0-r1:20230414-193854.log
Comment 8 Toralf Förster gentoo-dev 2023-04-14 19:46:46 UTC
Created attachment 860110 [details]
temp.tar.bz2
Comment 9 Andrey Grozin gentoo-dev 2023-04-15 06:24:46 UTC
Looks like a gcc bug. There are a number of 'canonical types differ for identical types' in https://gcc.gnu.org/bugzilla/
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-15 06:28:06 UTC
(In reply to Andrey Grozin from comment #9)
> Looks like a gcc bug. There are a number of 'canonical types differ for
> identical types' in https://gcc.gnu.org/bugzilla/

Please assign to toolchain (or CC us at least) if you suspect a GCC bug. Thanks, I'll look into it now.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-15 06:33:10 UTC
Can't reproduce it yet...
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-15 06:52:14 UTC
toralf, is this reproducible for you?
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-15 07:02:58 UTC
(In reply to Sam James from comment #12)
> toralf, is this reproducible for you?

Can you run:
arch=x86-64-v3; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=x86-64-v4); done

arch=znver3; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=x86-64-v4); done

arch=znver2; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=x86-64-v4); done
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-15 07:16:07 UTC
nevermind, I got it: [08:13:50]  <@sam_> it's a checking ICE plus I needed some of (not sure which yet): "-fno-stack-protector -fcf-protection=none -U_GLIBCXX_ASSERTIONS -U_FORTIFY_SOURCE"
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-29 19:26:44 UTC
*** Bug 905313 has been marked as a duplicate of this bug. ***
Comment 16 Larry the Git Cow gentoo-dev 2023-04-30 00:21:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32bf1dfde8a72f36a664ce986076509778202f93

commit 32bf1dfde8a72f36a664ce986076509778202f93
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-30 00:19:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-30 00:19:38 +0000

    sci-mathematics/form: workaround GCC -fchecking ICE w/ -Wno-uninitialized
    
    Reported upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109521 but let's
    apply a workaround for now to avoid dupes. It's "only" an error in diagnostics
    anyway.
    
    Closes: https://bugs.gentoo.org/904339
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-mathematics/form/form-4.3.0-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)