Print this page
9128 cw(1onbld) should be able to run multiple shadows
9129 file-locking tests shouldn't build multiple source files in one compiler invocation
9130 DTrace tst.gcc.d isn't useful
9132 cw(1onbld) shouldn't shadow pure preprocessing
Reviewed by: Andy Fiddaman <omnios@citrus-it.net>


1656 echo | tee -a $build_environ_file >> $LOGFILE
1657 
1658 # make
1659 whence $MAKE | tee -a $build_environ_file >> $LOGFILE
1660 $MAKE -v | tee -a $build_environ_file >> $LOGFILE
1661 echo "number of concurrent jobs = $DMAKE_MAX_JOBS" |
1662     tee -a $build_environ_file >> $LOGFILE
1663 
1664 #
1665 # Report the compiler versions.
1666 #
1667 
1668 if [[ ! -f $SRC/Makefile ]]; then
1669         build_ok=n
1670         echo "\nUnable to find \"Makefile\" in $SRC." | \
1671             tee -a $build_environ_file >> $LOGFILE
1672         exit 1
1673 fi
1674 
1675 ( cd $SRC
1676   for target in cc-version cc64-version java-version openssl-version; do
1677         echo
1678         #
1679         # Put statefile somewhere we know we can write to rather than trip
1680         # over a read-only $srcroot.
1681         #
1682         rm -f $TMPDIR/make-state
1683         export SRC
1684         if $MAKE -K $TMPDIR/make-state -e $target 2>/dev/null; then
1685                 continue
1686         fi
1687         touch $TMPDIR/nocompiler
1688   done
1689   echo
1690 ) | tee -a $build_environ_file >> $LOGFILE
1691 
1692 if [ -f $TMPDIR/nocompiler ]; then
1693         rm -f $TMPDIR/nocompiler
1694         build_ok=n
1695         echo "Aborting due to missing compiler." |
1696                 tee -a $build_environ_file >> $LOGFILE




1656 echo | tee -a $build_environ_file >> $LOGFILE
1657 
1658 # make
1659 whence $MAKE | tee -a $build_environ_file >> $LOGFILE
1660 $MAKE -v | tee -a $build_environ_file >> $LOGFILE
1661 echo "number of concurrent jobs = $DMAKE_MAX_JOBS" |
1662     tee -a $build_environ_file >> $LOGFILE
1663 
1664 #
1665 # Report the compiler versions.
1666 #
1667 
1668 if [[ ! -f $SRC/Makefile ]]; then
1669         build_ok=n
1670         echo "\nUnable to find \"Makefile\" in $SRC." | \
1671             tee -a $build_environ_file >> $LOGFILE
1672         exit 1
1673 fi
1674 
1675 ( cd $SRC
1676   for target in cc-version java-version openssl-version; do
1677         echo
1678         #
1679         # Put statefile somewhere we know we can write to rather than trip
1680         # over a read-only $srcroot.
1681         #
1682         rm -f $TMPDIR/make-state
1683         export SRC
1684         if $MAKE -K $TMPDIR/make-state -e $target 2>/dev/null; then
1685                 continue
1686         fi
1687         touch $TMPDIR/nocompiler
1688   done
1689   echo
1690 ) | tee -a $build_environ_file >> $LOGFILE
1691 
1692 if [ -f $TMPDIR/nocompiler ]; then
1693         rm -f $TMPDIR/nocompiler
1694         build_ok=n
1695         echo "Aborting due to missing compiler." |
1696                 tee -a $build_environ_file >> $LOGFILE