This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Regarding gcc testsuite
- From: Cherry Vanc <cherry dot vanc at gmail dot com>
- To: Manpreet Singh <mappysingh at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 31 Oct 2014 09:56:51 -0700
- Subject: Re: Regarding gcc testsuite
- Authentication-results: sourceware.org; auth=none
- References: <CAB6m5eS3eUTUPDPXM-c_+AKNfgfE7yXOmGy--bq_amZnMTJtrQ at mail dot gmail dot com> <CAH6eHdSfF5PPJ8utE8Zek7B+J1qQZDwCpYUJ7JMh7DRuf=HTWQ at mail dot gmail dot com> <CAB6m5eT8mKneAprmiFxNihzRU3wMpxr6+WHnh9BX1LVD5AQkBA at mail dot gmail dot com> <CAH6eHdTC9FjqAqH+5kFpme9Nvs0EG2-AH5A96XVnpWa5Ebzsog at mail dot gmail dot com> <CAB6m5eTzSaEtY2Px__2KuTaprObWRB5GuAn8mdAVSJkQZdsNbA at mail dot gmail dot com> <CAH6eHdQKFzww1SDyWSn8gG7abA-eTs_c2fxLyyUK5LAX7r-bpw at mail dot gmail dot com> <CAB6m5eRUFkEaasKopGoB9JmUAx25CE6GsrP_Lw6neVuqjnUXgg at mail dot gmail dot com> <CAH6eHdTdFGEvgObhiFyvc5A8ngDu+oYSPvk-4puFmu4X6JxomQ at mail dot gmail dot com> <CAB6m5eQ9=5jSDBfZmJVsw+TgRvZzti3LAwA5YpFCcrRnSs+spw at mail dot gmail dot com> <CAH6eHdQkAYd0c0uK2HPnDGzeDMrWxYsZMjCRtRJ7xkwGzQq7ow at mail dot gmail dot com> <CAB6m5eSFk_FVJAMkkdOucRyKFm0y0CXk9g+_GcZx_iTbH8yzfA at mail dot gmail dot com> <0DA23CC379F5F945ACB41CF394B9827720EF41AE at LEMAIL01 dot le dot imgtec dot org> <CAB6m5eQA=vokooGFm6_5MAD9yjdEOZvWw1tRVCnokschpJ897Q at mail dot gmail dot com>
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@gmail.com> 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@imgtec.com> 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
>>