Bug 1214460

Summary: s390x crosscompiler does not seem functional, missing -lgcc, impeding upstream QEMU work (tcg tests)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Claudio Fontana <claudio.fontana>
Component: DevelopmentAssignee: Michael Matz <matz>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: claudio.fontana, msuchanek, santiago.zarate
Version: CurrentFlags: rguenther: needinfo? (claudio.fontana)
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://bugzilla.suse.com/show_bug.cgi?id=1215812
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1213210    
Attachments: QEMU configure script log showcasing the errors

Description Claudio Fontana 2023-08-22 09:28:53 UTC
Hello,

I am trying to run the QEMU gcc tests for s390x,

and these tests require a fully functional s390x crosscompiler in order to build the test code.

Unfortunately, after installing the packages:

zypper install cross-s390x-gcc13 cross-s390x-binutils cross-s390x-linux-glibc-devel

still the libgcc seems missing:

/usr/lib64/gcc/s390x-suse-linux/13/ld: cannot find -lgcc: No such file or directory

This blocks the current QEMU work to fix QEMU emulation errors on S390x.
Comment 1 Claudio Fontana 2023-08-22 09:51:15 UTC
Created attachment 868934 [details]
QEMU configure script log showcasing the errors
Comment 2 Richard Biener 2023-08-22 10:46:21 UTC
The s390x crosses are old-style, just providing freestanding compilation.  I've turned s390x, ppc64le and x86_64 targets to the full glibc variant in devel:gcc, let's see if that works without further changes.

