Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2011 23:49:10 +0200
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        "freebsd-eclipse@freebsd.org" <freebsd-eclipse@freebsd.org>
Subject:   Re: The secret of a successful eclipse installation
Message-ID:  <op.v3vlj8ki8527sy@212-182-167-131.ip.telfort.nl>
In-Reply-To: <20111024210837.GA2912@schweikhardt.net>
References:  <20111023115557.GA36227@schweikhardt.net> <op.v3u9poam8527sy@212-182-167-131.ip.telfort.nl> <20111024210837.GA2912@schweikhardt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

It looks a lot like this PR.
http://www.freebsd.org/cgi/query-pr.cgi?pr=3D144294

Are you sure your ports tree is not corrupt? Or has local modifications?
And what happens if you compile openjdk6 on its own and not as a =20
dependency of eclipse?
What is the output of uname -a?
What does /etc/make.conf look like?

As a workaround, if you have another 386 you could try building a pkg of =
=20
openjdk6 there and installing the pkg on this machine.

Ronald.

On Mon, 24 Oct 2011 23:08:38 +0200, Jens Schweikhardt =20
<schweikh@schweikhardt.net> wrote:

> On Mon, Oct 24, 2011 at 07:33:14PM +0200, Ronald Klop wrote:
> # On Sun, 23 Oct 2011 13:55:57 +0200, Jens Schweikhardt
> # <schweikh@schweikhardt.net> wrote:
> #
> # > hello, world\n
> # >
> # > I'm trying to do some QA work for the upcoming 9.0 Release, i.e. my
> # > system is i386,
> # > 9.0-RC1 FreeBSD 9.0-RC1 #1 r226629: Sat Oct 22 13:53:04 CEST 2011
> # >
> # > I've updated the ports tree to the latest and greatest but for many
> # > months
> # > I've been unable to install eclipse and am finally at a point where=
 I
