This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure to build gcc cvs HEAD 20030601: c-opts.c:163: `OPT_xxxundeclared


On Sun, 1 Jun 2003, Christian Joensson wrote:

> right, the /usr/bin/sort is not there...
> 
> /bin/sh /usr/local/src/trunk/gcc-binutils/gcc/opts.sh c-options.c c-options.h /usr/local/src/trunk/gcc-binutils/gcc/c.opt
> /usr/local/src/trunk/gcc-binutils/gcc/opts.sh: line 33: /usr/bin/sort: No such file or directory
> /bin/sh /usr/local/src/trunk/gcc-binutils/gcc/opts.sh c-options.c c-options.h /usr/local/src/trunk/gcc-binutils/gcc/c.opt
> /usr/local/src/trunk/gcc-binutils/gcc/opts.sh: line 33: /usr/bin/sort: No such file or directory

So there's a second bug here: that the missing sort didn't cause the build
to fail immediately.  Normally shell scripts (including miniature scripts
embedded in Makefiles) should use "set -e" to exit with error status on
any error; that doesn't work properly with pipelines so this script needs
more careful error checks or to change the pipeline into use of temporary
files.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]