public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/32045]  New: unknown option -e for test command in gen-classlist.sh
@ 2007-05-22 17:10 Andre dot Schneider at eas dot iis dot fraunhofer dot de
  2007-05-22 17:36 ` [Bug java/32045] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andre dot Schneider at eas dot iis dot fraunhofer dot de @ 2007-05-22 17:10 UTC (permalink / raw)
  To: java-prs

The shell script libjava/classpath/lib/gen-classlist.sh uses "test -e" which is
not supported in a regular Solaris /bin/sh.

Work-around: 

- comment out lines 58 and 66 in gen-classlist.sh
- substitute option -e with -f at line 98 in gen-classlist.sh


-- 
           Summary: unknown option -e for test command in gen-classlist.sh
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Andre dot Schneider at eas dot iis dot fraunhofer dot de
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32045


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/32045] unknown option -e for test command in gen-classlist.sh
  2007-05-22 17:10 [Bug java/32045] New: unknown option -e for test command in gen-classlist.sh Andre dot Schneider at eas dot iis dot fraunhofer dot de
@ 2007-05-22 17:36 ` pinskia at gcc dot gnu dot org
  2007-05-22 21:47 ` André Schneider <Andre dot Schneider at eas dot iis dot fraunhofer dot de>
  2007-05-22 21:52 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-22 17:36 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-05-22 18:36 -------
You did not follow the instructions on installation
(http://gcc.gnu.org/install/):

The Solaris 2 /bin/sh will often fail to configure libstdc++-v3, boehm-gc or
libjava. We therefore recommend using the following initial sequence of
commands

        % CONFIG_SHELL=/bin/ksh
        % export CONFIG_SHELL
and proceed as described in the configure instructions. In addition we strongly
recommend specifying an absolute path to invoke srcdir/configure.


test -e is part of POSIX already, just solaris's /bin/sh's builtin for test
does not support it (read the man page for test further information).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32045


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/32045] unknown option -e for test command in gen-classlist.sh
  2007-05-22 17:10 [Bug java/32045] New: unknown option -e for test command in gen-classlist.sh Andre dot Schneider at eas dot iis dot fraunhofer dot de
  2007-05-22 17:36 ` [Bug java/32045] " pinskia at gcc dot gnu dot org
@ 2007-05-22 21:47 ` André Schneider <Andre dot Schneider at eas dot iis dot fraunhofer dot de>
  2007-05-22 21:52 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: André Schneider <Andre dot Schneider at eas dot iis dot fraunhofer dot de> @ 2007-05-22 21:47 UTC (permalink / raw)
  To: java-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1712 bytes --]



------- Comment #2 from =?ISO-8859-1?Q?Andr=E9_Schneider?=
 <Andre dot Schneider at eas dot iis dot fraunhofer dot de>  2007-05-22 22:47 -------
Subject: Re:  unknown option -e for test command in gen-classlist.sh

pinskia at gcc dot gnu dot org wrote:
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2007-05-22 18:36 -------
> You did not follow the instructions on installation
> (http://gcc.gnu.org/install/):

Sorry, but I have installed all GCC versions since 1993 without
any problems for SunOS, Solaris, Linux, and Windows.

Why is the -e option for test command SO IMPORTANT that you break
with a long and stable tradition?

> 
> The Solaris 2 /bin/sh will often fail to configure libstdc++-v3, boehm-gc or
> libjava. We therefore recommend using the following initial sequence of
> commands
> 
>         % CONFIG_SHELL=/bin/ksh
>         % export CONFIG_SHELL
> and proceed as described in the configure instructions. In addition we strongly
> recommend specifying an absolute path to invoke srcdir/configure.
> 
> 
> test -e is part of POSIX already, just solaris's /bin/sh's builtin for test
> does not support it (read the man page for test further information).
> 

Most of the install scripts are so trivial that there is no
need for "special" or tricky options or scripts.

I guess the next GCC version will add new hints and readme's ...
A nightmare for administrators.

A better solution would be: keep it as simple as possible.
"small is beautiful".

Nevertheless, thanks a lot for new GCC version with OpenMP support!!!

/André

--
Fraunhofer Institute for Integrated Circuits
Design Automation Division
Dresden, Germany


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32045


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/32045] unknown option -e for test command in gen-classlist.sh
  2007-05-22 17:10 [Bug java/32045] New: unknown option -e for test command in gen-classlist.sh Andre dot Schneider at eas dot iis dot fraunhofer dot de
  2007-05-22 17:36 ` [Bug java/32045] " pinskia at gcc dot gnu dot org
  2007-05-22 21:47 ` André Schneider <Andre dot Schneider at eas dot iis dot fraunhofer dot de>
@ 2007-05-22 21:52 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-22 21:52 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-05-22 22:52 -------
> I guess the next GCC version will add new hints and readme's ...
> A nightmare for administrators.

This has been true since at least 3.3 so I don't understand why you think this
is a new problem.  Solaris's /bin/sh is not a POSIX shell so it is hard to
produce portable code to a non standard shell.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32045


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-22 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-22 17:10 [Bug java/32045] New: unknown option -e for test command in gen-classlist.sh Andre dot Schneider at eas dot iis dot fraunhofer dot de
2007-05-22 17:36 ` [Bug java/32045] " pinskia at gcc dot gnu dot org
2007-05-22 21:47 ` André Schneider <Andre dot Schneider at eas dot iis dot fraunhofer dot de>
2007-05-22 21:52 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).