Bug 2344453

Summary: sdcc-sdcc doesn't look in correct directory for cc1
Product: [Fedora] Fedora Reporter: nvwarr
Component: sdccAssignee: Jiri Kastner <cz172638>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: cz172638, dangjinghaoemail, hdegoede, rrankin
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: sdcc-4.4.0-3.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-05 07:43:32 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 nvwarr 2025-02-08 12:12:57 UTC
sdcc-sdcc sets the path to include /usr/libexec/sdcc in the PATH, but it doesn't include the /usr/libexec/sdcc/x86_64-redhat-linux-gnu/12.1.0 directory where cc1 resides, so it fails with "sdcpp: fatal error: cannot execute 'cc1': execvp: No such file or directory"

Editing the sdcc-sdcc script to add this extra directory to the PATH fixes the problem.

Reproducible: Always

Steps to Reproduce:
1. sdcc-sdcc -mmcs51 -c main.c
with some random main.c
Actual Results:  
sdcpp: fatal error: cannot execute 'cc1': execvp: No such file or directory

Expected Results:  
It should call cc1 from the subdirectory

Changing line 2 of the sdcc-sdcc script to

PATH=/usr/libexec/sdcc:/usr/libexec/sdcc/x86_64-redhat-linux-gnu/12.1.0/:$PATH

fixes the problem on my system, though I guess the exact subdirectory will depend on the system.

Comment 1 djh 2025-09-24 08:24:26 UTC
This bug is still reproducible in Fedora 42 with SDCC 4.4.0-2.fc42. Is there any new update?

Comment 2 Fedora Update System 2025-10-03 20:48:48 UTC
FEDORA-2025-a989aece56 (sdcc-4.4.0-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a989aece56

Comment 3 Fedora Update System 2025-10-04 02:15:45 UTC
FEDORA-2025-a989aece56 has been pushed to the Fedora 42 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-a989aece56`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-a989aece56

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

Comment 4 nvwarr 2025-10-05 07:43:32 UTC
This fixes the bug for me. Thanks.

Comment 5 Fedora Update System 2025-10-12 01:23:47 UTC
FEDORA-2025-a989aece56 (sdcc-4.4.0-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.