[Buildroot] [Fwd: Re: I apologize for asking...]
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090224/be4af0ad/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ShinsMail.png
Type: image/png
Size: 7620 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090224/be4af0ad/attachment-0001.png>
-------------- next part --------------
An embedded message was scrubbed...
From: Andrew Wiley <[email protected]>
Subject: Re: [Buildroot] I apologize for asking...
Date: Mon, 23 Feb 2009 19:58:26 -0600
Size: 4157
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090224/be4af0ad/attachment-0001.eml>
Quoted 8 lines · Xavian-Anderson Macpherson
Andrew,
Thanks for writing back. The reason why I didn't try just running "unset CFLAGS" is twofold. 1. When I ran "which unset" nothing came come up. That being the case, I didn't think it would work. 2. I was really afraid it might screw up my system, if it wasn't meant to be run on my system. I was thinking this should only apply to the buildroot system. So, now I will try it.
unset isn't a real command, it's built in to your shell. Somehow this environment variable is getting set, and buildroot wants it cleared. I don't know if buildroot starts its own shell or what, but this is getting set somehow somewhere. Because unsetting the variable only affects the shell you're currently in, it can't screw up your system. If you unset it in one shell, then launch another, the setting will be back in the new shell.
Quoted 10 lines
Ok. I just ran the command in a shell. Nothing changes. I have the same result as before. I will try moving this into a chroot I've built, and see if I get a different result.
I have tested this in a chroot, and I still get the same result. Took a long to complete building the dependencies for the chroot. But once it was done, nothing changes.
I'm guessing that somewhere in a folder (generally /etc/profile.d), your distribution has a bunch of scripts that are run to set up environment variables. You may need to go through these scripts and comment out CFLAGS, but hopefully someone from the Buildroot devs has a better suggestion. I may be missing something, but I'm pretty sure that when you run unset and it has no effect, it means Buildroot is starting a new shell somewhere, which is somehow getting that variable back.
Andrew Wiley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090224/aaaf66bf/attachment.htm>
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090225/832f8b59/attachment.htm>
I created your problem and fixed it using the method described earlier. A transcript follows...
Are you using bash for your shell?
emalkowski at eric-lnx:/local/emalkowski/buildroot$ export CFLAGS=blah emalkowski at eric-lnx:/local/emalkowski/buildroot$ make
Checking build system dependencies:
BUILDROOT_DL_DIR clean: Ok CC clean: Ok CXX clean: Ok CPP clean: Ok CFLAGS clean: FALSE
You must run 'unset CFLAGS' so buildroot can run with a clean environment on your build machine
make: *** [dependencies] Error 1
emalkowski at eric-lnx:/local/emalkowski/buildroot$ env | grep CFLAGS CFLAGS=blah
emalkowski at eric-lnx:/local/emalkowski/buildroot$ unset CFLAGS emalkowski at eric-lnx:/local/emalkowski/buildroot$ env | grep CFL emalkowski at eric-lnx:/local/emalkowski/buildroot$ make
Checking build system dependencies:
BUILDROOT_DL_DIR clean: Ok CC clean: Ok CXX clean: Ok CPP clean: Ok CFLAGS clean: Ok INCLUDES clean: Ok CXXFLAGS clean: Ok which installed: Ok sed works: Ok (/bin/sed)
GNU make version '3.81': Ok
C compiler '/usr/bin/gcc'
C compiler version '4.1.1': Ok
C++ compiler '/usr/bin/g++'
C++ compiler version '4.1.1': Ok awk installed: Ok bash installed: Ok bison installed: Ok flex installed: Ok gettext installed: Ok makeinfo installed: Ok Build system dependencies: Ok
rm -rf /local/emalkowski/buildroot/project_build_i586/vehicle_manager/buildro ot-config
mkdir -p /local/emalkowski/buildroot/project_build_i586/vehicle_manager cp -dpRf package/config/buildroot-config /local/emalkowski/buildroot/project_ build_i586/vehicle_manager/buildroot-config
<< snip >>
Quoted 12 lines · Xavian-Anderson Macpherson
Would some one please just make a utility to "unset CFLAGS", so that I can get this to work. Maybe provide a setting from within buildroot itself to set this properly. Nothing I do can get this to work.
Xavian-Anderson Macpherson
Shingoshi
------------------------------------------------------------------------_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot