All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jon Mason" <jdmason@kudzu.us>
To: meta-arm@lists.yoctoproject.org
Subject: Re: [meta-arm] [PATCH] meta-arm-bsp: Update gem5 and switch to python3
Date: Thu, 7 May 2020 15:33:04 -0400	[thread overview]
Message-ID: <20200507193303.GB1726@kudzu.us> (raw)
In-Reply-To: <D9520898-E03E-4271-B73D-6E3B54F5B8C9@arm.com>

On Wed, May 06, 2020 at 04:38:51PM +0000, Bertrand Marquis wrote:
> 
> 
> > On 6 May 2020, at 17:02, Bertrand Marquis <bertrand.marquis@arm.com> wrote:
> > 
> > 
> > 
> >> On 6 May 2020, at 16:56, Jon Mason via lists.yoctoproject.org <jdmason=kudzu.us@lists.yoctoproject.org> wrote:
> >> 
> >> On Fri, May 01, 2020 at 02:46:50PM +0100, Bertrand Marquis wrote:
> >>> This patch includes several fixes for gem5-aarch64
> >>> - Switch to a new version of gem5 supporting python3 and use python3 to
> >>> build it.
> >>> We use a version in develop branch of gem5 for now and we will have to
> >>> switch to release 20 once it is released mid of may.
> >>> - Remove scons python2 recipes which were used before by gem5 as a
> >>> workaround until gem5 was updated to support python3
> >>> - make gem5-aarch64-bootloader only compatible with gem5-aarch64
> >>> - remove unnecessary FILESEXTRAPATHS_prepend in gem5-aarch64-bootloader
> >> 
> >> 
> >> 
> >> I'm seeing an error when compiling this, which I wasn't seeing before.
> >> 
> >> 
> >> 
> >> ERROR: gem5-aarch64-native-gitAUTOINC+0c7f131ed2-r0 do_compile: scons build execution failed.
> >> ERROR: gem5-aarch64-native-gitAUTOINC+0c7f131ed2-r0 do_compile: Execution of '/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/temp/run.do_compile.5490' failed with exit code 1:
> >> scons: Reading SConscript files ...
> >> TypeError: object of type 'map' has no len():
> >>  File "/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/git/SConstruct", line 405:
> >>    compareVersions(gcc_version, '8.1') < 0:
> >>  File "/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/git/src/python/m5/util/__init__.py", line 139:
> >>    if len(v1) < len(v2): return -1
> >> WARNING: exit code 1 from a shell command.
> >> 
> >> ERROR: Logfile of failure stored in: /home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/temp/log.do_compile.5490
> >> Log data follows:
> >> | DEBUG: Executing shell function do_compile
> >> | scons: Reading SConscript files ...
> >> | TypeError: object of type 'map' has no len():
> >> |   File "/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/git/SConstruct", line 405:
> >> |     compareVersions(gcc_version, '8.1') < 0:
> >> |   File "/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/git/src/python/m5/util/__init__.py", line 139:
> >> |     if len(v1) < len(v2): return -1
> >> | ERROR: scons build execution failed.
> >> | WARNING: exit code 1 from a shell command.
> >> | ERROR: Execution of '/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/temp/run.do_compile.5490' failed with exit code 1:
> >> | scons: Reading SConscript files ...
> >> | TypeError: object of type 'map' has no len():
> >> |   File "/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/git/SConstruct", line 405:
> >> |     compareVersions(gcc_version, '8.1') < 0:
> >> |   File "/home/jdm/yocto/poky/build/tmp/work/x86_64-linux/gem5-aarch64-native/gitAUTOINC+0c7f131ed2-r0/git/src/python/m5/util/__init__.py", line 139:
> >> |     if len(v1) < len(v2): return -1
> >> | WARNING: exit code 1 from a shell command.
> >> |
> >> ERROR: Task (/home/jdm/yocto/meta-arm/meta-arm-bsp/recipes-devtools/gem5/gem5-aarch64-native_git.bb:do_compile) failed with exit code ‘1’
> >> 
> >> 
> > 
> > Could you provide more information on your testing environment ?
> > Which version of Yocto, what configuration ?
> > 
> > This was compiling properly last time I tried it with Zeus.
> 
> To give more detail on my setup:
> 
> - meta-openembedded and poky version zeus up to date
> 
> - meta-arm with master status including everything you merged today
> 
> - bblayer.conf with the following layers:
> poky/meta \
> poky/meta-poky \
> poky/meta-yocto-bsp \
> meta-openembedded/meta-oe \
> meta-openembedded/meta-python \
> meta-arm/meta-arm \
> meta-arm/meta-arm-bsp
> - local.conf with:
> MACHINE ?= "gem5-arm64”
> 
> - bitbake core-image-minimal
> 
> Could you give more information on how you generate your error because I could not reproduce it ?


From a new poky git repo, on the zeus branch.

git clean -dffx
source oe-init-build-env > /dev/null
bitbake-layers layerindex-fetch meta-oe meta-python
bitbake-layers layerindex-fetch -b master meta-arm meta-arm-toolchain
bitbake-layers add-layer ~/yocto/meta-arm/meta-arm-bsp
echo -e '\nDL_DIR ?= "/yocto/downloads"\nBB_GENERATE_MIRROR_TARBALLS = "1"\nSSTATE_DIR ?= "/yocto/sstate-cache"' >> conf/local.conf
echo -e '\nINHERIT += "testimage"' >> conf/local.conf
MACHINE=gem5-arm64 bitbake core-image-sato


I'm running debian-10, which is probably why it was not seen by
others.

Thanks,
Jon


> 
> Bertrand
> 

> 


      reply	other threads:[~2020-05-07 19:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-01 13:46 [PATCH] meta-arm-bsp: Update gem5 and switch to python3 Bertrand Marquis
2020-05-06 15:56 ` [meta-arm] " Jon Mason
2020-05-06 16:02   ` Bertrand Marquis
2020-05-06 16:38     ` Bertrand Marquis
2020-05-07 19:33       ` Jon Mason [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=20200507193303.GB1726@kudzu.us \
    --to=jdmason@kudzu.us \
    --cc=meta-arm@lists.yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.