Bug 2162910 - gcl: FTBFS on s390x with gcc 13
Summary: gcl: FTBFS on s390x with gcc 13
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcl
Version: 38
Hardware: s390x
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-21 23:32 UTC by Jerry James
Modified: 2024-05-08 03:30 UTC (History)
2 users (show)

Fixed In Version: gcl-2.6.14-7.fc40
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-05-08 03:30:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2023-01-21 23:32:51 UTC
Description of problem:
When GCC was introduced to Fedora, gcl stopped building successfully on s390x.  The attempt to dump to raw_pre_gcl failed.  GDB work showed nonsensical results.  We were attempting to read a Lisp file, and the variable c, which should have been the value of reading a character from the file, somehow held a character table instead.  Turning the optimization level down to -O1 got past this stage, but then failed later like this:

Loading binary of GCL_PCL_PKG...
;; Loading #p"/builddir/build/BUILD/gcl-2.6.14/unixport/../pcl/gcl_pcl_pkg.o"
mprotect failure: 0xbdb000 4096 : Permission denied

Error: ERROR "The assertion !clear_protect_memory(memory) on line 615 of sfaslelf.c in function fasload failed: Invalid argument"
Fast links are on: do (si::use-fast-links nil) for debugging
ERROR "The assertion !clear_protect_memory(memory) on line 615 of sfaslelf.c in function fasload failed: Invalid argument"

Broken at LOAD.  Type :H for Help.
    1  Return to top level. 
>>Signalled by LOAD.
make[1]: *** [makefile:35: gcl_pcl_boot.c] Error 255
make[1]: Leaving directory '/builddir/build/BUILD/gcl-2.6.14/pcl'
rm h/mcompdefs.h
make: *** [makefile:90: unixport/saved_pcl_gcl] Error 2

Clearly something is still being miscompiled on s390x, even at optimization level 1.  Whether the fault lies with GCC or with the gcl code remains to be determined.

Version-Release number of selected component (if applicable):
gcl-2.6.13-2.fc38.s390x
gcc-13.0.1-0.1.fc38.s390x

How reproducible:
Always

Steps to Reproduce:
1. Do a Rawhide build of gcl on s390x
2.
3.

Actual results:
The build fails.

Expected results:
Good build, as with gcc 12.

Additional info:

Comment 1 Ben Cotton 2023-02-07 15:06:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Fedora Update System 2024-04-29 18:18:54 UTC
FEDORA-2024-4e2386236d (gcl-2.6.14-7.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4e2386236d

Comment 3 Fedora Update System 2024-04-30 02:07:04 UTC
FEDORA-2024-4e2386236d has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-4e2386236d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4e2386236d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Aoife Moloney 2024-05-07 15:55:41 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Fedora Update System 2024-05-08 03:30:50 UTC
FEDORA-2024-4e2386236d (gcl-2.6.14-7.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.