From: andersen at uclibc.org <andersen@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/toolchain/dependencies
Date: Tue, 12 Dec 2006 23:21:17 -0800 (PST) [thread overview]
Message-ID: <20061213072117.451F948574@busybox.net> (raw)
Author: andersen
Date: 2006-12-12 23:21:16 -0800 (Tue, 12 Dec 2006)
New Revision: 16874
Log:
add checks for when people have foolishly set things in their enviroment
such as CC, CFLAGS, etc that will cause buildroot to break
Modified:
trunk/buildroot/toolchain/dependencies/dependencies.sh
Changeset:
Modified: trunk/buildroot/toolchain/dependencies/dependencies.sh
===================================================================
--- trunk/buildroot/toolchain/dependencies/dependencies.sh 2006-12-13 07:19:58 UTC (rev 16873)
+++ trunk/buildroot/toolchain/dependencies/dependencies.sh 2006-12-13 07:21:16 UTC (rev 16874)
@@ -5,8 +5,58 @@
echo ""
echo "Checking build system dependencies:"
+
#############################################################
#
+# check build system 'environment'
+#
+#############################################################
+if test -n "$CC" ; then
+ echo "CC clean: FALSE"
+ /bin/echo -e "\n\nYou must run 'unset CC' so buildroot can run with";
+ /bin/echo -e "a clean enviroment on your build machine\n";
+ exit 1;
+fi;
+echo "CC clean: Ok"
+
+
+if test -n "$CXX" ; then
+ echo "CXX clean: FALSE"
+ /bin/echo -e "\n\nYou must run 'unset CXX' so buildroot can run with";
+ /bin/echo -e "a clean enviroment on your build machine\n";
+ exit 1;
+fi;
+echo "CXX clean: Ok"
+
+
+if test -n "$CPP" ; then
+ echo "CPP clean: FALSE"
+ /bin/echo -e "\n\nYou must run 'unset CPP' so buildroot can run with";
+ /bin/echo -e "a clean enviroment on your build machine\n";
+ exit 1;
+fi;
+echo "CPP clean: Ok"
+
+
+if test -n "$CXXFLAGS" ; then
+ echo "CXXFLAGS clean: FALSE"
+ /bin/echo -e "\n\nYou must run 'unset CXXFLAGS' so buildroot can run with";
+ /bin/echo -e "a clean enviroment on your build machine\n";
+ exit 1;
+fi;
+echo "CXXFLAGS clean: Ok"
+
+
+if test -n "$CXXFLAGS" ; then
+ echo "CXXFLAGS clean: FALSE"
+ /bin/echo -e "\n\nYou must run 'unset CXXFLAGS' so buildroot can run with";
+ /bin/echo -e "a clean enviroment on your build machine\n";
+ exit 1;
+fi;
+echo "CXXFLAGS clean: Ok"
+
+#############################################################
+#
# check build system 'sed'
#
#############################################################
@@ -22,9 +72,9 @@
echo "HELLO" > .sedtest
$SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1
if test $? != 0 ; then
- echo "sed works: No, using buildroot version instead"
+ echo "sed works: No, using buildroot version instead"
else
- echo "sed works: Ok"
+ echo "sed works: Ok"
fi
XSED=$HOST_SED_DIR/bin/sed
@@ -38,7 +88,7 @@
/bin/echo -e "\n\nYou must install 'which' on your build machine\n";
exit 1;
fi;
-echo "which installed: Ok"
+echo "which installed: Ok"
#############################################################
@@ -64,7 +114,7 @@
echo "You have make '$MAKE_VERSION' installed. GNU make >=3.80 is required"
exit 1;
fi;
-echo "GNU make version '$MAKE_VERSION': Ok"
+echo "GNU make version '$MAKE_VERSION': Ok"
@@ -96,7 +146,7 @@
exit 1;
fi;
echo "C compiler '$COMPILER'"
-echo "C compiler version '$COMPILER_VERSION': Ok"
+echo "C compiler version '$COMPILER_VERSION': Ok"
@@ -110,7 +160,7 @@
/bin/echo -e "\n\nYou must install 'bison' on your build machine\n";
exit 1;
fi;
-echo "bison installed: Ok"
+echo "bison installed: Ok"
#############################################################
@@ -123,7 +173,7 @@
/bin/echo -e "\n\nYou must install 'flex' on your build machine\n";
exit 1;
fi;
-echo "flex installed: Ok"
+echo "flex installed: Ok"
#############################################################
@@ -136,7 +186,7 @@
/bin/echo -e "\n\nYou must install 'gettext' on your build machine\n"; \
exit 1; \
fi;
-echo "gettext installed: Ok"
+echo "gettext installed: Ok"
@@ -147,6 +197,6 @@
# All done
#
#############################################################
-echo "Build system dependencies: Ok"
+echo "Build system dependencies: Ok"
echo ""
next reply other threads:[~2006-12-13 7:21 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 7:21 andersen at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-01 21:20 [Buildroot] svn commit: trunk/buildroot/toolchain/dependencies jacmet at uclibc.org
2008-09-04 2:30 hamish at uclibc.org
2008-06-18 13:11 jacmet at uclibc.org
2007-08-21 20:14 aldot at uclibc.org
2007-08-21 20:12 ` Ulf Samuelsson
2007-08-21 20:25 ` Bernhard Fischer
2007-08-21 20:58 ` Ulf Samuelsson
2007-08-21 23:13 ` Bernhard Fischer
2007-08-22 3:46 ` Ulf Samuelsson
2007-06-26 13:26 aldot at uclibc.org
2007-06-05 7:38 aldot at uclibc.org
2007-05-11 12:50 aldot at uclibc.org
2007-03-21 18:15 aldot at uclibc.org
2007-03-21 10:54 aldot at uclibc.org
2007-03-12 8:55 aldot at uclibc.org
2007-03-08 16:44 aldot at uclibc.org
2007-02-16 9:34 aldot at uclibc.org
2007-02-15 14:30 aldot at uclibc.org
2007-02-15 14:07 aldot at uclibc.org
2007-02-12 10:42 aldot at uclibc.org
2007-02-09 17:28 aldot at uclibc.org
2007-02-09 12:32 aldot at uclibc.org
2007-01-21 22:31 aldot at uclibc.org
2007-01-20 13:06 aldot at uclibc.org
2007-01-19 17:11 aldot at uclibc.org
2006-12-13 9:17 aldot at uclibc.org
2006-12-13 7:25 andersen at uclibc.org
2006-11-29 10:39 aldot at uclibc.org
2006-11-28 10:06 aldot at uclibc.org
2006-07-18 16:54 andersen
2006-07-18 16:42 andersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061213072117.451F948574@busybox.net \
--to=andersen@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox