From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6831 invoked by alias); 24 Oct 2013 21:19:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6788 invoked by uid 48); 24 Oct 2013 21:19:02 -0000 From: "jbglaw@lug-owl.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58866] New: sh64: Wrong genmultilib invocation Date: Thu, 24 Oct 2013 21:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jbglaw@lug-owl.de X-Bugzilla-Status: UNCONFIRMED 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01792.txt.bz2 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.)