Open GoogleCodeExporter opened 9 years ago
This one is a tricky three-way incompatibility between MacOS gcc, Python, and
distcc.
MacOS gcc extends gcc with support for multiple -arch options; Python uses them;
and distcc invokes gcc via Python, hence picking up the "-arch" options;
but MacOS gcc doesn't support the standard gcc "-MD" option when multiple
"-arch"
options are used.
The work-around is to comment out the "-MD" from the Makefile.
Original comment by fergus.h...@gmail.com
on 29 Jan 2009 at 10:08
please add -MF xxx.d after -MD CFLAG, you maybe need to modify the makefile,
for example, if you compile use
gcc src.c -MD -o ../out/src.o
try this,
gcc src.c -MD -MF ../out/src.d -o ../out/src.o
In makefile, you may need change the rules, like -MD -MF $(patsubst %.o,%.d,$@)
Original comment by kzjeef
on 24 Apr 2009 at 3:56
How does adding "-MF xxx.d" help?
I didn't think it would help, but I just tried it, and I still get
bash$ make
...
gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc -g -O2 -MD
-MF
include-server.d ...
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch
flags
Original comment by fergus.h...@gmail.com
on 25 Apr 2009 at 1:12
[deleted comment]
If we can't figure out a perfect solution for this issue, why not directly
remove "-MD" flag when it detects it's using MacOS gcc?
Or is it better to remove multiple "-arch" since I guess it's less necessary in
this case?
Original comment by compan...@gmail.com
on 4 Jun 2012 at 12:38
Original issue reported on code.google.com by
mikeh...@gmail.com
on 28 Jan 2009 at 8:58