Description of problem: ccache changes the order of arguments passed to the compiler, thus potentially changing the compiled output. Version-Release number of selected component (if applicable): ccache-4.7.4-1.fc38.x86_64 How reproducible: Always Steps to Reproduce: 1. cat > foo.c #if _FORTIFY_SOURCE == 0 # warning "_FORTIFY_SOURCE is 0" #else # warning "_FORTIFY_SOURCE is non-zero" #endif unsigned foo; 2. ccache g++ -O2 -flto=auto -grecord-gcc-switches -U_FORTIFY_SOURCE -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -o foo.o -c foo.c Actual results: foo.c:4:3: warning: #warning "_FORTIFY_SOURCE is non-zero" [-Wcpp] 4 | # warning "_FORTIFY_SOURCE is non-zero" | ^~~~~~~ Expected results: foo.c: warning: -D_FORTIFY_SOURCE defined but value is too low foo.c:2:3: warning: #warning "_FORTIFY_SOURCE is 0" [-Wcpp] 2 | # warning "_FORTIFY_SOURCE is 0" | ^~~~~~~
Can you file this upstream at https://github.com/ccache/ccache/issues ? Thanks.
Here you go: https://github.com/ccache/ccache/issues/1238
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.
Should be fixed in ccache-4.8-1.fc39. Testing to see if we have a new enough gcc to build for f38.
FEDORA-2023-f80c64bf54 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f80c64bf54
FEDORA-2023-f80c64bf54 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f80c64bf54` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f80c64bf54 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-f80c64bf54 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.