Bug 1373295 - error: to generate dependencies you must specify either -M or -MM
Summary: error: to generate dependencies you must specify either -M or -MM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ccache
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-05 20:35 UTC by Sergio Basto
Modified: 2016-09-13 22:24 UTC (History)
4 users (show)

Fixed In Version: ccache-3.3.1-1.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-13 22:24:11 UTC
Type: Bug


Attachments (Terms of Use)
/var/lib/mock/fedora-25-x86_64/result/build.log (39.11 KB, text/plain)
2016-09-06 21:34 UTC, Sergio Basto
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ccache ccache issues 129 0 None None None 2016-09-07 07:02:15 UTC

Description Sergio Basto 2016-09-05 20:35:57 UTC
Description of problem:

now when I use use mock -r fedora-24-x86_64 for Fedora25 , if I enable ccache 

VirtualBox ends with:

cc1plus: error: to generate dependencies you must specify either -M or -MM
cc1: error: to generate dependencies you must specify either -M or -MM

googling for: error to generate dependencies you must specify either M or MM 



How reproducible:
mock -r fedora-24-x86_64 --no-clean --rebuild  VirtualBox-5.0.26-1.fc25.src.rpm

Actual results:
cc1plus: error: to generate dependencies you must specify either -M or -MM
kmk: *** [/builddir/build/BUILD/VirtualBox-5.0.26/obj/obj/filesplitter/filesplitter.o] Error 1
kmk: *** Waiting for unfinished jobs....
cc1plus: error: to generate dependencies you must specify either -M or -MM
kmk: *** [/builddir/build/BUILD/VirtualBox-5.0.26/obj/obj/VBoxCmp/VBoxCmp.o] Error 1
cc1: error: to generate dependencies you must specify either -M or -MM
kmk: *** [/builddir/build/BUILD/VirtualBox-5.0.26/obj/obj/biossums/biossums.o] Error 1
cc1: error: to generate dependencies you must specify either -M or -MM
kmk: *** [/builddir/build/BUILD/VirtualBox-5.0.26/obj/obj/bin2c/bin2c.o] Error 1

Expected results:
like fedora-23-x86_64 ccache is set and compiles without problem

Additional info:

I will try find what package breaks this compilation , because is strange that is happen just now, but I may never test compile it in F24 before ?!?

Comment 1 Sergio Basto 2016-09-05 20:37:32 UTC
(*) googling for: error to generate dependencies you must specify either M or MM 
found this https://bugs.eclipse.org/bugs/show_bug.cgi?id=330249#c11 but is a bug from 2010 ...

Comment 2 Sergio Basto 2016-09-05 22:00:23 UTC
after downgrade to ccache-3.2.7-1.fc24.x86_64.rpm, it works .
With ccache-3.2.7-2.fc24.x86_64.rpm doesn't work.

Comment 3 Ville Skyttä 2016-09-06 04:49:30 UTC
@Sergio, please attach or upload the full build log somewhere for examination. Also, could you test with ccache 3.3 available from F-25 or F-26? I think it should install cleanly on F-24.

@Joel, FYI the only difference between 3.2.7-1 and 3.2.7-2 is that the latter has CCACHE_CPP2 turned on by default per bug 1350086.

Comment 4 Sergio Basto 2016-09-06 21:34:22 UTC
Created attachment 1198424 [details]
/var/lib/mock/fedora-25-x86_64/result/build.log

sadly ccache-3.3-1.fc25.x86_64.rpm also have this problem ... 
 
mock -r fedora-25-x86_64 --init
mock -r fedora-25-x86_64 --install ./ccache-3.3-1.fc25.x86_64.rpm 
rfpkg srpm  && mock -r fedora-25-x86_64 --no-clean --rebuild  VirtualBox-5.1.4-2.fc26.src.rpm --without docs --without vnc --without webservice

disable ccache mock build and uninstall ccache , builds fine

Comment 5 Sergio Basto 2016-09-06 23:24:39 UTC
This works:
mock -r fedora-25-x86_64 --install https://kojipkgs.fedoraproject.org//packages/ccache/3.2.7/1.fc25/x86_64/ccache-3.2.7-1.fc25.x86_64.rpm
rfpkg srpm  && mock -r fedora-25-x86_64 --no-clean --rebuild  VirtualBox-5.1.4-2.fc26.src.rpm --without docs --without vnc --without webservice


This not worked:
mock -r fedora-25-x86_64 --install https://kojipkgs.fedoraproject.org//packages/ccache/3.2.7/2.fc25/x86_64/ccache-3.2.7-2.fc25.x86_64.rpm 
rfpkg srpm  && mock -r fedora-25-x86_64 --no-clean --rebuild  VirtualBox-5.1.4-2.fc26.src.rpm --without docs --without vnc --without webservice

with ccache-3.2.7-1.fc25 works and ccache-3.2.7-2.fc25 not works

Comment 6 Ville Skyttä 2016-09-07 07:00:09 UTC
Forwarded upstream with a more generic reproducer: https://github.com/ccache/ccache/issues/129

Comment 7 Joel Rosdahl 2016-09-07 19:30:46 UTC
Should be fixed in ccache 3.2.8 and 3.3.1.

Comment 8 Ville Skyttä 2016-09-08 07:40:33 UTC
Seems so, thanks!

Comment 9 Fedora Update System 2016-09-08 07:53:05 UTC
ccache-3.3.1-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4c522df558

Comment 10 Fedora Update System 2016-09-12 15:28:23 UTC
ccache-3.3.1-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-4c522df558

Comment 11 Sergio Basto 2016-09-12 16:50:58 UTC
Hello , I hadn't time to test it , but thanks for yours quick response and just add one new information, this happened also with kBuild which is the source of this problem, so  we may test it easily with kbuild package .

Thanks

Comment 12 Fedora Update System 2016-09-13 22:24:05 UTC
ccache-3.3.1-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, 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.