Bug 2344453 - sdcc-sdcc doesn't look in correct directory for cc1
Summary: sdcc-sdcc doesn't look in correct directory for cc1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sdcc
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jiri Kastner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-08 12:12 UTC by nvwarr
Modified: 2025-10-12 01:23 UTC (History)
4 users (show)

Fixed In Version: sdcc-4.4.0-3.fc42
Clone Of:
Environment:
Last Closed: 2025-10-05 07:43:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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