> # > need
> # > to dig into the root cause, because I believe everybody else has no
> # > problems
> # > with eclipse.
> # >
> # > The failure mode is reproducible:
> # > $ cd /usr/ports/java/eclipse
> # > $ make install BATCH=3Dyes
> # > [...]
> # > Creating test_gamma ...
> # > ( \
> # > echo '#!/bin/sh'; \
> # > echo "# Generated by
> # > =20
> /usr/ports/java/openjdk6/work/hotspot/make/bsd/makefiles/buildtree.make=
";
> # > \
> # > echo '. ./env.sh'; \
> # > echo "if [ \"\" !=3D \"\" ]; then { echo "Cross compiling for ARCH =
,
> # > skipping gamma run."; exit 0; }; fi"; \
> # > echo "if [ -z \$JAVA_HOME ]; then { echo "JAVA_HOME must be set to =
=20
> run
> # > this test."; exit 0; }; fi"; \
> # > echo "if ! \${JAVA_HOME}/bin/java -d64 -fullversion 2>&1 > =20
> /dev/null"; \
> # > echo "then"; \
> # > echo "  echo "JAVA_HOME must point to 64bit JDK."; exit 0;"; \
> # > echo "fi"; \
> # > echo "rm -f Queens.class"; \
> # > echo "\${JAVA_HOME}/bin/javac -d .
> # > /usr/ports/java/openjdk6/work/hotspot/make/test/Queens.java"; \
> # > echo '[ -f gamma_g ] && { gamma=3Dgamma_g; }'; \
> # > echo './${gamma:-gamma} -Xbatch -showversion Queens < /dev/null'; \
> # > ) > test_gamma
> # > chmod +x test_gamma
> # > gmake[6]: Leaving directory
> # > =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/profiled'
> # > touch bsd_amd64_compiler2/profiled
> # > gmake[5]: Leaving directory
> # > `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
> # > cd bsd_amd64_compiler2/product && gmake -w " LP64=3D1 "
> # > gmake[5]: Entering directory
> # > =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> # > cd
> # > =20
> /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd6=
4_compiler2/product/../generated;
> # > cp /usr/ports/java/openjdk6/work/hotspot/make/bsd/platform_amd64
> # > =20
> /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd6=
4_compiler2/product/../generated/platform.current
> # > gmake[6]: Entering directory
> # > =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> # > gmake[6]: *** No rule to make target
> # > `/usr/ports/java/openjdk6/work/hotspot/src/cpu/i386/vm/x86_64.ad',
> # > needed by `../generated/adfiles/bsd_x86_64.ad'.  Stop.
> # > gmake[6]: *** Waiting for unfinished jobs....
> # > gmake[6]: Leaving directory
> # > =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> # > gmake[5]: *** [ad_stuff] Error 2
> # > gmake[5]: Leaving directory
> # > =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> # > gmake[4]: *** [product] Error 2
> # > gmake[4]: Leaving directory
> # > `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
> # > gmake[3]: *** [generic_build2] Error 2
> # > gmake[3]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/hotspot/make'
> # > gmake[2]: *** [product] Error 2
> # > gmake[2]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/hotspot/make'
> # > gmake[1]: *** [hotspot-build] Error 2
> # > gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
> # > gmake: *** [build_product_image] Error 2
> # > *** Error code 1
> # >
> # > Stop in /usr/ports/java/openjdk6.
> # > *** Error code 1
> # >
> # > Stop in /usr/ports/java/eclipse.
> # >
> # >
> # > Why is it trying to create a file for x86_64 when the machine is a =
=20
> i386?
> # > Is it important to install a specific version/vendor of java prior =
to
> # > installing eclipse?
> # > Are there configuration options I should use/avoid?
> # >
> # >
> # > Thanks for any insight!
> # >
> # > Regards,
> # >
> # > 	Jens
> #
> # Are you running a parallel build?
>
> Whatever the default is. I did not consciously set any environment =20
> variables.
>
> # Try 'export DISABLE_MAKE_JOBS=3Dtrue'
> # before building the port.
>
> Okay, to get a really clean environment I ran
>
> $ env -i PATH=3D$PATH HOME=3D$HOME DISABLE_MAKE_JOBS=3Dtrue make BATCH=3D=
yes =20
> 2>&1 | tee log
>
> # And do you have more output of the build? Maybe you can put it on a
> # webserver somewhere.
>
> I've put the whole log on www.schweikhardt.net/log [~300kb]
>
> It fails slightly different with
>
> [...]
> chmod +x test_gamma
> gmake[6]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/profiled'
> touch bsd_amd64_compiler2/profiled
> gmake[5]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
> cd bsd_amd64_compiler2/product && gmake -w " LP64=3D1 "
> gmake[5]: Entering directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> cd =20
> /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd6=
4_compiler2/product/../generated;  =20
> cp /usr/ports/java/openjdk6/work/hotspot/make/bsd/platform_amd64 =20
> /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd6=
4_compiler2/product/../generated/platform.current
> gmake[6]: Entering directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> Compiling =20
> /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
> rm -f ../generated/adfiles/adlparse.o
> /usr/bin/g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 =20
> -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm =20
> -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/prims =20
> -I/usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm =20
> -I/usr/ports/java/openjdk6/work/hotspot/src/os/bsd/vm =20
> -I/usr/ports/java/openjdk6/work/hotspot/src/os_cpu/bsd_x86/vm =20
> -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc -I../generate=
d =20
> -DASSERT -O -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 =20
> -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 =20
> -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 =20
> -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe =
=20
> -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 =20
> -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 =20
> -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exception=
s =20
> -pthread -fcheck-new -m64 -pipe -Werror -g -c -o =20
> ../generated/adfiles/adlparse.o =20
> /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
> /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp:1:=
 =20
> sorry, unimplemented: 64-bit mode not compiled in
> gmake[6]: *** [../generated/adfiles/adlparse.o] Error 1
> gmake[6]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> gmake[5]: *** [ad_stuff] Error 2
> gmake[5]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd=
64_compiler2/product'
> gmake[4]: *** [product] Error 2
> gmake[4]: Leaving directory =20
> `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
> gmake[3]: *** [generic_build2] Error 2
> gmake[3]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make=
'
> gmake[2]: *** [product] Error 2
> gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make=
'
> gmake[1]: *** [hotspot-build] Error 2
> gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
> gmake: *** [build_product_image] Error 2
> *** Error code 1
>
> Stop in /usr/ports/java/openjdk6.
> *** Error code 1
>
> Stop in /usr/ports/java/eclipse.
>
> Regards,
>
> 	Jens



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.v3vlj8ki8527sy>