[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ICC 7.0 and distcc

From: Akim Demaille
Subject: ICC 7.0 and distcc
Date: Wed, 25 Jun 2003 19:23:32 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

| But when I used distcc, all is lost with the -MD flags
| | /tmp % distcc /home/lrde/lrde/usr/bin/icc -Kc++  -c     nostromo 
| | error: function "foo" has already been defined
| |   int foo () { return 1;}
| |       ^
| | 
| | compilation aborted for /tmp/distcc_106/server_0000031068.ii (code 2)
| | distcc[31066] ERROR: compile on nostromo failed with exit code 2
| | /tmp % distcc /home/lrde/lrde/usr/bin/icc -Kc++  -c -MD -MF foo.Po 
| | /tmp %
| If someone has an idea...

Actually, I'm not sure one can get both a CPP output together with
dependencies.  Distcc wants -E, and Automake wants -MD -MF:

-M         generate makefile dependency information
-MM        similar to -M, but do not include system header files
-MG        similar to -M, but treat missing header files as generated files
-MD        preprocess and compile, generating output file containing
           dependency information ending with extension .d
-MMD       similar to -MD, but do not include system header files
-MF<file>  generate makefile dependency information in file (must specify -M
           or -MM)

It results in:

/tmp % cat                                            nostromo 19:21
int foo () { return 1;}
/tmp % /home/lrde/lrde/usr/bin/icc -Kc++ -E           nostromo 19:22
#line 1 ""
int foo () { return 1;}
/tmp % /home/lrde/lrde/usr/bin/icc -Kc++ -E -MD -MFoutput.d
/tmp % cat output.d                                              nostromo 19:22

I did not find a means to get the -E part...

/tmp % /home/lrde/lrde/usr/bin/icc -Kc++ -MD -MFoutput.d -E -o output.i                                                                      
/tmp % cat output.i                                              nostromo 19:23
cat: output.i: No such file or directory

reply via email to

[Prev in Thread] Current Thread [Next in Thread]