Bug 1274031
Summary: | Build issues when ccache is installed in the buildroot | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Sommerseth <davids> | ||||
Component: | swig | Assignee: | Jitka Plesnikova <jplesnik> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | besser82, jplesnik, ovasik | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | swig-3.0.7-8.fc24 swig-3.0.7-7.fc23 swig-3.0.7-4.fc21 swig-3.0.7-4.fc22 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-02 18:52:44 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
The test failed with following error when ccache is installed. test -z "1" || (cd CCache && make check) make[1]: Entering directory '/builddir/build/BUILD/swig-3.0.7/CCache' SWIG_LIB='.././../Lib' PATH=../..:$PATH SWIG='swig' CC='gcc' NOSOFTLINKSTEST='' ./test.sh starting testsuite base SUITE: base TEST: BASIC - Expected cache miss to be 1 got 2 cache directory ccache dir cache hit 0 cache miss 2 files in cache 4 cache size 12 Kbytes max cache size 854.5 Mbytes TEST FAILED Makefile:63: recipe for target 'test' failed make[1]: Leaving directory '/builddir/build/BUILD/swig-3.0.7/CCache' make[1]: *** [test] Error 1 Makefile:138: recipe for target 'check-ccache' failed make: *** [check-ccache] Error 2 Just for information swig-3.0.7-7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e1921b46a6 swig-3.0.7-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-7d9d66c009 swig-3.0.7-4.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-59a0390a7f swig-3.0.7-7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update swig' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-e1921b46a6 swig-3.0.7-4.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update swig' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-59a0390a7f swig-3.0.7-4.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update swig' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-7d9d66c009 swig-3.0.7-7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. swig-3.0.7-4.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. swig-3.0.7-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 1085266 [details] Fix build issues when ccache is installed on the build system When building swig on a system with ccache installed, 'make check' will fail as the installed ccache interferes with the unit tester and corrupts the results. The attached patch removes ccache binaries from $PATH in the test script, thus avoiding any $CC calls to use any ccache enabled compilers during testing.