On Tue, Mar 23, 2010 at 10:56 AM, Joel Sherrill <joel.sherr...@oarcorp.com> wrote: > Hi, > > There are a number of failures in my latest run > of sparc-rtems4.10 but the ones I have gone back > and run the executable by hand actually pass. > I have no idea why this is happening and wondered > if someone had some insight as to what I should > look at next. From gcc.log > > Executing on host: /users/joel/test-gcc/b-gcc1-sparc/gcc/xgcc > -B/users/joel/test-gcc/b-gcc1-sparc/gcc/ > /users/joel/test-gcc/gcc-svn/gcc/testsuite/gcc.c-torture/execute/builtins/snprintf-chk.c > /users/joel/test-gcc/gcc-svn/gcc/testsuite/gcc.c-torture/execute/builtins/snprintf-chk-lib.c > /users/joel/test-gcc/gcc-svn/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c > gcc_tg.o -w -O0 -DSTACK_SIZE=2048 -isystem > /users/joel/test-gcc/b-gcc1-sparc/sparc-rtems4.10/./newlib/targ-include > -isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include > -B/users/joel/test-gcc/install-svn/sparc-rtems4.10/sis/lib/ -specs bsp_specs > -qrtems -mcpu=cypress > -B/users/joel/test-gcc/b-gcc1-sparc/sparc-rtems4.10/./newlib/ > -L/users/joel/test-gcc/b-gcc1-sparc/sparc-rtems4.10/./newlib > /users/joel/test-gcc/b-gcc1-sparc/rtems_gcc_main.o -Wl,-wrap,exit > -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o > /users/joel/test-gcc/b-gcc1-sparc/gcc/testsuite/gcc/snprintf-chk.x0 > (timeout = 300) > PASS: gcc.c-torture/execute/builtins/snprintf-chk.c compilation, -O0 > sparc-rtems4.10-run is > /users/joel/test-gcc/install-svn/bin/sparc-rtems4.10-run > Running /users/joel/test-gcc/b-gcc1-sparc/gcc/testsuite/gcc/snprintf-chk.x0 > for maximum 60 seconds > FAIL: gcc.c-torture/execute/builtins/snprintf-chk.c execution, -O0 > > So it compiles but apparently fails to run. OK > so I run it by hand: > > $ /users/joel/test-gcc/install-svn/bin/sparc-rtems4.10-run snprintf-chk.x0 > > *** EXIT code 0 > [j...@rtbf64b gcc]$ echo $? > 0 > > Any suggestions on how to track down what is going wrong?
What are /users/joel/test-gcc/b-gcc1-sparc/rtems_gcc_main.o and -Wl,-wrap,main? Is main being replaced by something that doesn't return 0? janis