public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/28024]  New: libjava build failure on Solaris 2.8 (sun4u)
@ 2006-06-14  8:34 bob at digilink dot net
  2006-06-14 12:42 ` [Bug java/28024] " tromey at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bob at digilink dot net @ 2006-06-14  8:34 UTC (permalink / raw)
  To: gcc-bugs

New bootstrap build:

SunOS vs1 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-Enterprise

../gcc-4.1.1/configure --prefix=/opt --with-local-prefix=/opt/include
--with-cpu=ultrasparc

make -j CFLAGS='-O2' LIBCFLAGS='-O2' LIBCXXFLAGS='-O2 -fno-implicit-templates'
bootstrap

Well into the overall build, a failure occurs during java configure

Adding multilib support to Makefile in ../../../../gcc-4.1.1/libjava
with_multisubdir=sparcv9
configure: configuring in classpath
configure: running /bin/sh
'../../../../../gcc-4.1.1/libjava/classpath/configure' --prefix=/opt 
'--with-multisubdir=sparcv9' '--with-multisrctop='
'--cache-file=./config.cache' '--build=sparc-sun-solaris2.8'
'--host=sparc-sun-solaris2.8' '--target=sparc-sun-solaris2.8'
'--enable-multilib' '--prefix=/opt' '--with-local-prefix=/opt/include'
'--with-cpu=ultrasparc' '--enable-languages=c,c++,java,objc'
'--program-transform-name=s,y,y,' '--with-target-subdir=sparc-sun-solaris2.8'
'--srcdir=../../../gcc-4.1.1/libjava' 'CPPFLAGS='
'build_alias=sparc-sun-solaris2.8' 'host_alias=sparc-sun-solaris2.8'
'target_alias=sparc-sun-solaris2.8' '--disable-load-library' '--disable-debug'
'--enable-default-toolkit='
'--with-vm-classes=/lhome/gcc/gcc-4.1.1/libjava:/lhome/gcc/SunOS-5.8.sun4u/sparc-sun-solaris2.8/libjava'
'--disable-core-jni' '--disable-examples' '--with-glibj=build'
'--disable-gtk-peer' '--disable-qt-peer' '--enable-ltdl-convenience'
'--with-auxdir=/lhome/gcc/gcc-4.1.1' '-srcdir=../../../../gcc-4.1.1/libjava'
--disable-load-library --disable-debug --enable-default-toolkit=
--with-vm-classes=/lhome/gcc/gcc-4.1.1/libjava:/lhome/gcc/SunOS-5.8.sun4u/sparc-sun-solaris2.8/sparcv9/libjava
--disable-core-jni --disable-examples --with-glibj=build --disable-gtk-peer
--disable-qt-peer --with-auxdir=/lhome/gcc/gcc-4.1.1
--cache-file=.././config.cache
--srcdir=../../../../../gcc-4.1.1/libjava/classpath
../../../../../gcc-4.1.1/libjava/classpath/configure: syntax error at line
11740: `QT_INCLUDE_DIR=$' unexpected
configure: error: /bin/sh
'../../../../../gcc-4.1.1/libjava/classpath/configure' failed for classpath
make[2]: *** [configure-target-libjava] Error 1
make[2]: Leaving directory `/lhome/gcc/SunOS-5.8.sun4u'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/lhome/gcc/SunOS-5.8.sun4u'
make: *** [bootstrap] Error 2


-- 
           Summary: libjava build failure on Solaris 2.8 (sun4u)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bob at digilink dot net
 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=28024


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
@ 2006-06-14 12:42 ` tromey at gcc dot gnu dot org
  2006-06-14 13:47 ` cvs-commit at developer dot classpath dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-14 12:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tromey at gcc dot gnu dot org  2006-06-14 12:28 -------
Looks like classpath's configure uses the $(...) construct.
This isn't portable sh.
The fix is to replace with `...`


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-14 12:28:31
               date|                            |


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
  2006-06-14 12:42 ` [Bug java/28024] " tromey at gcc dot gnu dot org
