When building gcc-4.1.1 with the following configuration:

../gcc-4.1.1/configure   --prefix=/opt --with-local-prefix=/opt/include
--with-cpu=ultrasparc --enable-languages=c,c++,java

The build fails to build libjava with the following error:

Adding multilib support to Makefile in /lhome/gcc/gcc-4.1.1/libjava
with_multisubdir=sparcv9
configure: configuring in classpath
configure: running /bin/sh '/lhome/gcc/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'
'--program-transform-name=s,y,y,' '--with-target-subdir=sparc-sun-solaris2.8'
'--srcdir=/lhome/gcc/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=/lhome/gcc/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=/lhome/gcc/gcc-4.1.1/libjava/classpath
/lhome/gcc/gcc-4.1.1/libjava/classpath/configure: syntax error at line 11740:
`QT_INCLUDE_DIR=$' unexpected
configure: error: /bin/sh '/lhome/gcc/gcc-4.1.1/libjava/classpath/configure'
failed for classpath
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `/lhome/gcc/SunOS-5.8.sun4u'
make: *** [all] Error 2

I have had no trouble building for just C and C++


-- 
           Summary: gcc-4.1.1 fails to build with java language on Solaris
                    2.8
           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
  GCC host triplet: sparc-sun-solaris2.8-gcc
GCC target triplet: sparc-sun-solaris2.8-gcc


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

Reply via email to