This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++-v3 configuration and check problems under hpux 10.20
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: libstdc++-v3 configuration and check problems under hpux 10.20
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Wed, 21 Feb 2001 16:41:33 -0500
- Cc: law at redhat dot com, dave at hiauly1 dot hia dot nrc dot ca, gdr at codesourcery dot com
> > 2) mkcheck fails with an error (see below).
> Yea, looks like some kind of shell syntax error. But I haven't looked
> at it (and I'm not really planning to right now).
The problem is the last line in V3's tests_flags script, which assumes that
passing -n to echo will suppress the newline. On OS'es where the /bin/sh
is weird, or the echo isn't builtin and conforming, or the external binary
isn't conforming -- at least I think -n is a conformance requirement --
the -n isn't interpreted by 'echo' as a flag. It gets included in the
string being echo'ed.
The mkcheck script is doing
set `tests_flags stuff`
and the -n is at the beginning of the string. So it gets passed back up
and interpreted by 'set' instead.
There are three or four ways around this, but I don't know which is
preferred here.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.