Bug 4304

Summary: gccmakedep does not recognize -i*prefix* gcc options
Product: xorg Reporter: Brano Zarnovican <zarnovican>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: lowest    
Version: 6.8.2   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Brano Zarnovican 2005-08-30 05:55:31 UTC
Description of problem:    
gccmakedep does not recognize -i*prefix* gcc options    
    
Version-Release number of selected component (if applicable):    
rpm -q -f `which gccmakedep`    
xorg-x11-devel-6.8.2-37    
rpm -q gcc    
gcc-4.0.1-4.fc4
System: Fedora Core 4   
    
Steps to Reproduce:    
mkdir depend    
cd depend    
echo "#include <myfile.h>" > test.c    
touch ../myfile.h    
gccmakedep -f - -iprefix ../ -iwithprefix . test.c    
gcc -M -iprefix ../ -iwithprefix . test.c    
     
Actual results:    
$ gccmakedep -f - -iprefix ../ -iwithprefix . test.c    
Unknown option '-iprefix' ignored    
Unknown option '-iwithprefix' ignored    
test.c:1:20: error: myfile.h: No such file or directory    
    
Expected results:    
$ gccmakedep -f - -iprefix ../ -iwithprefix . test.c    
test.o: test.c .././myfile.h    
    
Additional info:    
Workaround:    
use directly "gcc -M"     
   
There are numerous 'include' options that ought to be recognized too 
-nostdinc, -iquote, -idirafter 

Search keywords:
-iprefix, -iwithprefix, -iwithprefixbefore
Comment 1 Brano Zarnovican 2005-08-30 05:59:23 UTC
*** Bug 4305 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Stone 2007-02-27 01:27:46 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 chemtech 2013-03-15 14:36:47 UTC
Brano Zarnovican
Do you still experience this issue with newer soft ?
Please check the status of your issue.
Comment 4 Brano Zarnovican 2013-03-15 16:13:15 UTC
Hi,

I opened this bug 7+ years ago. Just for a fun I tried to reproduce it. The command 'gccmakedep' no longer exists ;) Closing as Invalid.

BranoZ

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.