public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Marek Behún" <marek.behun@nic.cz>
To: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Patrice CHOTARD <patrice.chotard@foss.st.com>,
	Marek Vasut <marex@denx.de>,
	U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>
Subject: Re: Question: LTO and failing objcopy in "u-boot-initial-env" target
Date: Fri, 22 Oct 2021 21:25:03 +0200	[thread overview]
Message-ID: <20211022212503.087dd056@thinkpad> (raw)
In-Reply-To: <927b122e-1f62-e790-f5ca-30bae4332c77@foss.st.com>

On Fri, 22 Oct 2021 17:16:18 +0200
Patrick DELAUNAY <patrick.delaunay@foss.st.com> wrote:

> Hi,
> 
> 
> I made tests with LTO option activated on stm32mp15 boards but if have a 
> issue
> 
> with the U-Boot target  "u-boot-initial-env" (this command used by YOCTO)
> 
> 
> $> make u-boot-initial-env  
> 
> ...
> 
> GENENV  u-boot-initial-env
> arm-none-linux-gnueabihf-objcopy: env/common.o: can't dump section 
> '.rodata.default_environment' - it does not exist: file format not 
> recognized
> sed: can't read u-boot-initial-env: No such file or directory
> make[1]: *** [/local/home/frq07632/views/u-boot/Makefile:2315: 
> u-boot-initial-env] Error 2
> make[1]: Leaving directory 
> '/local/home/frq07632/views/build/stm32mp15_defconfig'
> make: *** [Makefile:177: sub-make] Error 2
> 
> 
> But I reproduced it with sandbox:
> 
> $> make sandbox_defconfig  
> 
> $> make all  
> 
> $> make u-boot-initial-env  
> 
> ....
> 
>    LTO     u-boot
>    OBJCOPY u-boot-nodtb.bin
>    COPY    u-boot.bin
>    GENENV  u-boot-initial-env
> objcopy: env/common.o: can't dump section '.rodata.default_environment' 
> - it does not exist: file format not recognized
> sed: can't read u-boot-initial-env: No such file or directory
> make: *** [Makefile:2315: u-boot-initial-env] Error 2
> 
> 
> 
> Do you already know this issue for other board which activate the LTO 
> feature ?
> 
> I don't see any remarks about this issue on mailing list.
> 
> Today I am known how to solve this issue.
> 
> 
> PS: The same command is executed in "scripts/get_default_envs.sh"

Seems that that script isn't executed in code integration, otherwise I
would have noticed this.

      parent reply	other threads:[~2021-10-22 19:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 15:16 Question: LTO and failing objcopy in "u-boot-initial-env" target Patrick DELAUNAY
2021-10-22 19:19 ` Adam Ford
2021-10-22 19:26   ` Marek Behún
2021-10-22 19:49     ` Adam Ford
2021-10-23 17:25       ` Tom Rini
2021-10-22 19:25 ` Marek Behún [this message]

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=20211022212503.087dd056@thinkpad \
    --to=marek.behun@nic.cz \
    --cc=marex@denx.de \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-stm32@st-md-mailman.stormreply.com \
    /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