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 testsuite/38739] New: gcc 4.4.0 20090104 - contrib/test_summary - On Solaris /bin/sh uses ksh, gawk fails


I'm running OpenSolaris 2008.11 and built gcc 4.4, after running
"make -i check" I wanted to mail the result.


# /usr/share/src/gcc_trunk/contrib/test_summary -t > mail.txt
gawk: cmd. line:50: { next; }
gawk: cmd. line:50:         ^ `next' used in END action
gawk: cmd. line:51: { next; }
gawk: cmd. line:51:          ^ unexpected newline or end of string


I edited "contrib/test_summary" and changed the first line to: #! /bin/bash
Now it works correctly. On Solaris "/bin/sh" is ksh (for a reason).


# ls -l /bin/sh
lrwxrwxrwx 1 root root 13 Nov 27 14:21 /bin/sh -> ../../sbin/sh

# ls -l /sbin/sh
lrwxrwxrwx 1 root root 20 Nov 27 14:10 /sbin/sh -> ../usr/bin/i86/ksh93

# ls -l /usr/bin/i86/ksh93 
-r-xr-xr-x 2 root bin 8224 Nov 19 23:43 /usr/bin/i86/ksh93


-- 
           Summary: gcc 4.4.0 20090104 - contrib/test_summary - On Solaris
                    /bin/sh uses ksh, gawk fails
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i386-pc-solaris2.11
  GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11


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


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