Please see if this previous message helps your case https://www.sourceware.org/ml/crossgcc/2006-04/msg00159.html On Fri, Oct 31, 2014 at 3:31 AM, Manpreet Singh <mappysingh@xxxxxxxxx> wrote: > Hi, > I am trying to run this gcc-4.4.5 testsuite with this script > sudo runtest --target_board=sparc-sim --tool gcc --srcdir > /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite > --tool_exec=/opt/..cdk/sparc/v8/bin/sparc_v8-gcc > > These are the failures after running this script > /sparc-unknown-elf/bin/ld: cannot open linker script file elfsim.ld: > No such file or directory > > If this error related to linker then how would i set linker or pass > options to runtest. > > Thanks & regards > mappy > > > > On 10/30/14, Andrew Bennett <Andrew.Bennett@xxxxxxxxxx> wrote: >>> Hi, >>> I am trying to run the gcc-4.4.5 testsuite >>> with the credentials given below >>> Host = x86_64-linux-gnu >>> Build = x86_64-linux-gnu >>> Target = powerpc-linux-gnu >>> and with this script >>> >>> sudo runtest >>> RUNTESTFLAGS="CFLAGS_FOR_TARGET=--sysroot=/opt/.../cdk/ppc/oea >>> --target_board=powerpc-sim" --tool gcc --srcdir >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite >>> --tool_exec=/opt/.../cdk/ppc/oea/bin/ppc_oea-gcc >>> >>> target libraries directory = /opt/.../cdk/ppc/oea >>> >>> I also have sparc_v8-gcc and x86_i586-gcc executable >>> >>> i got these errors >>> >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c:8:19: >>> error: stdio.h: No such file or directory >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c:9: >>> error: expected ')' before '*' token >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c: >>> In function 'main_test': >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c:15: >>> error: 'FILE' undeclared (first use in this function) >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c:15: >>> error: (Each undeclared identifier is reported only once >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c:15: >>> error: for each function it appears in.) >>> /home/gcc-test/gcc4.5/gcc-4.4.5/gcc/testsuite/gcc.c- >>> torture/execute/builtins/fprintf.c:15: >>> error: 's_array' undeclared (first use in this function) >> >> This is the same issue that I commented on in: >> >> https://gcc.gnu.org/ml/gcc/2014-10/msg00164.html >> >> >> Could you check that you have correctly built and installed newlib? >> >> >> Regards, >> >> >> Andrew >>