This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Regarding gcc testsuite
- From: Manpreet Singh <mappysingh at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Oct 2014 13:53:17 +0100
- 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>
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)
Thanks & regards
mappy
On 10/29/14, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 28 October 2014 12:06, Manpreet Singh wrote:
>> Hi,
>> You are right its 32-bit assembler. I tried these 2 ways to configure
>>
>> Way 1
>> My configuration:-
>> In my pc latest version of gcc-4.8 is install and i want to configure
>> and run gcc testsuite for gcc-4.4.5
>> Ubuntu 14.04
>> Host = x86_64-linux-gnu
>> Build = x86_64-linux-gnu
>> Target = powerpc-linux-gnu
>
> You should have said you were building a cross-compiler.
>
> You can't test a powerpc compiler on x86_64 directly. Your x86_64
> machine can't run the powerpc executables.
>
> The https://gcc.gnu.org/wiki/Testing_GCC#Testing_with_a_simulator link
> I've already given explains how to use a simulator, but I don't know
> if that's possible for powerpc. You might have to test the compiler on
> a powerpc machine.
>