Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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 [email protected] on 29 Jan 2009 at 10:08

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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 [email protected] on 25 Apr 2009 at 1:12

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
[deleted comment]

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
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 [email protected] on 4 Jun 2012 at 12:38

from distcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.