All objc tests fail + diagnosis
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Mon Sep 28 13:23:00 GMT 1998
> Snapshot: egcs-CVS19980927
> Platform: sparc-sun-solaris2.5
> Stage1 compiler: cc
> Assembler: native
> Linker: native
> BOOT_CFLAGS: none
>
> === objc tests ===
>
> FAIL: objc/execute/bf-1.m compilation, -O
> [...]
> FAIL: objc/execute/bf-9.m compilation, -O
>
> === objc Summary ===
>
> # of unexpected failures 19
> # of untested testcases 19
I looked at the objc testsuite logfile to determine the reason
every single one of the objc tests are failing. It turns out that the
test files all want to include the objc headers and cannot find them so
the compilation fails. Adding the appropriate -I flag to the tests
should fix that.
Here is a sample from testsuite/objc.log:
> Executing on host: /tmp/gcc-testing/egcs-CVS19980927/gcc/xgcc
> -B/tmp/gcc-testing/egcs-CVS19980927/gcc/
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m
> -w -O -lobjc -lm -o
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/bf-11.x
> spawn /tmp/gcc-testing/egcs-CVS19980927/gcc/xgcc
> -B/tmp/gcc-testing/egcs-CVS19980927/gcc/
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m
> -w -O -lobjc -lm -o
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/bf-11.x
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:1:
> objc/objc.h: No such file or directory
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:2:
> objc/objc-api.h: No such file or directory
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:3:
> objc/Object.h: No such file or directory
> In file included from
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:22:
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-common.h:1:
> objc/encoding.h: No such file or directory
> compiler exited with status 1
> output is:
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:1:
> objc/objc.h: No such file or directory
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:2:
> objc/objc-api.h: No such file or directory
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:3:
> objc/Object.h: No such file or directory
> In file included from
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-11.m:22:
> /tmp/gcc-testing/egcs-CVS19980927/gcc/testsuite/objc/execute/bf-common.h:1:
> objc/encoding.h: No such file or directory
>
> FAIL: objc/execute/bf-11.m compilation, -O
> UNTESTED: objc/execute/bf-11.m execution, -O
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Icon CMT Corp.
More information about the Gcc-bugs
mailing list