This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/58866] New: sh64: Wrong genmultilib invocation


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58866

            Bug ID: 58866
           Summary: sh64: Wrong genmultilib invocation
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbglaw@lug-owl.de

When I looked at
http://toolchain.lug-owl.de/buildbot/deliver_artifact.php?mode=view&id=131920 ,
I noticed there's excess whitespace in the 2nd argument of `genmultilib':

if test yes = yes \
   || test -n "mb=!mb m1=!m1 mb/m1=!mb/m1 m2a=!m2a mb/m2a=!mb/m2a
m2a-nofpu=!m2a-nofpu mb/m2a-nofpu=!mb/m2a-nofpu
m2a-single-only=!m2a-single-only mb/m2a-single-only=!mb/m2a-single-only
m2a-single=!m2a-single mb/m2a-single=!mb/m2a-single m2e=!m2e mb/m2e=!mb/m2e
m2=!m2 mb/m2=!mb/m2 m3e=!m3e mb/m3e=!mb/m3e m3=!m3 mb/m3=!mb/m3
m4-nofpu=!m4-nofpu mb/m4-nofpu=!mb/m4-nofpu m4-single-only=!m4-single-only
mb/m4-single-only=!mb/m4-single-only m4-single=!m4-single
mb/m4-single=!mb/m4-single m4=!m4 mb/m4=!mb/m4 m4a-nofpu=!m4a-nofpu
mb/m4a-nofpu=!mb/m4a-nofpu m4a-single-only=!m4a-single-only
mb/m4a-single-only=!mb/m4a-single-only m4a-single=!m4a-single
mb/m4a-single=!mb/m4a-single m4a=!m4a mb/m4a=!mb/m4a m4al=!m4al
mb/m4al=!mb/m4al m5-32media=!m5-32media mb/m5-32media=!mb/m5-32media
m5-32media-nofpu=!m5-32media-nofpu mb/m5-32media-nofpu=!mb/m5-32media-nofpu
m5-compact=!m5-compact mb/m5-compact=!mb/m5-compact
m5-compact-nofpu=!m5-compact-nofpu mb/m5-compact-nofpu=!mb/m5-compact-nofpu
m5-64media=!m5-64media mb/m5-64media=!mb/m5-64media
m5-64media-nofpu=!m5-64media-nofpu mb/m5-64media-nofpu=!mb/m5-64media-nofpu";
then \
  /bin/sh /home/jbglaw/repos/gcc/gcc/genmultilib \
    "mb
m5-32media/m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu"
\
    " " \
    "" \
    "ml/m1 ml/m2a* " \
    "" \
    "" \
    "mb=!mb m1=!m1 mb/m1=!mb/m1 m2a=!m2a mb/m2a=!mb/m2a m2a-nofpu=!m2a-nofpu
mb/m2a-nofpu=!mb/m2a-nofpu m2a-single-only=!m2a-single-only
mb/m2a-single-only=!mb/m2a-single-only m2a-single=!m2a-single
mb/m2a-single=!mb/m2a-single m2e=!m2e mb/m2e=!mb/m2e m2=!m2 mb/m2=!mb/m2
m3e=!m3e mb/m3e=!mb/m3e m3=!m3 mb/m3=!mb/m3 m4-nofpu=!m4-nofpu
mb/m4-nofpu=!mb/m4-nofpu m4-single-only=!m4-single-only
mb/m4-single-only=!mb/m4-single-only m4-single=!m4-single
mb/m4-single=!mb/m4-single m4=!m4 mb/m4=!mb/m4 m4a-nofpu=!m4a-nofpu
mb/m4a-nofpu=!mb/m4a-nofpu m4a-single-only=!m4a-single-only
mb/m4a-single-only=!mb/m4a-single-only m4a-single=!m4a-single
mb/m4a-single=!mb/m4a-single m4a=!m4a mb/m4a=!mb/m4a m4al=!m4al
mb/m4al=!mb/m4al m5-32media=!m5-32media mb/m5-32media=!mb/m5-32media
m5-32media-nofpu=!m5-32media-nofpu mb/m5-32media-nofpu=!mb/m5-32media-nofpu
m5-compact=!m5-compact mb/m5-compact=!mb/m5-compact
m5-compact-nofpu=!m5-compact-nofpu mb/m5-compact-nofpu=!mb/m5-compact-nofpu
m5-64media=!m5-64media mb/m5-64media=!mb/m5-64media
m5-64media-nofpu=!m5-64media-nofpu mb/m5-64media-nofpu=!mb/m5-64media-nofpu" \
    "" \
    "" \
    "" \
    "yes" \
    > tmp-mlib.h; \
else \
  /bin/sh /home/jbglaw/repos/gcc/gcc/genmultilib '' '' '' '' '' '' '' '' \
    "" '' no \
    > tmp-mlib.h; \
fi
/home/jbglaw/repos/gcc/gcc/genmultilib[261]: shift: 0403-009 The specified
number is not valid for this command.
make[1]: *** [s-mlib] Error 1


That should either be empty, or contain as many elements (space-separated) as
the first argument. This is on gcc111, an AIX box using gcc/g++ as the
compiler, but AIX's /bin/sh, which errors out (while bash silently ignores the
wrong shift implied by the excess space in arg#2). Building is done like this:

jbglaw@jbarbeitsplatz:/tmp$ wget -q -O buildlog
'http://toolchain.lug-owl.de/buildbot/deliver_full_buildlog.php?mode=download&id=22842'
jbglaw@jbarbeitsplatz:/tmp$ grep '^BRBUILDLOG:command' buildlog |cut -f 3- -d
':' | grep -v '^br_'
/home/jbglaw/repos/binutils_gdb/configure
--prefix=/home/jbglaw/build/sh64-linux/_install_ --enable-gold=yes
--target=sh64-linux
make all-gold
make check-gold
make install-gold
/home/jbglaw/repos/binutils_gdb/configure
--prefix=/home/jbglaw/build/sh64-linux/_install_ --target=sh64-linux
make all-binutils all-ld all-gas all-gprof
make check-binutils check-ld check-gas check-gprof
make install-binutils install-ld install-gas install-gprof
/home/jbglaw/repos/gcc/configure
--prefix=/home/jbglaw/build/sh64-linux/_install_ --enable-languages=c,c++
--with-mpc=/opt/cfarm/mpc-latest --with-mpfr=/opt/cfarm/mpfr-latest
--with-gmp=/opt/cfarm/gmp-latest --target=sh64-linux --without-headers
--disable-threads
make all-gcc

(GOLD, the rest of binutils and GCC were each build in separate, empty
directories.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]