You can try installing from devel:gcc after the build finished.  Can you report back whether the built packages work for you?
Comment 3 Richard Biener 2023-08-22 11:32:35 UTC
(In reply to Richard Biener from comment #2)
> The s390x crosses are old-style, just providing freestanding compilation. 
> I've turned s390x, ppc64le and x86_64 targets to the full glibc variant in
> devel:gcc, let's see if that works without further changes.
> 
> You can try installing from devel:gcc after the build finished.  Can you
> report back whether the built packages work for you?

I realized it also needs glibc to build the cross, I'm doing a SR to Base:System as well but that means packages only get built when both end up in Factory
unless you branch them to a local repository (or build them locally which is what I'm doing right now to verify things).
Comment 4 Richard Biener 2023-08-22 13:27:41 UTC
It's now staged together in https://build.opensuse.org/project/show/openSUSE:Factory:Staging:N - you can possibly pull the packages from there once built (but the stagings are not distributed so you have to go via the API)
Comment 5 OBSbugzilla Bot 2023-08-22 13:45:05 UTC
This is an autogenerated message for OBS integration:
This bug (1214460) was mentioned in
https://build.opensuse.org/request/show/1105268 Factory / glibc
https://build.opensuse.org/request/show/1105273 Factory / gcc13
Comment 6 OBSbugzilla Bot 2023-08-23 07:55:03 UTC
This is an autogenerated message for OBS integration:
This bug (1214460) was mentioned in
https://build.opensuse.org/request/show/1105412 Factory / gcc13
Comment 7 OBSbugzilla Bot 2023-08-29 11:45:05 UTC
This is an autogenerated message for OBS integration:
This bug (1214460) was mentioned in
https://build.opensuse.org/request/show/1107917 Factory / gcc13
Comment 8 Richard Biener 2023-08-30 08:38:27 UTC
Checked into factory, thus fixed.
Comment 9 Claudio Fontana 2023-08-30 11:20:32 UTC
(In reply to Richard Biener from comment #8)
> Checked into factory, thus fixed.

Thanks, will test as soon as possible,

Claudio
Comment 11 Michal Suchanek 2023-09-28 12:56:41 UTC
Looks like this causes bug 1215812
Comment 14 Maintenance Automation 2023-10-23 16:30:01 UTC
SUSE-SU-2023:4162-1: An update that solves one vulnerability, contains five features and has seven security fixes can now be installed.

Category: security (important)
Bug References: 1206480, 1206684, 1210557, 1211427, 1212101, 1213915, 1214052, 1214460
CVE References: CVE-2023-4039
Jira References: PED-153, PED-2005, PED-252, PED-253, PED-6584
Sources used:
openSUSE Leap Micro 5.3 (src): gcc13-13.2.1+git7813-150000.1.3.3
openSUSE Leap Micro 5.4 (src): gcc13-13.2.1+git7813-150000.1.3.3
openSUSE Leap 15.4 (src): gcc13-13.2.1+git7813-150000.1.3.3, cross-nvptx-gcc13-13.2.1+git7813-150000.1.3.2
openSUSE Leap 15.5 (src): gcc13-13.2.1+git7813-150000.1.3.3, cross-nvptx-gcc13-13.2.1+git7813-150000.1.3.2
SUSE Linux Enterprise Server 15 SP2 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Server 15 SP3 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise High Performance Computing 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Server 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Manager Server 4.3 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Desktop 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Manager Retail Branch Server 4.3 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Manager Proxy 4.3 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise High Performance Computing 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Server 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Server for SAP Applications 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Desktop 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro for Rancher 5.3 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro 5.3 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro for Rancher 5.4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro 5.4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro 5.5 (src): gcc13-13.2.1+git7813-150000.1.3.3
Basesystem Module 15-SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3
Basesystem Module 15-SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3
Development Tools Module 15-SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3, cross-nvptx-gcc13-13.2.1+git7813-150000.1.3.2
Development Tools Module 15-SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3, cross-nvptx-gcc13-13.2.1+git7813-150000.1.3.2
SUSE Package Hub 15 15-SP4 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Package Hub 15 15-SP5 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Manager Proxy 4.2 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Manager Retail Branch Server 4.2 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Manager Server 4.2 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro 5.1 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro 5.2 (src): gcc13-13.2.1+git7813-150000.1.3.3
SUSE Linux Enterprise Micro for Rancher 5.2 (src): gcc13-13.2.1+git7813-150000.1.3.3

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 15 Maintenance Automation 2023-10-31 12:30:54 UTC
SUSE-SU-2023:4287-1: An update that solves one vulnerability, contains five features and has seven security fixes can now be installed.

Category: security (important)
Bug References: 1206480, 1206684, 1210557, 1211427, 1212101, 1213915, 1214052, 1214460
CVE References: CVE-2023-4039
Jira References: PED-153, PED-2005, PED-252, PED-253, PED-6584
Sources used:
Toolchain Module 12 (src): gcc13-13.2.1+git7813-1.6.1, cross-nvptx-gcc13-13.2.1+git7813-1.6.1
SUSE Linux Enterprise High Performance Computing 12 SP5 (src): gcc13-13.2.1+git7813-1.6.1
SUSE Linux Enterprise Server 12 SP5 (src): gcc13-13.2.1+git7813-1.6.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): gcc13-13.2.1+git7813-1.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 16 Maintenance Automation 2023-11-02 12:30:03 UTC
SUSE-SU-2023:4287-2: An update that solves one vulnerability, contains five features and has seven security fixes can now be installed.

Category: security (important)
Bug References: 1206480, 1206684, 1210557, 1211427, 1212101, 1213915, 1214052, 1214460
CVE References: CVE-2023-4039
Jira References: PED-153, PED-2005, PED-252, PED-253, PED-6584
Sources used:
Toolchain Module 12 (src): cross-nvptx-gcc13-13.2.1+git7813-1.6.1, gcc13-13.2.1+git7813-1.6.1
SUSE Linux Enterprise High Performance Computing 12 SP5 (src): gcc13-13.2.1+git7813-1.6.1
SUSE Linux Enterprise Server 12 SP5 (src): gcc13-13.2.1+git7813-1.6.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): gcc13-13.2.1+git7813-1.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 18 Maintenance Automation 2023-11-16 16:30:13 UTC
SUSE-SU-2023:4458-1: An update that solves one vulnerability, contains five features and has nine security fixes can now be installed.

Category: security (important)
Bug References: 1206480, 1206684, 1210557, 1211427, 1212101, 1213915, 1214052, 1214460, 1215427, 1216664
CVE References: CVE-2023-4039
Jira References: PED-153, PED-2005, PED-252, PED-253, PED-6584
Sources used:
openSUSE Leap Micro 5.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
openSUSE Leap Micro 5.4 (src): gcc13-13.2.1+git7813-150000.1.6.1
openSUSE Leap 15.4 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
openSUSE Leap 15.5 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP1 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP2 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise High Performance Computing 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Manager Server 4.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Desktop 15 SP4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Manager Retail Branch Server 4.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Manager Proxy 4.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise High Performance Computing 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server for SAP Applications 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Desktop 15 SP5 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.5 (src): gcc13-13.2.1+git7813-150000.1.6.1
Basesystem Module 15-SP4 (src): gcc13-13.2.1+git7813-150000.1.6.1
Basesystem Module 15-SP5 (src): gcc13-13.2.1+git7813-150000.1.6.1
Development Tools Module 15-SP4 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
Development Tools Module 15-SP5 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Package Hub 15 15-SP4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Package Hub 15 15-SP5 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Enterprise Storage 7.1 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE CaaS Platform 4.0 (src): cross-nvptx-gcc13-13.2.1+git7813-150000.1.6.1, gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.1 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.2 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): gcc13-13.2.1+git7813-150000.1.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 19 Maintenance Automation 2023-11-20 12:30:03 UTC
SUSE-SU-2023:4480-1: An update that solves one vulnerability, contains five features and has nine security fixes can now be installed.

Category: security (important)
Bug References: 1206480, 1206684, 1210557, 1211427, 1212101, 1213915, 1214052, 1214460, 1215427, 1216664
CVE References: CVE-2023-4039
Jira References: PED-153, PED-2005, PED-252, PED-253, PED-6584
Sources used:
Toolchain Module 12 (src): gcc13-13.2.1+git7813-1.10.1, cross-nvptx-gcc13-13.2.1+git7813-1.10.1
SUSE Linux Enterprise High Performance Computing 12 SP5 (src): gcc13-13.2.1+git7813-1.10.1
SUSE Linux Enterprise Server 12 SP5 (src): gcc13-13.2.1+git7813-1.10.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): gcc13-13.2.1+git7813-1.10.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 21 Maintenance Automation 2024-01-08 20:30:24 UTC
SUSE-SU-2024:0045-1: An update that solves one vulnerability, contains five features and has nine security fixes can now be installed.

Category: security (important)
Bug References: 1206480, 1206684, 1210557, 1211427, 1212101, 1213915, 1214052, 1214460, 1215427, 1216664
CVE References: CVE-2023-4039
Jira References: PED-153, PED-2005, PED-252, PED-253, PED-6584
Sources used:
SUSE Linux Enterprise Micro for Rancher 5.4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.4 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.5 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): gcc13-13.2.1+git7813-150000.1.6.1
SUSE Linux Enterprise Micro 5.3 (src): gcc13-13.2.1+git7813-150000.1.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.