Bug 2401176

Summary: flang compiled binaries cannot find libflang_rt.runtime.so
Product: [Fedora] Fedora Reporter: Satish Balay <balay>
Component: flangAssignee: Tom Stellard <tstellar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: brad.king, fedora-llvm-team, kkleine, npopov, sergesanspaille, tstellar, tuliom
Target Milestone: ---Flags: tstellar: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: flang-21.1.4-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-01 01:42:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Satish Balay 2025-10-02 21:32:19 UTC
flang compiled binaries give run time error:

error while loading shared libraries: libflang_rt.runtime.so: cannot open shared object file: No such file or directory


Reproducible: Always

Steps to Reproduce:
balay@pj01:~/junk$ cat x.F90
program main
end
balay@pj01:~/junk$ flang x.F90
balay@pj01:~/junk$ ./a.out 

Actual Results:
./a.out: error while loading shared libraries: libflang_rt.runtime.so: cannot open shared object file: No such file or directory


Expected Results:
No such error

Additional Information:
balay@pj01:~/junk$ locate libflang_rt.runtime.so
/usr/lib/clang/21/lib/x86_64-redhat-linux-gnu/libflang_rt.runtime.so
balay@pj01:~/junk$ rpm -qf /usr/lib/clang/21/lib/x86_64-redhat-linux-gnu/libflang_rt.runtime.so
flang-runtime-21.1.2-1.fc43.x86_64
balay@pj01:~/junk$ ls /etc/ld.so.conf.d/
dyninst-x86_64.conf  llvm20-x86_64.conf
balay@pj01:~/junk$ 


Perhaps this location should be setup in /etc/ld.so.conf.d/ by flang-runtime-21.1.2-1.fc43.x86_64?

Comment 1 Fedora Update System 2025-10-30 21:24:31 UTC
FEDORA-2025-cc70faac04 (flang-21.1.4-1.fc43, libclc-21.1.4-1.fc43, and 2 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cc70faac04

Comment 2 Fedora Update System 2025-10-31 01:43:59 UTC
FEDORA-2025-cc70faac04 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cc70faac04`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cc70faac04

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

Comment 3 Fedora Update System 2025-11-01 01:42:12 UTC
FEDORA-2025-cc70faac04 (flang-21.1.4-1.fc43, libclc-21.1.4-1.fc43, and 2 more) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.