public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/109769] New: gcc testsuite being run on x86 tests when the target device is risc-v based
@ 2023-05-08 11:25 sattdeepan.d at samsung dot com
  2023-05-08 16:08 ` [Bug testsuite/109769] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: sattdeepan.d at samsung dot com @ 2023-05-08 11:25 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug testsuite/109769] gcc testsuite being run on x86 tests when the target device is risc-v based
  2023-05-08 11:25 [Bug testsuite/109769] New: gcc testsuite being run on x86 tests when the target device is risc-v based sattdeepan.d at samsung dot com
@ 2023-05-08 16:08 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-08 16:08 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is the wrong place to ask for help on this. Either gcc@ or gcc-help@ are
better places.

If you are using runtest directly you need to use the --target command line
option.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-08 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 11:25 [Bug testsuite/109769] New: gcc testsuite being run on x86 tests when the target device is risc-v based sattdeepan.d at samsung dot com
2023-05-08 16:08 ` [Bug testsuite/109769] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).