Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3291 - ccache too many input files

Attached to Project: Arch Linux
Opened by Daniel YC Lin (dlin) - Tuesday, 04 October 2005, 10:59 GMT
Last edited by Dale Blount (dale) - Tuesday, 04 October 2005, 11:07 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

gcc version 4.0.2, compile the logrotate package.
I setting ccache by edit /etc/makepkg.conf
export CC="ccache gcc"
export CPP="ccache cpp"
export CXX="ccache g++"

Found following error message:
---
ccache cpp -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.7.1\" -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -g -M logrotate.c log.c config.c basenames.c > .depend
cpp: too many input files
make: *** [depend] Error 1
==> ERROR: Build Failed. Aborting...
---
When I remove the setting in /etc/makepkg.conf, it works.
(I found makepkg -B is useless on this case).
This task depends upon

Closed by  Kevin Piche (kpiche)
Thursday, 12 January 2006, 21:57 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Remove exported variables from makepkg.conf.
Comment by Kevin Piche (kpiche) - Thursday, 12 January 2006, 21:56 GMT
This is expected behaviour. The man page shows that cpp creates dependency output (-M option) for one file only: cpp -M infile outfile. This can be corrected by using gcc instead of cpp within the Makefile: gcc -Wall ... -M many.c files.c >.depend.

Howerver as of September 8, 2005 ( bug 3175 ) the ccache package has symlinks to ccache for cc, cpp, gcc, and g++ and are automatically used by makepkg if ccache pkg is installed. Remove the export variables from /etc/makepkg.conf. It builds logrotate without problems.

Loading...