I'm pretty sure this wouldn't have happened with "Open Solaris 11" :)
On Wed, Mar 27, 2013 at 6:17 PM, David Chase <[email protected]>wrote: > On 2013-03-27, at 1:08 PM, Volker Simonis <[email protected]> > 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/[email protected] 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 > > >
