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

            Bug ID: 113899
           Summary: Vect module test failures while running on remote host
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sadineniharish8446 at gmail dot com
  Target Milestone: ---

We've seen a few test failures on gcc vect module, while running gcc testsuite
on Yocto framework for the custom target with Remote host testing via ssh .
Below is the error message,
         xgcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with
multiple files
         compilation terminated.
         compiler exited with status 1
         FAIL: gcc.dg/vect/vect-simd-clone-12.c -flto -ffat-lto-objects (test
for excess errors)
         Excess errors:
         xgcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with
multiple files
         compilation terminated

Below is the cmd causing the error:
/poky/build2-st/tmp/work/core2-64-poky-linux/gcc-runtime/13.2.0/gcc-13.2.0/build.x86_64-poky-linux.x86_64-poky-linux/gcc/xgcc
-B/poky/build2-st/tmp/work/core2-64-poky-linux/gcc-runtime/13.2.0/gcc-13.2.0/build.x86_64-poky-linux.x86_64-poky-linux/gcc/

/poky/build2-st/tmp/work-shared/gcc-13.2.0-r0/gcc-13.2.0/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
   
--sysroot=/poky/build2-st/tmp/work/core2-64-poky-linux/gcc-runtime/13.2.0/recipe-sysroot
-fdiagnostics-plain-output
--sysroot=/poky/build2-st/tmp/work/core2-64-poky-linux/gcc-runtime/13.2.0/recipe-sysroot
 -msse2 -ftree-vectorize -fno-tree-loop-distribute-patterns
-fno-vect-cost-model -fno-common -O2 -fdump-tree-vect-details -fopenmp-simd 
/poky/build2-st/tmp/work-shared/gcc-13.2.0-r0/gcc-13.2.0/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12a.c
-dumpbase "" -S -o vect-simd-clone-12.s 
There are two .c files (vect-simd-clone-12.c & vect-simd-clone-12a.c) are
passed to test case.

As per our analysis,
- When the test suite executed on host machine (w/o Remote host testing), the
'-o' option is passed with .exe file as output (eg: -dumpbase "" -o
vect-simd-clone-12.exe ). In this case, the two .c files are compiled and .exe
is generating and no issues with test execution.
- In remote tesing with ssh, there is an additional '-S' option is passed with
"-o vect-simd-clone-12.s" (See above given test command), here the compiler is
trying to compile both .c files and forced to create a single assembly file as
output and fails with below error.
xgcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple
files

This might be a bug in test suite when doing remote testing.
Please confirm the issue and let us know if any further inputs needed.

Reply via email to