* Problem building gcc 4.2.2 on SunOS 5.9
@ 2007-12-19 9:42 Thomas Mittelstaedt
2007-12-20 10:15 ` Problem building gcc 4.2.2 on SunOS 5.9, resolved Thomas Mittelstaedt
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Mittelstaedt @ 2007-12-19 9:42 UTC (permalink / raw)
To: gcc-help
Hallo,
I build with the following:
../configure --prefix=/opt/gcc-4.2.2
--enable-version-specific-runtime-libs --enable-static --enable-shared
--disable-nls --with-gnu-ld --with-build-time-tools=/opt/gcc-4.1/bin/
--enable-languages=c,c++,java,objc,obj-c++
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap
make[6]: Entering directory
`/localbuild/gcc-4.2.2/.obj/sparc-sun-solaris2.9/sparcv9/libjava/classpath/tools'
mkdir -p classes/gnu/classpath/tools/giop/grmic/templates
mkdir -p classes/gnu/classpath/tools/rmi/rmic/templates
mkdir -p classes/gnu/classpath/tools/appletviewer
mkdir -p classes/gnu/classpath/tools/jarsigner
mkdir -p classes/gnu/classpath/tools/keytool
cp
../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/templates/*.jav
classes/gnu/classpath/tools/rmi/rmic/templates
cp
../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/grmic/templates/*.jav
classes/gnu/classpath/tools/giop/grmic/templates
cp
../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/*.txt
classes/gnu/classpath/tools/rmi/
cp
../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/*.txt
classes/gnu/classpath/tools/giop/
/localbuild/gcc-4.2.2/.obj/./gcc/gcj -B/localbuild/gcc-4.2.2/.obj/./gcc/
-B/opt/gcc-4.2.2/sparc-sun-solaris2.9/bin/
-B/opt/gcc-4.2.2/sparc-sun-solaris2.9/lib/ -isystem
/opt/gcc-4.2.2/sparc-sun-solaris2.9/include -isystem
/opt/gcc-4.2.2/sparc-sun-solaris2.9/sys-include -m64 -encoding UTF-8
--bootclasspath '../lib':'../lib/glibj.zip' --classpath . -C -d classes
../../../../../../libjava/classpath/tools/gnu/classpath/tools/*.java
../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*.java
../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*/*.java
../../../../../../libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:0:
error: Can't find default package 'java.lang'. Check the CLASSPATH
environment variable and the access to the archives
../../../../../../libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:43:
error: Class or interface 'java.io.InputStreamReader' not found in import.
I bootstrapped from version 4.1.
SunOS buildsun3 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1000
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem building gcc 4.2.2 on SunOS 5.9, resolved
2007-12-19 9:42 Problem building gcc 4.2.2 on SunOS 5.9 Thomas Mittelstaedt
@ 2007-12-20 10:15 ` Thomas Mittelstaedt
2007-12-20 10:24 ` Andrew Haley
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Mittelstaedt @ 2007-12-20 10:15 UTC (permalink / raw)
To: gcc-help
First, I created a build directory separate from the source tree, but I
also had to tell gcc explicitly to use
the installed gnu ld via --with-ld=/opt/gcc-4.1/bin/ld. Otherwise, the
system linker would be used.
../gcc-4.2.2/configure --prefix=/opt/gcc-4.2.2
--enable-version-specific-runtime-libs --enable-static --enable-shared
--disable-nls --with-gnu-as --with-as=/opt/gcc-4.1/bin/as --with-gnu-ld
--with-ld=/opt/gcc-4.1/bin/ld --with-build-time-tools=/opt/gcc-4.1/bin/
--enable-languages=c,c++,objc,obj-c++
Thomas Mittelstaedt schrieb:
> Hallo,
>
> I build with the following:
>
> ../configure --prefix=/opt/gcc-4.2.2
> --enable-version-specific-runtime-libs --enable-static --enable-shared
> --disable-nls --with-gnu-ld --with-build-time-tools=/opt/gcc-4.1/bin/
> --enable-languages=c,c++,java,objc,obj-c++
>
> make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
> -fno-implicit-templates' bootstrap
>
>
>
> make[6]: Entering directory
> `/localbuild/gcc-4.2.2/.obj/sparc-sun-solaris2.9/sparcv9/libjava/classpath/tools'
> mkdir -p classes/gnu/classpath/tools/giop/grmic/templates
> mkdir -p classes/gnu/classpath/tools/rmi/rmic/templates
> mkdir -p classes/gnu/classpath/tools/appletviewer
> mkdir -p classes/gnu/classpath/tools/jarsigner
> mkdir -p classes/gnu/classpath/tools/keytool
> cp
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/templates/*.jav
> classes/gnu/classpath/tools/rmi/rmic/templates
> cp
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/grmic/templates/*.jav
> classes/gnu/classpath/tools/giop/grmic/templates
> cp
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/*.txt
> classes/gnu/classpath/tools/rmi/
> cp
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/*.txt
> classes/gnu/classpath/tools/giop/
> /localbuild/gcc-4.2.2/.obj/./gcc/gcj -B/localbuild/gcc-4.2.2/.obj/./gcc/
> -B/opt/gcc-4.2.2/sparc-sun-solaris2.9/bin/
> -B/opt/gcc-4.2.2/sparc-sun-solaris2.9/lib/ -isystem
> /opt/gcc-4.2.2/sparc-sun-solaris2.9/include -isystem
> /opt/gcc-4.2.2/sparc-sun-solaris2.9/sys-include -m64 -encoding UTF-8
> --bootclasspath '../lib':'../lib/glibj.zip' --classpath . -C -d classes
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*.java
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*.java
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*/*.java
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:0:
> error: Can't find default package 'java.lang'. Check the CLASSPATH
> environment variable and the access to the archives
> ../../../../../../libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:43:
> error: Class or interface 'java.io.InputStreamReader' not found in import.
>
>
> I bootstrapped from version 4.1.
>
> SunOS buildsun3 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1000
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem building gcc 4.2.2 on SunOS 5.9, resolved
2007-12-20 10:15 ` Problem building gcc 4.2.2 on SunOS 5.9, resolved Thomas Mittelstaedt
@ 2007-12-20 10:24 ` Andrew Haley
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Haley @ 2007-12-20 10:24 UTC (permalink / raw)
To: Thomas Mittelstaedt; +Cc: gcc-help, java
Thomas Mittelstaedt writes:
> First, I created a build directory separate from the source tree, but I
> also had to tell gcc explicitly to use
> the installed gnu ld via --with-ld=/opt/gcc-4.1/bin/ld. Otherwise, the
> system linker would be used.
>
> ../gcc-4.2.2/configure --prefix=/opt/gcc-4.2.2
> --enable-version-specific-runtime-libs --enable-static --enable-shared
> --disable-nls --with-gnu-as --with-as=/opt/gcc-4.1/bin/as --with-gnu-ld
> --with-ld=/opt/gcc-4.1/bin/ld --with-build-time-tools=/opt/gcc-4.1/bin/
> --enable-languages=c,c++,objc,obj-c++
This is very strange: it certainly shouldn't be trying to build
libjava, but clearly it is. I'd try deleting the libjava srcdirs and
bindirs.
Andrew.
> Thomas Mittelstaedt schrieb:
> > Hallo,
> >
> > I build with the following:
> >
> > ../configure --prefix=/opt/gcc-4.2.2
> > --enable-version-specific-runtime-libs --enable-static --enable-shared
> > --disable-nls --with-gnu-ld --with-build-time-tools=/opt/gcc-4.1/bin/
> > --enable-languages=c,c++,java,objc,obj-c++
> >
> > make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
> > -fno-implicit-templates' bootstrap
> >
> >
> >
> > make[6]: Entering directory
> > `/localbuild/gcc-4.2.2/.obj/sparc-sun-solaris2.9/sparcv9/libjava/classpath/tools'
> > mkdir -p classes/gnu/classpath/tools/giop/grmic/templates
> > mkdir -p classes/gnu/classpath/tools/rmi/rmic/templates
> > mkdir -p classes/gnu/classpath/tools/appletviewer
> > mkdir -p classes/gnu/classpath/tools/jarsigner
> > mkdir -p classes/gnu/classpath/tools/keytool
> > cp
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/templates/*.jav
> > classes/gnu/classpath/tools/rmi/rmic/templates
> > cp
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/grmic/templates/*.jav
> > classes/gnu/classpath/tools/giop/grmic/templates
> > cp
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/*.txt
> > classes/gnu/classpath/tools/rmi/
> > cp
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/*.txt
> > classes/gnu/classpath/tools/giop/
> > /localbuild/gcc-4.2.2/.obj/./gcc/gcj -B/localbuild/gcc-4.2.2/.obj/./gcc/
> > -B/opt/gcc-4.2.2/sparc-sun-solaris2.9/bin/
> > -B/opt/gcc-4.2.2/sparc-sun-solaris2.9/lib/ -isystem
> > /opt/gcc-4.2.2/sparc-sun-solaris2.9/include -isystem
> > /opt/gcc-4.2.2/sparc-sun-solaris2.9/sys-include -m64 -encoding UTF-8
> > --bootclasspath '../lib':'../lib/glibj.zip' --classpath . -C -d classes
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*.java
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*.java
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*/*.java
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:0:
> > error: Can't find default package 'java.lang'. Check the CLASSPATH
> > environment variable and the access to the archives
> > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:43:
> > error: Class or interface 'java.io.InputStreamReader' not found in import.
> >
> >
> > I bootstrapped from version 4.1.
> >
> > SunOS buildsun3 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1000
> >
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-20 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-19 9:42 Problem building gcc 4.2.2 on SunOS 5.9 Thomas Mittelstaedt
2007-12-20 10:15 ` Problem building gcc 4.2.2 on SunOS 5.9, resolved Thomas Mittelstaedt
2007-12-20 10:24 ` Andrew Haley
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).