https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109769

            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 run
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 <IP of remote target>
set_board_info username <username>
set_board_info rsh_prog /usr/bin/ssh
set_board_info rcp_prog /usr/bin/scp


======================================================
I am getting following test failures in running the test, which are supposedly
failing because of being run in a different architecture, e.g.

riscv64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-mavx'

-mavx option is not defined for risc-v arch.

==============================================================

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
  • [Bug testsuite/109769] New: g... sattdeepan.d at samsung dot com via Gcc-bugs

Reply via email to