@ 2006-06-14 13:47 ` cvs-commit at developer dot classpath dot org
  2006-06-14 13:48 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at developer dot classpath dot org @ 2006-06-14 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from cvs-commit at developer dot classpath dot org  2006-06-14 12:42 -------
Subject: Bug 28024

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Tom Tromey <tromey>     06/06/14 12:35:17

Modified files:
        .              : ChangeLog configure.ac 
        m4             : acinclude.m4 

Log message:
                PR java/28024:
                * m4/acinclude.m4 (REGEN_WITH_JAY): Use backquote, not $(...).
                * configure.ac (QT_INCLUDE_DIR): Use backquote, not $(...).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7807&r2=1.7808
http://cvs.savannah.gnu.org/viewcvs/classpath/configure.ac?cvsroot=classpath&r1=1.160&r2=1.161
http://cvs.savannah.gnu.org/viewcvs/classpath/m4/acinclude.m4?cvsroot=classpath&r1=1.11&r2=1.12

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.7807
retrieving revision 1.7808
diff -u -b -r1.7807 -r1.7808
--- ChangeLog   14 Jun 2006 11:01:25 -0000      1.7807
+++ ChangeLog   14 Jun 2006 12:35:16 -0000      1.7808
@@ -1,3 +1,9 @@
+2006-06-14  Tom Tromey  <tromey@redhat.com>
+
+       PR java/28024:
+       * m4/acinclude.m4 (REGEN_WITH_JAY): Use backquote, not $(...).
+       * configure.ac (QT_INCLUDE_DIR): Use backquote, not $(...).
+
 2006-06-14  Roman Kennke  <kennke@aicas.com>

        * javax/swing/JComponent.java

Index: configure.ac
===================================================================
RCS file: /cvsroot/classpath/classpath/configure.ac,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -b -r1.160 -r1.161
--- configure.ac        7 Jun 2006 15:09:39 -0000       1.160
+++ configure.ac        14 Jun 2006 12:35:17 -0000      1.161
@@ -438,7 +438,7 @@
     if test "x$HAVE_QT4" = "xyes"; then
       dnl Check needed because in some cases the QtGui includedir
       dnl doesn't contain the subsystem dir.
-      QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
+      QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
       EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
       AC_CHECK_FILE([$QT_INCLUDE_DIR/QWidget],
       AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]),

Index: m4/acinclude.m4
===================================================================
RCS file: /cvsroot/classpath/classpath/m4/acinclude.m4,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- m4/acinclude.m4     27 Mar 2006 17:47:29 -0000      1.11
+++ m4/acinclude.m4     14 Jun 2006 12:35:17 -0000      1.12
@@ -409,13 +409,13 @@
         AC_MSG_ERROR("jay executable not found");
       fi
     else
-      JAY_DIR_PATH=$(dirname "${withval}")
+      JAY_DIR_PATH=`dirname "${withval}"`
       JAY="${withval}"
       AC_SUBST(JAY)
     fi
     JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
     AC_CHECK_FILE(${JAY_SKELETON}, AC_SUBST(JAY_SKELETON),
-       AC_MSG_ERROR("Expected skeleton file in $(dirname ${withval})"))
+       AC_MSG_ERROR("Expected skeleton file in `dirname ${withval}`"))
     JAY_FOUND=yes
   ],
   [


-- 


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
  2006-06-14 12:42 ` [Bug java/28024] " tromey at gcc dot gnu dot org
  2006-06-14 13:47 ` cvs-commit at developer dot classpath dot org
@ 2006-06-14 13:48 ` tromey at gcc dot gnu dot org
  2006-06-14 14:00 ` tromey at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-14 13:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tromey at gcc dot gnu dot org  2006-06-14 13:46 -------
Subject: Bug 28024

Author: tromey
Date: Wed Jun 14 13:46:33 2006
New Revision: 114637

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114637
Log:
        PR java/28024:
        * aclocal.m4, configure: Rebuilt.
        * m4/acinclude.m4 (REGEN_WITH_JAY): Use backquote, not $(...).
        * configure.ac (QT_INCLUDE_DIR): Use backquote, not $(...).

Modified:
    branches/gcc-4_1-branch/libjava/classpath/ChangeLog.gcj
    branches/gcc-4_1-branch/libjava/classpath/aclocal.m4
    branches/gcc-4_1-branch/libjava/classpath/configure
    branches/gcc-4_1-branch/libjava/classpath/configure.ac
    branches/gcc-4_1-branch/libjava/classpath/m4/acinclude.m4


-- 


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
                   ` (2 preceding siblings ...)
  2006-06-14 13:48 ` tromey at gcc dot gnu dot org
@ 2006-06-14 14:00 ` tromey at gcc dot gnu dot org
  2006-06-14 14:05 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-14 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tromey at gcc dot gnu dot org  2006-06-14 13:56 -------
Subject: Bug 28024

Author: tromey
Date: Wed Jun 14 13:56:22 2006
New Revision: 114639

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114639
Log:
        PR java/28024:
        * aclocal.m4, configure: Rebuilt.
        * m4/acinclude.m4 (REGEN_WITH_JAY): Use backquote, not $(...).
        * configure.ac (QT_INCLUDE_DIR): Use backquote, not $(...).

