New build, gobjcopy failure, any clues?
Volker Simonis
volker.simonis at gmail.com
Wed Mar 27 17:26:19 UTC 2013
I'm pretty sure this wouldn't have happened with "Open Solaris 11" :)
On Wed, Mar 27, 2013 at 6:17 PM, David Chase <david.r.chase at oracle.com>wrote:
> On 2013-03-27, at 1:08 PM, Volker Simonis <volker.simonis at gmail.com>
> wrote:
>
> > Hi David,
> >
> > I found a Solaris 11 box today and it seems that this is really a
> problem of binutils 2.19 on Solaris 11.
>
> And vice-versa -- 10 minutes ago I tried gobjcopy 2.15 on the command line
> (on Solaris 11, with the same libjvm.so) and it worked.
>
> I'm testing a from-scratch build right now.
>
> Thanks very much for your help.
> Note that this appears to be a sparc-specific problem; I've been building
> on Intel Solaris 11 with no problems.
>
> Hmmm, differently busted, seems like I ought to install it properly
> instead of just copying over one binary,
> might want to update the rest of the binutils as well:
>
> Making signal interposition lib...
> Making libjvm_dtrace.so
> Opening 'libjsig.so' for update
> No SHF_ALLOC flags needed to be cleared.
> Done with 'libjsig.so'
> Opening 'libjvm_dtrace.so' for update
> No SHF_ALLOC flags needed to be cleared.
> Done with 'libjvm_dtrace.so'
> BFD: libjsig.debuginfo: Not enough room for program headers, try linking
> with -N
> /home/drchase/gobjcopy: libjsig.debuginfo: Bad value
> BFD: libjsig.debuginfo: Not enough room for program headers, try linking
> with -N
> /home/drchase/gobjcopy: libjsig.debuginfo: Bad value
> make381[6]: *** [libjsig.so] Error 1
> make381[6]: *** Waiting for unfinished jobs....
> BFD: libjvm_dtrace.debuginfo: Not enough room for program headers, try
> linking with -N
> /home/drchase/gobjcopy: libjvm_dtrace.debuginfo: Bad value
> BFD: libjvm_dtrace.debuginfo: Not enough room for program headers, try
> linking with -N
> /home/drchase/gobjcopy: libjvm_dtrace.debuginfo: Bad value
>
> David
>
> > Initially there was no gobjcopy on my Solaris machine at all so I did
> the following:
> >
> > - downloaded gnu-binutils.p5i from
> http://pkg.oracle.com/solaris/release/en/index.shtml
> > - installed developer/gnu-binutils at 2.19-0.175.0.0.0.2.537 by doing
> '/usr/lib/pm-launch packagemanager gnu-binutils.p5i'
> >
> > Now I had /usr/ccs/bin/gobjcopy (version 2.19) but it miserably failed
> even on an libjvm.so from a jdk7u build that was done on Solaris 10 (and
> worked there):
> >
> > gobjcopy --only-keep-debug
> /usr/work/openjdk/nb/sun_64/nightly/output-jdk7u/j2sdk-image/jre/lib/sparcv9/server/libjvm.so
> /tmp/libjvm.debuginfo
> >
> gobjcopy:/usr/work/openjdk/nb/sun_64/nightly/output-jdk7u/j2sdk-image/jre/lib/sparcv9/server/libjvm.so:
> File format not recognized
> >
> > You could try to compile binutils yourself and/or open a bug report
> against the binutils 2.19 package on Solaris 11
> >
> > Regards,
> > Volker
> >
>
More information about the build-dev
mailing list