[LLVMbugs] [Bug 7380] New: /bin/sh: test: unknown operator -ot

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 15 03:04:33 PDT 2010


           Summary: /bin/sh: test: unknown operator -ot
           Product: Build scripts
           Version: trunk
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: llvm at sishbi.me.uk
                CC: llvmbugs at cs.uiuc.edu

When building llvm trunk on Solaris 10 x86 I encountered the following error:
/bin/sh: test: unknown operator -ot

This is caused by /bin/sh 'test' built-in not recognising the '-ot' option -
referenced in top-level Makefile.rules

This error can be fixed by replacing:
[ <file1> -ot <file2 ]
/usr/bin/test <file1> -ot <file2>

This will explicitly use the command instead of the shell built-in.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list