Modified:
    trunk/libjava/classpath/ChangeLog.gcj
    trunk/libjava/classpath/aclocal.m4
    trunk/libjava/classpath/configure
    trunk/libjava/classpath/configure.ac
    trunk/libjava/classpath/m4/acinclude.m4


-- 


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
                   ` (3 preceding siblings ...)
  2006-06-14 14:00 ` tromey at gcc dot gnu dot org
@ 2006-06-14 14:05 ` tromey at gcc dot gnu dot org
  2006-06-15 12:36 ` ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-14 14:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tromey at gcc dot gnu dot org  2006-06-14 14:00 -------
Thanks for the report.
I fixed this problem.  But, as I don't have a Solaris box,
I can't test whether this means that the build works.
Please update and try again :)


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.2


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
                   ` (4 preceding siblings ...)
  2006-06-14 14:05 ` tromey at gcc dot gnu dot org
@ 2006-06-15 12:36 ` ebotcazou at gcc dot gnu dot org
  2006-06-15 13:05 ` ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-06-15 12:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ebotcazou at gcc dot gnu dot org  2006-06-15 12:34 -------
> I fixed this problem.  But, as I don't have a Solaris box,
> I can't test whether this means that the build works.

This report was actually invalid, we don't support /bin/sh on Solaris.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
                   ` (5 preceding siblings ...)
  2006-06-15 12:36 ` ebotcazou at gcc dot gnu dot org
@ 2006-06-15 13:05 ` ebotcazou at gcc dot gnu dot org
  2006-06-16  9:24 ` bob at digilink dot net
  2006-06-16  9:28 ` ebotcazou at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-06-15 13:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ebotcazou at gcc dot gnu dot org  2006-06-15 12:36 -------
See http://gcc.gnu.org/install/specific.html#x-x-solaris2


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
                   ` (6 preceding siblings ...)
  2006-06-15 13:05 ` ebotcazou at gcc dot gnu dot org
@ 2006-06-16  9:24 ` bob at digilink dot net
  2006-06-16  9:28 ` ebotcazou at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: bob at digilink dot net @ 2006-06-16  9:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from bob at digilink dot net  2006-06-16 09:13 -------
(In reply to comment #6)
> > I fixed this problem.  But, as I don't have a Solaris box,
> > I can't test whether this means that the build works.
> 
> This report was actually invalid, we don't support /bin/sh on Solaris.
> 

I would like to thank Tom for the amazingly fast response to this bug - and to
also apologize for the fact that I have been unable to actually test his fix
yet.

Given that the problem is solvable, it seems more than just a little odd that
your reply is "We don't support /bin/sh on Solaris"

My simple question is why not support /bin/sh on Solaris?

Having to specify the shell for the config script is more than a little obtuse
given that I haven't encountered a single open source software package that
requires this and I have been dealing with open source software for the last
13+ years on Solaris. I thought that I had read all of the Solaris notes for
building 4.1.1 but even with that effort I missed the link you pointed me to.
gcc 4.1.1 for c and c++ compile just fine with /bin/sh for Solaris. If java is
going to be 'different' then it should not be included as a standard build
language. I don't need it and I'm fairly certain the majority of people
building gcc don't need it.

If the compatibility with /bin/sh can be solved, why not. The result will be
less hassle with bugs like this being filed.


-- 


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


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

* [Bug java/28024] libjava build failure on Solaris 2.8 (sun4u)
  2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
                   ` (7 preceding siblings ...)
  2006-06-16  9:24 ` bob at digilink dot net
@ 2006-06-16  9:28 ` ebotcazou at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-06-16  9:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from ebotcazou at gcc dot gnu dot org  2006-06-16 09:24 -------
> My simple question is why not support /bin/sh on Solaris?

Because we're not in the business of working around bugs in antiquated shells.


-- 


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


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

end of thread, other threads:[~2006-06-16  9:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-14  8:34 [Bug java/28024] New: libjava build failure on Solaris 2.8 (sun4u) bob at digilink dot net
2006-06-14 12:42 ` [Bug java/28024] " tromey at gcc dot gnu dot org
2006-06-14 13:47 ` cvs-commit at developer dot classpath dot org
2006-06-14 13:48 ` tromey at gcc dot gnu dot org
2006-06-14 14:00 ` tromey at gcc dot gnu dot org
2006-06-14 14:05 ` tromey at gcc dot gnu dot org
2006-06-15 12:36 ` ebotcazou at gcc dot gnu dot org
2006-06-15 13:05 ` ebotcazou at gcc dot gnu dot org
2006-06-16  9:24 ` bob at digilink dot net
2006-06-16  9:28 ` ebotcazou 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).