Bug 2278816

Summary: Score-P v8.4-1 is missing libunwind-devel as a dependency
Product: [Fedora] Fedora Reporter: Jan André Reuter <j.reuter>
Component: scorepAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 40CC: dave.love, j.reuter, orion
Target Milestone: ---Keywords: EasyFix, Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: scorep-8.4-2.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-11 17:04:02 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 Jan André Reuter 2024-05-03 07:30:37 UTC
When installing Score-P v8.4-1 from the current testing repositories on a fresh Fedora 40 installation, two things are noticable:

1. No compilers will be installed, causing Score-P to return:
```
sh: line 1: gcc: command not found
[Score-P] ERROR: Execution failed: gcc `/usr/bin/scorep-config --thread=none --mpp=none --io=none --nocuda --noopencl --noopenacc --nomemory --nokokkos --nohip --cflags`    -c /home/jreuter/test.c -o test_1714720796_998943.o
```

I consider this fine, as users wanting to use Score-P will have the compiler installed anyway and maybe doesn't want to have `gfortran` installed.

2. The library `libunwind-devel` is missing, causing compilation of any program to fail when instrumenting with Score-P. The following error will be returned:

```
scorep-gcc test.c
/usr/bin/ld: cannot find -lunwind: No such file or directory
collect2: error: ld returned 1 exit status
[Score-P] ERROR: Execution failed: gcc .scorep_init.o test_1714720833_339656.o `/usr/bin/scorep-config --thread=none --mpp=none --io=none --nocuda --noopencl --noopenacc --nomemory --nokokkos --nohip --constructor` `/usr/bin/scorep-config --thread=none --mpp=none --io=none --nocuda --noopencl --noopenacc --nomemory --nokokkos --nohip --ldflags`  -Wl,-start-group `/usr/bin/scorep-config --thread=none --mpp=none --io=none --nocuda --noopencl --noopenacc --nomemory --nokokkos --nohip --event-libs`  `/usr/bin/scorep-config --thread=none --mpp=none --io=none --nocuda --noopencl --noopenacc --nomemory --nokokkos --nohip --mgmt-libs` -Wl,-end-group
```

Reproducible: Always

Steps to Reproduce:
1. Install a fresh version of Fedora 40 without any additional packages
2. Install Score-P v8.1-5 via `sudo dnf install scorep`
3. Upgrade Score-P to v8.4-1 via `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-a9342b5da9`
4. Create a simple source file, for example an empty `main` function
5. Try to compile it via `scorep-gcc test.c`
6. You'll see the error shown above.
Actual Results:  
Compilation fails with the `ld` error shown above. 

Expected Results:  
I would expect that the program compiles and runs normally. This is given once `libunwind-devel` is installed manually.

Comment 1 Jan André Reuter 2024-05-03 08:27:55 UTC
Score-P tries to link against `libunwind.so`, but without devel packages only `libunwind.so.8` is present. Therefore, linking fails.
Adding a explicit runtime dependency to `libunwind-devel` is not recommended by the packaging guidelines and also returns an error when linting.

Comment 2 Jan André Reuter 2024-05-03 13:14:11 UTC
Opened PR to fix this issue: https://src.fedoraproject.org/rpms/scorep/pull-request/2

Comment 3 Fedora Update System 2024-05-11 17:00:58 UTC
FEDORA-2024-f8af21d394 (scorep-8.4-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f8af21d394

Comment 4 Fedora Update System 2024-05-11 17:04:02 UTC
FEDORA-2024-f8af21d394 (scorep-8.4-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.