summaryrefslogtreecommitdiff
path: root/usr/src/tools
diff options
context:
space:
mode:
authorPaul Dagnelie <pcd@delphix.com>2017-10-27 14:26:53 -0700
committerPrakash Surya <prakash.surya@delphix.com>2017-11-22 12:07:05 -0800
commitd1c3d93af2b0ea9ce0e658a1baa771aafbd5aafe (patch)
tree0b23270f56133b791b39debbae9983c8f4fcbd7d /usr/src/tools
parentfb3b6bbf2c922827ddf076fbf2172d96c58a71de (diff)
downloadillumos-gate-d1c3d93af2b0ea9ce0e658a1baa771aafbd5aafe.tar.gz
8753 linker errors don't show up in the "mail_msg" file
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com> Reviewed by: Prashanth Sreenivasa <pks@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Dan McDonald <danmcd@joyent.com> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/tools')
-rw-r--r--usr/src/tools/scripts/nightly.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/src/tools/scripts/nightly.sh b/usr/src/tools/scripts/nightly.sh
index 3f4f45b6dd..3da3dd3e42 100644
--- a/usr/src/tools/scripts/nightly.sh
+++ b/usr/src/tools/scripts/nightly.sh
@@ -25,6 +25,7 @@
# Copyright 2008, 2010, Richard Lowe
# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
# Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
+# Copyright (c) 2017 by Delphix. All rights reserved.
#
# Based on the nightly script from the integration folks,
# Mostly modified and owned by mike_s.
@@ -196,11 +197,13 @@ function build {
echo "\n==== Build errors ($LABEL) ====\n" >> $mail_msg_file
egrep ":" $SRC/${INSTALLOG}.out |
- egrep -e "(^${MAKE}:|[ ]error[: \n])" | \
- egrep -v "Ignoring unknown host" | \
- egrep -v "cc .* -o error " | \
- egrep -v "warning" | tee $TMPDIR/build_errs${SUFFIX} \
- >> $mail_msg_file
+ egrep -e "(^${MAKE}:|[ ]error[: \n])" | \
+ egrep -v "Ignoring unknown host" | \
+ egrep -v "cc .* -o error " | \
+ egrep -v "warning" | tee $TMPDIR/build_errs${SUFFIX} \
+ >> $mail_msg_file
+ sed -n "/^Undefined[ ]*first referenced$/,/^ld: fatal:/p" \
+ < $SRC/${INSTALLOG}.out >> $mail_msg_file
if [[ -s $TMPDIR/build_errs${SUFFIX} ]]; then
build_ok=n
this_build_ok=n