[Bug rtl-optimization/101523] Huge number of combine attempts

2024-05-04 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523

--- Comment #62 from Sarah Julia Kriesch  ---
(In reply to Segher Boessenkool from comment #61)
> (In reply to Sarah Julia Kriesch from comment #60)
> > I have to agree with Richard. This problem has been serious for a long time
> > but has been ignored by IBM based on distribution choices.
> 
> What?  What does IBM have to do with this?  Yes, they are my employer, but
> what I decide is best for combine to do is not influenced by them *at all*
> (except some times they want me to spend time doing paid work, distracting
> me from things that really matter, like combine!)
> 
Then, tell other reasons why my requests in the openSUSE bug report have been
rejected in the past, and this bug report has been open for 3 years.
Perhaps it is helpful to know that IBM has fixed memory issues in PostgreSQL
(for openSUSE/upstream) with higher quality via my request with the support for
Red Hat (and faster).

> > Anyway, we want to live within the open source community without any Linux
> > distribution priorities (especially in upstream projects like here).
> 
> No idea what that means either.
> 
There is a reason for founding the Linux Distributions Working Group at the
Open Mainframe Project (equality for all Linux Distributions on s390x).
SUSE, Red Hat and Canonical have been supporting this idea also (especially
based on my own work experience at IBM and the priorities inside).

> > Segher, can you specify the failed test cases? Then, it should be possible
> > to reproduce and improve that all. In such a collaborative way, we can also
> > achieve a solution.
> 
> What failed test cases?  You completely lost me.
> 
This one:
(In reply to Segher Boessenkool from comment #57)
> (In reply to Richard Biener from comment #56)
> PR101523 is a very serious problem, way way way more "P1" than any of the
> "my target was inconvenienced by some bad testcases failing now" "P1"s there
> are now.  Please undo this!

(In reply to Segher Boessenkool from comment #61)
> We used to do the wrong thing in combine.  Now that my fix was reverted, we
> still do.  This should be undone soonish, so that I can commit an actual
> UNCSE
> implementation, which fixes all "regressions" (quotes, because they are not!)
> caused by my previous patch, and does a lot more too.  It also will allow us
> to remove a bunch of other code from combine, speeding up things a lot more
> (things that keep a copy of a set if the dest is used more than once).  There
> has been talk of doing an UNCSE for over twenty years now, so annoying me
> enough to get this done is a good result of this whole thing :-)
Your fixes should also work with upstream code and the used gcc versions in
our/all Linux distributions. I recommend applying tests and merging your fixes
to at least one gcc version.


If you want to watch something about our reasons for creating a collaboration
between Linux distributions (and upstream projects), you should watch my first
presentation "Collaboration instead of Competition":
https://av.tib.eu/media/57010

Hint: The IBM statement came from my former IBM Manager (now your CPO).

[Bug rtl-optimization/101523] Huge number of combine attempts

2024-04-10 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523

--- Comment #60 from Sarah Julia Kriesch  ---
I have to agree with Richard. This problem has been serious for a long time but
has been ignored by IBM based on distribution choices.

Anyway, we want to live within the open source community without any Linux
distribution priorities (especially in upstream projects like here).

Segher, can you specify the failed test cases? Then, it should be possible to
reproduce and improve that all. In such a collaborative way, we can also
achieve a solution.

[Bug target/101523] Huge number of combine attempts

2024-03-27 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523

--- Comment #49 from Sarah Julia Kriesch  ---
(In reply to Sam James from comment #44)
> I'm really curious as to if there's other test cases which could be shared,
> as Andreas mentioned distributions were complaining about this even. That's
> unlikely if it's a single degenerate case.
> 
> Even listing some example package names could help.

Sorry for the late response! I am a volunteer and went through all constraints
files from the last few years (I added to multiple packages). Most
memory-related issues have been already resolved.
But I found some easter eggs for you today:

1) nodejs21 with 11,5GB on s390x, 2,5GB on x86, 3,7GB on PPCle, 2,5GB on
aarch64 and 2,4GB on armv7:
https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs21

2) PDAL with 9,7GB on s390x, 2,2GB on x86 and 2,2GB on aarch64:
https://build.opensuse.org/package/show/openSUSE:Factory:zSystems/PDAL

3) python-numpy with 15,2GB on s390x, 8,6GB on PPCle, 9,3GB on x86,1,9 on
armv7, 9,3GB on aarch64:
https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy

I wish you a happy Eastern!

[Bug rtl-optimization/101523] Huge number of combine attempts

2024-03-05 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523

--- Comment #15 from Sarah Julia Kriesch  ---
(In reply to Segher Boessenkool from comment #13)
> (In reply to Sarah Julia Kriesch from comment #12)
> A bigger case of what?  What do you mean?
Not only one software package is affected by this bug. "Most" software builds
are affected. As Andreas mentioned correctly, the fix is also beneficial for
other projects/target software.

There are so many packages with customized memory settings for s390x at
openSUSE, and the Maintainers can only shake their head about this behaviour.
But let's progress step by step.

I have luck, that also IBM customers are raising questions regarding that now.

[Bug rtl-optimization/101523] Huge number of combine attempts

2024-03-04 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523

--- Comment #12 from Sarah Julia Kriesch  ---
Raise your hand if you need anything new from my side.
We have got enough use cases in our build system and upstream open source
projects gave warnings to remove the s390x support because of long building
time and the required resources.

I expect also, that this bug is a bigger case.

[Bug rtl-optimization/101523] Huge number of combine attempts

2024-03-02 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523

Sarah Julia Kriesch  changed:

   What|Removed |Added

 CC||sarah.kriesch at opensuse dot 
org

--- Comment #7 from Sarah Julia Kriesch  ---
That started more than some years ago.
I have initiated the debugging with this openSUSE bug report:
https://bugzilla.opensuse.org/show_bug.cgi?id=1188441

IBM Bugzilla:
https://bugzilla.linux.ibm.com/show_bug.cgi?id=193674

The problem with the memory has been already available before my time at IBM.
That is reproducible on most Linux distributions for IBM Z & LinuxONE.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-11 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #25 from Sarah Julia Kriesch  ---
The kernel bug fix in combination with higher constraints (12GB of memory) has
helped. It is strange, that we had this error message instead of an oom.
BUT that should be only a workaround.
12GB for s390x in comparison to 4GB for x86 for PostgreSQL?
I suggest a new bug report for the memory requirements of GCC. Where is the
power of the mainframe?

Thank you for the support! It should be possible to reproduce it again on
Fedora in the future. The problem was a dependency of the kernel and
cross-epiphany-gcc11-bootstrap.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-07 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #24 from Sarah Julia Kriesch  ---
There can be a dependency to this kernel bug:
https://bugzilla.suse.com/show_bug.cgi?id=1188896
We want to integrate the patch from your colleague and look, what will be
changed.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-07 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #23 from Sarah Julia Kriesch  ---

I had problems yesterday with uploading the dump.
(In reply to Andreas Krebbel from comment #22)
> I did run these commands on a z15 Lpar with Fedora33 installed.
Thank you for this hint!

One question to you as a compiler Expert:
Do you know any dependencies between gcc or other compilers and dependencies to
sub operating systems in virtualization?

SUSE people tried today the same with SLES 15 SP3 and it is not reproducible.
You tried it both with containerization and qemu (therefore, that can not be a
qemu issue, if both has been on s390x together with Fedora).
Additionally, you have been needing 12GB of memory for virtualization in
comparison to 4GB on openSUSE Tumbleweed. Anything is going wrong here with GCC
together with the sub operating system.

I have started a discussion about that (together with Fedora and Debian people)
on our factory mailing list:
https://lists.opensuse.org/archives/list/fact...@lists.opensuse.org/thread/4LJCHQ3YJ3TFEAN5S5DUE3ITCNPPC4MO/

If you are open to additional experiments in this direction for reproducing
based on Fedora (I can not run Fedora in the LinuxONE Community Cloud). Fedora
has released Fedora 35 in the last weeks. Have you got any possibilities to
upgrade and run these commands based on that?

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-06 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #21 from Sarah Julia Kriesch  ---
Did you use a mainframe as a local system?
I will rerun my build commands again and create dumps of the VM. You should
receive them today in the evening.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-06 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #19 from Sarah Julia Kriesch  ---
Expanding memory also did not help with 12GB.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-05 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #18 from Sarah Julia Kriesch  ---
(In reply to Andreas Krebbel from comment #17)
> (In reply to Sarah Julia Kriesch from comment #12)
> > that is happening during the build process in OBS with a really minimal
> > openSUSE Tumbleweed. We are using VMs using QEMU and with 4GB of memory.
> 
> Why only 4GB? Isn't this way too low for building things like rust with lto
> and everything?
> 
We are sharing the LinuxONE together with SUSE. Not only OBS is using it. It is
also used for automated tests with openQA. Therefore, the resources are kept
minimal for build processes. The highest amount of memory for openSUSE based
builds is 12GB. I had to argue at the beginning of my time for s390x, that we
can receive it. Rust is using 8GB split into two 4GB processes. That is given
by a constraints file. The OBS is choosing a free worker node matching the
requirements.
But also 8GB did not help for PostgreSQL14. We are receiving the same error
message. And about the topic "too slow": x86 is using the same at PostgreSQL14
and is much faster than s390x for most builds.

> I've successfully built rust1.54 and postgresql14 several times in an
> opensuse tumbleweed container. So I would suspect either the kernel or the
> guest setup you are using. Could it perhaps be that ld processes got oom
> killed and have left half-complete binaries which triggered the error then?
> 
I checked the container images. They are updated continuously. Therefore, that
should be reproducible with that (if you are using my list with packages incl.
LLVM13). The kernel version can not be the issue. We are receiving this error
since multiple kernel versions and only with s390x.
I have checked the infrastructure with a build in the LinuxONE Community Cloud.
I am receiving the same issue with following commands:

sudo zypper in osc build obs-service-format_spec_file bsdtar #also possible
with other Linux distributions
osc co openSUSE:Factory:zSystems/postgresql14
cd openSUSE\:Factory\:zSystems/postgresql14/
osc build --vm-type=kvm --vm-memory=4G

> In the current logs I don't see the ld issue anymore. Apparently you already 
> gave it more memory and the behavior changed due to that?
That was another issue between. The issue came back this weekend.
I tested it already with 8GB. I will test it also with 12GB in my mainframe VM
over night now. But I do not expect any change there.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-02 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #16 from Sarah Julia Kriesch  ---
Sorry! I thought I have created these links as a logged out user. Here are the
public links.

PostgreSQL14:
https://build.opensuse.org/public/build/openSUSE:Factory:zSystems/standard/s390x/postgresql14/_log

Rust1.54:
https://build.opensuse.org/public/build/openSUSE:Factory:zSystems/standard/s390x/rust1.54/_log

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-02 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #14 from Sarah Julia Kriesch  ---
We are exporting all the flags and start the build process with the following:
CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables'
[   34s] + export CFLAGS
[   34s] + CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables'
[   34s] + export CXXFLAGS
[   34s] + FFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables '
[   34s] + export FFLAGS
[   34s] + FCFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables '
[   34s] + export FCFLAGS
[   34s] + LDFLAGS='-flto=auto -ffat-lto-objects'
[   34s] + export LDFLAGS
[   34s] + ./configure --host=s390x-suse-linux-gnu --build=s390x-suse-linux-gnu
--program-prefix= --disable-dependency-tracking --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking
--bindir=/usr/lib/postgresql14/bin --libdir=/usr/lib/postgresql14/lib64
--includedir=/usr/include/pgsql --datadir=/usr/share/postgresql14
--docdir=/usr/share/doc/packages/postgresql14 --mandir=/usr/share/man
--disable-rpath --enable-nls --enable-thread-safety --enable-integer-datetimes
--with-python --with-perl --with-tcl --with-tclconfig=/usr/lib64 --with-pam
--with-uuid=e2fs --with-libxml --with-libxslt --with-systemd --with-selinux
--with-icu --with-llvm --with-openssl --with-ldap --with-gssapi --with-krb5
--with-system-tzdata=/usr/share/zoneinfo
[   34s] configure: WARNING: unrecognized options:
--disable-dependency-tracking, --disable-dependency-tracking, --with-krb5

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-02 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #13 from Sarah Julia Kriesch  ---
The following packages are preinstalled:
[   13s] [1/211] preinstalled aaa_base-84.87+git20211102.80d7177-1.1
[   13s] [2/211] preinstalled
aaa_base-malloccheck-84.87+git20211102.80d7177-1.1
[   13s] [3/211] preinstalled attr-2.5.1-1.3
[   13s] [4/211] preinstalled bash-5.1.8-2.1
[   13s] [5/211] preinstalled binutils-2.37-3.1
[   13s] [6/211] preinstalled brp-check-suse-84.87+git2026.6c5fe09-1.1
[   13s] [7/211] preinstalled build-compare-20210921T214418.86d06d9-1.1
[   13s] [8/211] preinstalled build-mkbaselibs-20211025-1.1
[   13s] [9/211] preinstalled bzip2-1.0.8-3.1
[   13s] [10/211] preinstalled chkstat-1550_20210901-29.1
[   13s] [11/211] preinstalled compat-usrmerge-build-84.87-5.1
[   13s] [12/211] preinstalled compat-usrmerge-tools-84.87-5.1
[   13s] [13/211] preinstalled coreutils-9.0-2.1
[   13s] [14/211] preinstalled cpio-2.13-4.1
[   13s] [15/211] preinstalled cpp-11-4.1
[   13s] [16/211] preinstalled cpp11-11.2.1+git610-1.1
[   13s] [17/211] cumulate crypto-policies-20210917.c9d86d1-1.1
[   13s] [18/211] preinstalled diffutils-3.8-2.1
[   13s] [19/211] preinstalled dwz-0.14-1.3
[   13s] [20/211] cumulate fdupes-2.1.2-1.41
[   13s] [21/211] preinstalled file-5.41-1.1
[   13s] [22/211] preinstalled file-magic-5.41-1.1
[   13s] [23/211] preinstalled filesystem-84.87-3.1
[   13s] [24/211] preinstalled fillup-1.42-276.4
[   13s] [25/211] preinstalled findutils-4.8.0-3.1
[   13s] [26/211] preinstalled gawk-5.1.1-2.1
[   13s] [27/211] preinstalled gcc-11-4.1
[   13s] [28/211] preinstalled gcc-PIE-11-4.1
[   13s] [29/211] preinstalled gcc11-11.2.1+git610-1.1
[   13s] [30/211] preinstalled gettext-runtime-mini-0.21-2.5
[   13s] [31/211] preinstalled gettext-tools-mini-0.21-2.5
[   13s] [32/211] preinstalled glibc-2.34-2.1
[   13s] [33/211] preinstalled glibc-devel-2.34-2.1
[   13s] [34/211] preinstalled glibc-locale-2.34-2.1
[   13s] [35/211] preinstalled glibc-locale-base-2.34-2.1
[   13s] [36/211] preinstalled grep-3.7-1.1
[   13s] [37/211] preinstalled gzip-1.11-1.1
[   13s] [38/211] preinstalled hostname-3.23-2.4
[   13s] [39/211] preinstalled iproute2-5.15-1.1
[   13s] [40/211] preinstalled kernel-obs-build-5.15.2-1.3
[   13s] [41/211] preinstalled libacl1-2.3.1-1.3
[   13s] [42/211] preinstalled libasan6-11.2.1+git610-1.1
[   13s] [43/211] preinstalled libatomic1-11.2.1+git610-1.1
[   13s] [44/211] preinstalled libattr1-2.5.1-1.3
[   13s] [45/211] preinstalled libaudit1-3.0.6-1.1
[   13s] [46/211] preinstalled libblkid1-2.36.2-3.1
[   13s] [47/211] preinstalled libbz2-1-1.0.8-3.1
[   13s] [48/211] preinstalled libcap-ng0-0.7.10-1.68
[   13s] [49/211] preinstalled libcap2-2.59-1.1
[   13s] [50/211] cumulate libcom_err2-1.46.4-3.1
[   13s] [51/211] preinstalled libcrypt1-4.4.25-1.1
[   13s] [52/211] preinstalled libctf-nobfd0-2.37-3.1
[   13s] [53/211] preinstalled libctf0-2.37-3.1
[   13s] [54/211] preinstalled libdb-4_8-4.8.30-38.148
[   13s] [55/211] preinstalled libdw1-0.186-1.1
[   13s] [56/211] preinstalled libeconf0-0.4.2+git2021.c7a2c52-1.1
[   13s] [57/211] cumulate libedit0-3.1.snap20180525-4.6
[   13s] [58/211] preinstalled libelf1-0.186-1.1
[   13s] [59/211] cumulate libexpat1-2.4.1-1.1
[   13s] [60/211] preinstalled libfdisk1-2.36.2-3.1
[   13s] [61/211] cumulate libffi8-3.3.git30-1.91
[   13s] [62/211] preinstalled libgcc_s1-11.2.1+git610-1.1
[   13s] [63/211] preinstalled libgcrypt20-1.9.4-1.1
[   13s] [64/211] preinstalled libgdbm6-1.20-1.1
[   13s] [65/211] preinstalled libgdbm_compat4-1.20-1.1
[   13s] [66/211] preinstalled libgmp10-6.2.1-4.1
[   13s] [67/211] preinstalled libgomp1-11.2.1+git610-1.1
[   13s] [68/211] preinstalled libgpg-error0-1.43-1.1
[   13s] [69/211] cumulate libicu69-bedata-69.1-2.2
[   13s] [70/211] preinstalled libisl23-0.24-1.3
[   13s] [71/211] preinstalled libitm1-11.2.1+git610-1.1
[   13s] [72/211] cumulate libkeyutils1-1.6.3-3.1
[   13s] [73/211] cumulate libltdl7-2.4.6-8.152
[   13s] [74/211] preinstalled liblua5_3-5-5.3.6-1.30
[   13s] [75/211] preinstalled liblua5_4-5-5.4.3-4.1
[   13s] [76/211] preinstalled liblzma5-5.2.5-2.1
[   13s] [77/211] preinstalled libmagic1-5.41-1.1
[   13s] [78/211] preinstalled libmnl0-1.0.4-2.6
[   13s] [79/211] preinstalled libmount1-2.36.2-3.1
[   13s] [80/211] preinstalled libmpc3-1.2.1-1.23
[   13s] [81/211] cumulate libmpdec3-2.5.1-2.1
[   13s] [82/211] preinstalled libmpfr6-4.1.0-2.3
[   13s] [83/211] preinstalled libncurses6-6.3.2025-4.1
[   13s] [84/211] preinstalled libpcre1-8.45-1.1
[   13s] [85/211] cumulate libpcre2-16-0-10.38-1.1
[   13s] [86/211] cumulate libpcre2-32-0-10.38-1.1
[   13s] [87/211] preinstalled libpcre2-8-0-10.38-1.1
[   13s] [88/211] cumulate libpcre2-posix3-10.38-1.1
[   13s] [89/211] preinstalled libpkgconf3-1.8.0-1.1
[   13s] [90/211] preinstalled libpopt0-1.18-2.28
[   13s] [91/211] preinstalled libreadline8-8.1-2.3
[   13s] [92/211] preinstalled librpmbuild9-4.17.0-2.1
[   

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-12-02 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #12 from Sarah Julia Kriesch  ---
Hi Andreas,

that is happening during the build process in OBS with a really minimal
openSUSE Tumbleweed. We are using VMs using QEMU and with 4GB of memory.

You can find the latest build of the kernel under:
http://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/s390x/

PostgreSQL is based on the postgresql-14.1.tar.bz2 from
https://ftp.postgresql.org/pub/source/v14.1/

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-23 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #10 from Sarah Julia Kriesch  ---
Hi Andreas, that is an s390x issue related to multiple packages and which is
stopping our releases. Can you give it a special priority, please?

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-23 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #9 from Sarah Julia Kriesch  ---
Yes. It works on x86. Only s390x is affected.
Therefore, I have added s390x into the title.

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-23 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #7 from Sarah Julia Kriesch  ---
Used LLVM: libLLVM13-13.0.0-2.1

[Bug middle-end/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-23 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #6 from Sarah Julia Kriesch  ---
(In reply to Sarah Julia Kriesch from comment #1)
> gcc version: 11-4.1
> operating system: openSUSE Tumbleweed (build process of PostgreSQL14 and
> Rust1.54)
> architecture: s390x

[Bug c/103364] s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-22 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

--- Comment #1 from Sarah Julia Kriesch  ---
gcc version: 11-4.1
operating system: openSUSE Tumbleweed (build process of PostgreSQL14 and
Rust1.54)
architecture: s390x

options at PostgreSQL:
 CFLAGS=-Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-Wno-format-truncation -Wno-stringop-truncation -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables
CPPFLAGS= -D_GNU_SOURCE -I/usr/include/libxml2 
LDFLAGS=-flto=auto -ffat-lto-objects -L/usr/lib64  -Wl,--as-needed
CXX=g++ 
CXXFLAGS=-Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute
-Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security
-fno-strict-aliasing -fwrapv -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables
CLANG=/usr/bin/clang
BITCODE_CFLAGS= -fno-strict-aliasing -fwrapv -O2 
BITCODE_CXXFLAGS= -fno-strict-aliasing -fwrapv -O2 

make -C backend/jit/llvm all
[  655s] make[2]: Entering directory
'/home/abuild/rpmbuild/BUILD/postgresql-14.1/src/backend/jit/llvm'
[  655s] gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-Wno-format-truncation -Wno-stringop-truncation -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables  -fPIC -D__STDC_LIMIT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -I/usr/include 
-I../../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o
llvmjit.o llvmjit.c
[  655s] g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute
-Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security
-fno-strict-aliasing -fwrapv -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -std=c++14 -fPIC
-D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
-D_GNU_SOURCE -I/usr/include  -I../../../../src/include  -D_GNU_SOURCE
-I/usr/include/libxml2   -c -o llvmjit_error.o llvmjit_error.cpp
[  656s] g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute
-Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security
-fno-strict-aliasing -fwrapv -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -std=c++14 -fPIC
-D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
-D_GNU_SOURCE -I/usr/include  -I../../../../src/include  -D_GNU_SOURCE
-I/usr/include/libxml2   -c -o llvmjit_inline.o llvmjit_inline.cpp
[  656s] g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute
-Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security
-fno-strict-aliasing -fwrapv -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -std=c++14 -fPIC
-D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
-D_GNU_SOURCE -I/usr/include  -I../../../../src/include  -D_GNU_SOURCE
-I/usr/include/libxml2   -c -o llvmjit_wrap.o llvmjit_wrap.cpp
[  659s] gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-Wno-format-truncation -Wno-stringop-truncation -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables  -fPIC -D__STDC_LIMIT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -I/usr/include 
-I../../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o
llvmjit_deform.o llvmjit_deform.c
[  660s] gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-Wno-format-truncation -Wno-stringop-truncation -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables  -fPIC -D__STDC_LIMIT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -I/usr/include 
-I../../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o
llvmjit_expr.o llvmjit_expr.c
[  662s] /usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv
-O2  -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
-D_GNU_SOURCE -I/usr/include  -I../../../../src/include  -D_GNU_SOURCE
-I/usr/include/libxml2  -flto=thin 

[Bug c/103364] New: s390x: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS reference in /usr/lib64/libLLVM.so

2021-11-22 Thread sarah.kriesch at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103364

Bug ID: 103364
   Summary: s390x: TLS reference in /usr/lib64/libLLVM.so
mismatches non-TLS reference in /usr/lib64/libLLVM.so
   Product: gcc
   Version: og11 (devel/omp/gcc-11)
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: sarah.kriesch at opensuse dot org
  Target Milestone: ---

We are building applications with gcc and LLVM at openSUSE and receiving these
problems with multiple packages, as PostgreSQL14 and Rust1.54:

Postgresql:
/usr/lib64/gcc/s390x-suse-linux/11/../../../../s390x-suse-linux/bin/ld:
@GLIBCXX_3.4.11: TLS reference in /usr/lib64/libLLVM.so mismatches non-TLS
reference in /usr/lib64/libLLVM.so
 /usr/lib64/gcc/s390x-suse-linux/11/../../../../s390x-suse-linux/bin/ld:
/usr/lib64/libLLVM.so: error adding symbols: bad value
 collect2: error: ld returned 1 exit status
make[2]: *** [../../../../src/Makefile.shlib:309: llvmjit.so] Error 1

Rust during the compilation of the rustc driver:
 Compiling rustc_driver v0.0.0
(/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/compiler/rustc_driver)
[15144s] error: linking with `cc` failed: exit status: 1
[15144s]   |
[15144s]   = note: "cc" "-Wl,--version-script=/tmp/rustcma3zqW/list"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.0.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.1.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.10.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.11.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.12.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.13.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.14.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.15.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.2.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.3.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.4.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.5.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.6.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.7.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.8.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.rustc_driver.crh42kxm-cgu.9.rcgu.o"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps/rustc_driver-d0ee8343640437f6.4pgekasbeabawr2j.rcgu.o"
"-Wl,--as-needed" "-L"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/s390x-unknown-linux-gnu/release/deps"
"-L"
"/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/build/s390x-unknown-linux-gnu/stage1-rustc/release/deps"
"-L"