From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 657E93858D35; Mon, 8 May 2023 11:25:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 657E93858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683545108; bh=SfwcFeAJQCS52GPIRvhi63BRjtgM7v/he1zby7XrQYE=; h=From:To:Subject:Date:From; b=iBYFdWMrvE82+DBvA6ulqvgNH92xyR92TkAO9Xu1y3pdrjzL0oyNVQxfNPgk3ypOB Tyl4KxkGMtj1SqrJLTTz8vAfq7HamkYAiOz2y82m+aJUKC/FPoNUAWy0vuci1/yxMM Anxhdi4bmfO3uBvQeBnCBgn/6k3WNhtV8pRHBpGM= From: "sattdeepan.d at samsung dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/109769] New: gcc testsuite being run on x86 tests when the target device is risc-v based Date: Mon, 08 May 2023 11:25:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: og12 (devel/omp/gcc-12) X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sattdeepan.d at samsung dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109769 Bug ID: 109769 Summary: gcc testsuite being run on x86 tests when the target device is risc-v based Product: gcc Version: og12 (devel/omp/gcc-12) Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: sattdeepan.d at samsung dot com Target Milestone: --- When running the testsuite on risc-v based target device, tests are being r= un assuming the target architecture is same as host, x86 in my case. Is there any way to tell the testsuite the target architecture on which the toolchain is to be tested? Below are the contents of exp file: # Board definition file for board "myboard_sshscp" load_generic_config "unix" # How to compile C programs for this board set_board_info compiler riscv64-unknown-linux-gnu-gcc # Network address of board set_board_info hostname set_board_info username set_board_info rsh_prog /usr/bin/ssh set_board_info rcp_prog /usr/bin/scp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D I am getting following test failures in running the test, which are suppose= dly failing because of being run in a different architecture, e.g. riscv64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-ma= vx' -mavx option is not defined for risc-v arch. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Please suggest if there is a method to specify the architecture on which the tests are to be run. Please note that we are trying to run the tests on the device and NOT the simulator=