New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 839185 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Cannot run arm-none-eabi-as

Project Member Reported by bcf@chromium.org, May 3 2018

Issue description

% ./prebuilt/toolchain/arm/bin/arm-none-eabi-as
/usr/local/google/home/bcf/src/amlogic-sdk/prebuilt/toolchain/arm/bin/../usr/x86_64-pc-linux-gnu/arm-none-eabi/binutils-bin/2.27.0/as: error while loading shared libraries: libopcodes-2.27.0.20170315.so: cannot open shared object file: No such file or directory

It works if we set the LD_LIBRARY_PATH.

I noticed that the other toolchains have a script like this:

/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.27.0/as:

#!/bin/sh
if ! base=$(realpath "$0" 2>/dev/null); then
  case $0 in
  /*) base=$0;;
  *)  base=${PWD:-`pwd`}/$0;;
  esac
fi
basedir=${base%/*}
exec   "${basedir}/../../../../../lib/ld-linux-x86-64.so.2"   --library-path "${basedir}/../../../../../lib:${basedir}/../../lib"   --inhibit-rpath ''   "${base}.elf"   "$@"

 

Comment 1 by bcf@chromium.org, May 3 2018

Note: I tested it on snapshot 2018.05.01.123327
Components: Tools>ChromeOS-Toolchain
Labels: OS-Chrome
Owner: rahulchaudhry@chromium.org
Status: Assigned (was: Untriaged)
thanks for the report,
Please always use component Tools>Chromeos-toolchain.
otherwise it may not reach my team.

Rahul, 

can you please take care of this? 


I cannot reproduce this. Here's what I've tried:

Built standalone toolchains inside the chroot for 'arm-none-eabi' and 'armv7a-cros-linux-gnueabi' using:

$ sudo `which cros_setup_toolchains` --create-packages -t armv7a-cros-linux-gnueabi
$ sudo `which cros_setup_toolchains` --create-packages -t arm-none-eabi

Unpacked the .tar.xz files in two directories.

Outside the chroot, I ran 'as' from both:

$ armv7a-cros-linux-gnueabi/bin/armv7a-cros-linux-gnueabi-as -v </dev/null
GNU assembler version 2.27.0 (armv7a-cros-linux-gnueabi) using BFD version (binutils-2.27.0-r9-b415c49e4c4b8fcddc1f5551bb1e357a8fe93ad7_cos_gg) 2.27.0.20170315

$ arm-none-eabi/bin/arm-none-eabi-as -v </dev/null
GNU assembler version 2.27.0 (arm-none-eabi) using BFD version (binutils-2.27.0-r9-b415c49e4c4b8fcddc1f5551bb1e357a8fe93ad7_cos_gg) 2.27.0.20170315

They both run fine. I looked at the 'as' executable files in binutils-bin. They're shell wrappers in both places:

$ cat armv7a-cros-linux-gnueabi/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.27.0/as
#!/bin/sh
if ! base=$(realpath "$0" 2>/dev/null); then
  case $0 in
  /*) base=$0;;
  *)  base=${PWD:-`pwd`}/$0;;
  esac
fi
basedir=${base%/*}
exec   "${basedir}/../../../../../lib/ld-linux-x86-64.so.2"   --library-path "${basedir}/../../../../../lib:${basedir}/../../lib"   --inhibit-rpath ''   "${base}.elf"   "$@"

$ cat arm-none-eabi/usr/x86_64-pc-linux-gnu/arm-none-eabi/binutils-bin/2.27.0/as
#!/bin/sh
if ! base=$(realpath "$0" 2>/dev/null); then
  case $0 in
  /*) base=$0;;
  *)  base=${PWD:-`pwd`}/$0;;
  esac
fi
basedir=${base%/*}
exec   "${basedir}/../../../../../lib/ld-linux-x86-64.so.2"   --library-path "${basedir}/../../../../../lib:${basedir}/../../lib"   --inhibit-rpath ''   "${base}.elf"   "$@"


Is it possible that you're using some older version of arm-none-eabi.tar.xz? Can you post the location you downloaded it from?

Comment 4 by bcf@chromium.org, May 5 2018

Extremely sorry for the noise, this was an issue with one of our scripts...

Comment 5 by bcf@chromium.org, May 5 2018

Status: WontFix (was: Assigned)

Sign in to add a comment