mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Morrison-Reed Elliot (BEG-PT/ENP1)" <Elliot.Morrison-Reed@de.bosch.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] Objcopy error during targetinstall
Date: Wed, 10 Jun 2015 09:25:53 +0000	[thread overview]
Message-ID: <003f021ee2f74a2cb0c43a40a8f00e39@SI-MBX1023.de.bosch.com> (raw)

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

             reply	other threads:[~2015-06-10  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10  9:25 Morrison-Reed Elliot (BEG-PT/ENP1) [this message]
2015-06-10 14:14 ` Jürgen Borleis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=003f021ee2f74a2cb0c43a40a8f00e39@SI-MBX1023.de.bosch.com \
    --to=elliot.morrison-reed@de.bosch.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox