Hi, and thanks for the reply.  Here's what I'm running:

Fedora 14 64-bit (Laughlin)
kernel 2.6.35.13-91.fc14.x86_64
gmake 3.82

My command line is:

ALT_BOOTDIR=/opt/jdk1.6.0_25_x86-64 LANG=C gmake ARCH_DATA_MODEL=64

So I'm just interested in a 64-bit-only build.  Just tweaking javac for
my own use.

I ran the "sanity" target, and that was successful.  I did look over
that page but haven't found a fix there yet.  Below is some output from
my last attempt.  TIA for any suggestions you might offer.

--Jason


[...]
sed -e 's/@@LIBARCH@@/amd64/g'
/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011/hotspot/s
rc/os/posix/launcher/launcher.script > hotspot
chmod +x hotspot
echo Linking launcher...
Linking launcher...
gcc -m64 -Xlinker -O1 -Wl,--hash-style=both  -m64 -export-dynamic  -L
`pwd` -o gamma launcher/java_md.o launcher/wildcard.o launcher/java.o
launcher/jli_util.o -ljvm -lm -ldl -lpthread
/usr/bin/ld: cannot find -ljvm
collect2: ld returned 1 exit status
gmake[6]: *** [gamma] Error 1
gmake[6]: Leaving directory
`/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011/build/li
nux-amd64/hotspot/outputdir/linux_amd64_compiler2/product'
gmake[5]: *** [the_vm] Error 2
gmake[5]: Leaving directory
`/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011/build/li
nux-amd64/hotspot/outputdir/linux_amd64_compiler2/product'
gmake[4]: *** [product] Error 2
gmake[4]: Leaving directory
`/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011/build/li
nux-amd64/hotspot/outputdir'
gmake[3]: *** [generic_build2] Error 2
gmake[3]: Leaving directory
`/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011/hotspot/
make'
gmake[2]: *** [product] Error 2
gmake[2]: Leaving directory
`/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011/hotspot/
make'
gmake[1]: *** [hotspot-build] Error 2
gmake[1]: Leaving directory
`/home/jason.vancleve/jvc/package/openjdk-6-src-b24-14_nov_2011'
gmake: *** [build_product_image] Error 2
[jason.vancleve@jvanclevelx openjdk-6-src-b24-14_nov_2011]$



> -----Original Message-----
> From: Kelly O'Hair [mailto:kelly.oh...@oracle.com]
> Sent: Wednesday, March 07, 2012 10:47 AM
> To: Jason Van Cleve
> Cc: build-dev@openjdk.java.net
> Subject: Re: Build Problem
> 
> You really aren't providing enough information to go on here.
> 
> As of now, building 32bit requires a 32bit OS, and  building 64bit
requires a
> 64bit OS.
> The amd64 is a 64bit library, the i386 is a 32bit library, these
libraries will not
> mix at runtime.
> 
> So there are lots of facts you are leaving out here:
>   * What OS are you using (specific version arch distro etc.)
>   * What is the make command line you are using
>   * Have you looked at http://hg.openjdk.java.net/jdk6/jdk6/raw-
> file/tip/README-builds.html
> 
> -kto
> 
> On Mar 5, 2012, at 2:26 PM, Jason Van Cleve wrote:
> 
> > Hi,
> >
> > I hope it's okay to ask questions here, as I've been having trouble
> > building "openjdk-6-src-b24-14_nov_2011".  I am getting the "cannot
> > find -ljvm" error, which library it seems to want to find at
> > "jre/lib/amd64/client/libjvm.so" in my bootstrap JDK.  But I have
> > three JDKs installed, and none of them has that path.  I'm building
on
> > a 64-bit linux system, and what I have is as follows:
> >
> > /opt/jdk1.6.0_19/jre/lib/i386/client/libjvm.so
> > /opt/jdk1.6.0_19/jre/lib/i386/server/libjvm.so
> > /opt/jdk1.6.0_25_x86-64/jre/lib/amd64/server/libjvm.so
> >
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/li
> > bj
> > vm.so
> >
> > Using all three of these JDKs, I have tried copying "libjvm.so" into
> > the expected path, in various ways, but that breaks the build in
other ways.
> >
> > Can I even build OpenJDK on a 64-bit machine?
> >
> > Thank you,
> >
> > --Jason
> >

Reply via email to