http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49511
Summary: [4.6 Regression] acats test setup fails on HP-UX using posix shell Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: dang...@gcc.gnu.org CC: r...@gcc.gnu.org Host: hppa1.1-hp-hpux10.20 Target: hppa1.1-hp-hpux10.20 Build: hppa1.1-hp-hpux10.20 make[3]: Leaving directory `/xxx/gnu/gcc/objdir/gcc' dirname: extra operand `is' Try `dirname --help' for more information. dirname: extra operand `is' Try `dirname --help' for more information. Test Run By dave on Wed Jun 22 20:01:45 EDT 2011 === acats configuration === target gcc is /xxx/gnu/gcc/objdir/gcc/xgcc -B/xxx/gnu/gcc/objdir/gcc/ Reading specs from /xxx/gnu/gcc/objdir/gcc/specs COLLECT_GCC=/xxx/gnu/gcc/objdir/gcc/xgcc COLLECT_LTO_WRAPPER=/xxx/gnu/gcc/objdir/gcc/lto-wrapper Target: hppa1.1-hp-hpux10.20 Configured with: ../gcc/configure --with-gnu-as --with-as=/usr/local/bin/as --enable-shared --prefix=/opt/gnu/gcc/gcc-4.6 --with-gmp=/opt/gnu/gcc/gmp --enable-debug=no --disable-nls --enable-languages=c,c++,objc,fortran,ada,obj-c++ Thread model: single gcc version 4.6.1 20110619 (prerelease) [gcc-4_6-branch revision 175188] (GCC) host=hppa1.1-hp-hpux10.20 target=hppa1.1-hp-hpux10.20 gnatmake is /xxx/gnu/gcc/objdir/gcc/gnatmake === acats support === Generating support files...fatal error, run-time library not installed correctly cannot locate file system.ads gnatmake: *** make failed. **** Failed to compile macrosub make[2]: *** [check-acats] Error 1 Problem was introduce in revision 158994. The problem is type invokes the sh-posix shell and it aliases type to 'whence -v'. 599 (hiauly1)dave> /bin/sh $ whence -v gnatmake gnatmake is /opt/gnu/gcc/gcc-4.5/bin/gnatmake $ whence gnatmake /opt/gnu/gcc/gcc-4.5/bin/gnatmake It appears the same would also occur on HP-UX 11.X but there I have always used bash as the CONFIG_SHELL. -bash-3.2$ type -p ls /usr/bin/ls -bash-3.2$ /usr/bin/sh $ type -p ls ls is /usr/bin/ls