mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Objcopy error during targetinstall
@ 2015-06-10  9:25 Morrison-Reed Elliot (BEG-PT/ENP1)
  2015-06-10 14:14 ` Jürgen Borleis
  0 siblings, 1 reply; 2+ messages in thread
From: Morrison-Reed Elliot (BEG-PT/ENP1) @ 2015-06-10  9:25 UTC (permalink / raw)
  To: ptxdist

Hello All,

I am trying to put together some rules for installing Oracle Java SE Embedded version 8:
http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javase-embedded-downloads-2209751.html#javase8
http://download.oracle.com/otn/java/ejdk/8u33-b05/ejdk-8u33-fcs-linux-arm-sflt.tar.gz

Since the binary is precompiled, it looks like it should be pretty straight forward, I skip the compile stage and use the jrecreate step to set up the "package"

http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javase-embedded-downloads-2209751.html#javase8

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

 $(STATEDIR)/oracle-java8-jre.install:
     @$(call targetinfo)
     cd $(BUILDDIR)/$(ORACLE_JAVA8_JRE) && \
         JAVA_HOME=/usr ./bin/jrecreate.sh --profile compact1 \
         --dest $(PKGDIR)/$(ORACLE_JAVA8_JRE)/usr/lib/jvm/jre-$(ORACLE_JAVA8_JRE_VERSION)
     @$(call touch)

Since that is the default package location, I can then just use a default install_tree call inside targetinstall.

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

 $(STATEDIR)/oracle-java8-jre.targetinstall:
     @$(call targetinfo)

     @$(call install_init, oracle-java8-jre)
     @$(call install_fixup, oracle-java8-jre,PRIORITY,optional)
     @$(call install_fixup, oracle-java8-jre,SECTION,base)
     @$(call install_fixup, oracle-java8-jre,AUTHOR,"Elliot Morrison-Reed")
     @$(call install_fixup, oracle-java8-jre,DESCRIPTION,"Oracle Java 8 Runtime Environment")

     @$(call install_copy, oracle-java8-jre, 0, 0, 0755, /usr/lib/jvm/jre-$(ORACLE_JAVA8_JRE_VERSION))
     @$(call install_tree, oracle-java8-jre, 0, 0, -, /usr/lib/jvm/jre-$(ORACLE_JAVA8_JRE_VERSION))

However, when I run target-install I get the following error:

install file:
  src=.../platform-scm/packages/ejdk-8u33-fcs-linux-arm-sflt/usr/lib/jvm/jre-8u33/bin/keytool
  dst=/usr/lib/jvm/jre-8u33/bin/keytool
  owner=0
  group=0
  permissions=755

arm-v5te-linux-gnueabi-objcopy:/home/.../platform-scm/root/usr/lib/jvm/jre-8u33/bin/stY95y6i: cannot create debug link section `/home/.../platform-scm/root/usr/lib/jvm/jre-8u33/bin/.debug/keytool': Invalid operation
Error: install_file failed!
Error: install_tree failed!
failed

I tried running objcopy on the file manually at it works though.

$ objcopy keytool test
objcopy: Unable to recognise the format of the input file `keytool'
$ /opt/OSELAS.Toolchain-2012.12.1/.../arm-v5te-linux-gnueabi-objcopy keytool test
-> success

I am using ptxdist 2014.02.0.

Any ideas what is happening here?  Or at a minimum, what exact arguments are being fed to objcopy during the install_tree?

Mit freundlichen Grüßen / Best regards,
Elliot Morrison-Reed



-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-10 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10  9:25 [ptxdist] Objcopy error during targetinstall Morrison-Reed Elliot (BEG-PT/ENP1)
2015-06-10 14:14 ` Jürgen Borleis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox