test suite error: DotD_Case

Thomas Tutone <[email protected]>
Newsgroups gmane.comp.compilers.distcc
Message-ID <[email protected]>
I'm trying to compile distcc on a Linux From Scratch system.  I'm using gcc 4.3.2 and Python 2.6.1.  Source compiles cleanly (./configure && make).  However, when I run the test suite (make check) I get an error - here's the relevant excerpt:

ParseMask_Case                 OK
DotD_Case                      [TempCompile_Case FAIL]
-----------------------------------------------------------------
Traceback (most recent call last):
  File "/sources/other/distcc-3.1/test/comfychair.py", line 355, in runtest
    obj.runtest()
  File "./test/testdistcc.py", line 611, in runtest
    self.compile()
  File "./test/testdistcc.py", line 889, in compile
    out, err = self.runcmd(cmd)
  File "/sources/other/distcc-3.1/test/comfychair.py", line 219, in runcmd
    %s""" % (rc, expectedResult, cmd, output, stderr))
AssertionError: command returned 1; expected 0: "/usr/bin/gcc foo.cpp -o hello.o"
stdout:

stderr:
foo.cpp:2: error: first argument of 'int main(char**)' should be 'int'
foo.cpp:2: error: 'int main(char**)' takes only zero or two arguments

test_log:
Run command: distccd --verbose --lifetime=60 --daemon --log-file '/sources/other/distcc-3.1/_testtmp/DotD_Case/_testtmp/TempCompile_Case/distccd.log' --pid-file '/sources/other/distcc-3.1/_testtmp/DotD_Case/
Wait status: 0x0 (exit code 0, signal 0)
stdout:

stderr:
Run command: /usr/bin/gcc foo.cpp -o hello.o
Wait status: 0x100 (exit code 1, signal 0)
stdout:

stderr:
foo.cpp:2: error: first argument of 'int main(char**)' should be 'int'
foo.cpp:2: error: 'int main(char**)' takes only zero or two arguments

-----------------------------------------------------------------
FAIL
-----------------------------------------------------------------
Traceback (most recent call last):
  File "/sources/other/distcc-3.1/test/comfychair.py", line 355, in runtest
    obj.runtest()
  File "./test/testdistcc.py", line 619, in runtest
    %  (args, dep_glob, how_many, target))
AssertionError: Case (args:foo.cpp -o hello.o, dep_glob:*.d, how_many:0, target:None)
test_log:
Run command: touch testtmp.cpp; /usr/bin/gcc -c testtmp.cpp -o /dev/null
Wait status: 0x0 (exit code 0, signal 0)
stdout:

stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.o -MD
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.d', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.. -MD
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello..d', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.bar.foo -MD
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.bar.d', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.o
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.d', 'needs_dotd':0, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.bar.foo -MD
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.bar.d', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -MD
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'foo.d', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello. -MD
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.d', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello. -MD -MT tootoo
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.d', 'needs_dotd':1, 'sets_dotd_target':1, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.o -MD -MT tootoo
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'hello.d', 'needs_dotd':1, 'sets_dotd_target':1, 'dotd_target':'None'}
stderr:
Run command: h_dotd dcc_get_dotd_info gcc -c foo.c -o hello.o -MD -MF foobar
Wait status: 0x0 (exit code 0, signal 0)
stdout:
{'dotd_fname':'foobar', 'needs_dotd':1, 'sets_dotd_target':0, 'dotd_target':'None'}
stderr:

-----------------------------------------------------------------
DashMD_DashMF_DashMT_Case      OK


Any ideas why this item of the test suite failed?

Thanks.

Tom




      
__ 
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/distcc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.