Solaris fastdebug build: gobjcopy?
David Holmes
david.holmes at oracle.com
Mon Oct 21 04:38:18 PDT 2013
Hi Max,
On 21/10/2013 7:00 PM, Weijun Wang wrote:
> Hi All
>
> I'm trying --enable-debug on a Solaris and see this failure
>
> ## Starting hotspot
> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
> INFO: ALT_OBJCOPY=/usr/sfw/bin/gobjcopy
> INFO: no objcopy cmd found so cannot create .debuginfo files.
> INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
> INFO: ALT_OBJCOPY=/usr/sfw/bin/gobjcopy
> INFO: no objcopy cmd found so cannot create .debuginfo files.
> INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
> Rescanned ../generated/adfiles/solaris_x86_64.ad but encountered no
> changes.
> Making signal interposition lib...
> Opening 'libjsig.so' for update
> No SHF_ALLOC flags needed to be cleared.
> Done with 'libjsig.so'
> make381[6]: /usr/sfw/bin/gobjcopy: Command not found
> make381[6]: *** [libjsig.so] Error 127
> make381[5]: *** [the_vm] Error 2
>
> Where can I install the gobjcopy command? This is a "SunOS s11 5.11
> snv_151a" machine. I remember I just copy SS12U1 from somewhere else,
> put its bin into $PATH, and start building.
>
> Also, the output above seems to say that gobjcopy is not found so
> ENABLE_FULL_DEBUG_SYMBOLS falls back to 0 and the build could go on. Why
> does it fail again with the same problem?
Not sure - that seems to be a bug in the hotspot build (hence cc
hotspot-dev). The FDS logic is processed multiple times but the initial
pass should disable FDS for the subsequent uses. If gobjcopy is
installed somewhere then ALT_OBJCOPY can be set to point to it. Was this
part of a full build? The configure process might also find gobjcopy and
set the appropriate variables.
David
> Thanks
> Max
More information about the hotspot-dev
mailing list