Bug 2124748

Summary: gnucobol not creating executables.
Product: [Fedora] Fedora Reporter: Wade Mealing <wmealing>
Component: gnucobolAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: gwync, wmealing
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnucobol-3.1.2-8.fc37 gnucobol-3.1.2-8.fc36 gnucobol-3.1.2-8.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 00:20:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wade Mealing 2022-09-07 03:12:11 UTC
Description of problem:

$ cobc -xF test.cob 
/usr/bin/ld: cannot open linker script file /builddir/build/BUILD/gnucobol-3.1.2/.package_note-gnucobol-3.1.2-6.fc36.x86_64.ld: No such file or directory
collect2: error: ld returned 1 exit status



Version-Release number of selected component (if applicable):

Name        : gnucobol
Version     : 3.1.2
Release     : 6.fc36
Architecture: x86_64



How reproducible:

Every time.

Steps to Reproduce:
1. Make a test cobol file
2. Try to build with -xF
3. Wait

Actual results:

$ cobc -xF test.cob 
/usr/bin/ld: cannot open linker script file /builddir/build/BUILD/gnucobol-3.1.2/.package_note-gnucobol-3.1.2-6.fc36.x86_64.ld: No such file or directory
collect2: error: ld returned 1 exit status

Expected results:

test binary to be created.

Additional info:

libcob installed.

$ rpm -ql libcob
/usr/lib/.build-id
/usr/lib/.build-id/df
/usr/lib/.build-id/df/1a5b91934b419f01aa24afb1b6d4a0db9e943c
/usr/lib64/gnucobol/CBL_OC_DUMP.so
/usr/lib64/libcob.so.4
/usr/lib64/libcob.so.4.1.0
/usr/share/licenses/libcob
/usr/share/licenses/libcob/COPYING.LESSER

ld finds it.

$ sudo ldconfig -v |grep libcob
	libcob.so.4 -> libcob.so.4.1.0

Similar problem reported here:
https://forums.fedoraforum.org/showthread.php?328481-gnucobol-installation-fedora-36&p=1859204

I'll dump any more investigation / solutions here as I find them.

Comment 1 Wade Mealing 2022-09-07 07:41:02 UTC
The original version included your fix (i imagine, for this issue).

$ rpm -qi --changelog gnucobol | less
 
* Mon Jul 18 2022 Gwyn Ciesla <gwync> - 3.1.2-6
- Rebuild to fix linker issue.

If this is the linker issue, i dont think its fixed.

However, when I rebuild it locally , it works.

$ dnf download --source gnucobol

$ sudo dnf builddep gnucobol &> /dev/null

$ rpmbuild -bb ~/rpmbuild/SPECS/gnucobol.spec

# sudo rpm -i /home/wmealing/rpmbuild/RPMS/x86_64/libcob-3.1.2-6.fc36.x86_64.rpm /home/wmealing/rpmbuild/RPMS/x86_64/gnucobol-3.1.2-6.fc36.x86_64.rpm


$ rpm -qi gnucobol
Name        : gnucobol
Version     : 3.1.2
Release     : 6.fc36
Architecture: x86_64
Install Date: Wed 07 Sep 2022 05:28:41 PM AEST
Group       : Unspecified
Size        : 2800459
License     : GPLv3+ and LGPLv3+ and GFDL
Signature   : (none)
Source RPM  : gnucobol-3.1.2-6.fc36.src.rpm
Build Date  : Wed 07 Sep 2022 05:27:53 PM AEST
Build Host  : wmealing-laptop


$ cobc -xF test.cob 
$ ./test
HI

Comment 2 Gwyn Ciesla 2022-09-07 15:39:04 UTC
Ah, I finally figured out the root cause. Update coming.

Comment 3 Wade Mealing 2022-09-07 15:40:37 UTC
Nice, I just  checked in on this, thought it might be related to https://www.spinics.net/lists/fedora-devel/msg296646.html

Thanks for the quick response.

Comment 4 Gwyn Ciesla 2022-09-07 15:52:56 UTC
Exactly that. :)

Comment 5 Fedora Update System 2022-09-07 16:00:06 UTC
FEDORA-2022-3a2ba075a3 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3a2ba075a3

Comment 6 Fedora Update System 2022-09-07 16:00:07 UTC
FEDORA-2022-c73cbe32c8 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c73cbe32c8

Comment 7 Fedora Update System 2022-09-07 16:00:08 UTC
FEDORA-2022-eb9191009b has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-eb9191009b

Comment 8 Wade Mealing 2022-09-08 04:15:06 UTC
Confirmed that the Fedora36 version is fixed via https://koji.fedoraproject.org/koji/buildinfo?buildID=2059678

No action required on your end Gwyn.

Comment 9 Fedora Update System 2022-09-08 09:33:02 UTC
FEDORA-2022-c73cbe32c8 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-c73cbe32c8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c73cbe32c8

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

Comment 10 Fedora Update System 2022-09-08 11:25:42 UTC
FEDORA-2022-3a2ba075a3 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-3a2ba075a3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-3a2ba075a3

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

Comment 11 Fedora Update System 2022-09-08 12:09:12 UTC
FEDORA-2022-eb9191009b has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-eb9191009b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-eb9191009b

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

Comment 12 Fedora Update System 2022-09-14 00:20:50 UTC
FEDORA-2022-c73cbe32c8 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2022-09-16 01:39:59 UTC
FEDORA-2022-eb9191009b has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2022-09-16 01:46:27 UTC
FEDORA-2022-3a2ba075a3 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.