On 01/07/15 12:12, TimA wrote:
Hi

Trying to get arm embedded cross compiler from
https://launchpad.net/gcc-arm-embedded running on a Debian 8 (Jessie)
amd64 machine.

Compiler is 32-bit:

$ file /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc
/usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: ELF
32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped

and needs these libs:

$ readelf -d /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc

Dynamic section at offset 0xb20a4 contains 26 entries:
   Tag        Type                         Name/Value
  0x00000001 (NEEDED)                     Shared library: [libm.so.6]
  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
  0x00000001 (NEEDED)                     Shared library: [ld-linux.so.2]

So add i386 architecture

dpkg --add-architechture i386
apt-get update

apt-get install ia32-libs

to discover that this package no longer present in Jessie.


$ apt-get install libc-bin:i386

apt-get install libc-bin:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
   gcc-4.9-base:i386 libattr1:i386 libc6:i386 libc6-i686:i386
libcap2:i386 libgcc1:i386
Suggested packages:
   glibc-doc:i386 locales:i386
The following packages will be REMOVED:
   libc-bin
The following NEW packages will be installed:
   gcc-4.9-base:i386 libattr1:i386 libc-bin:i386 libc6:i386
libc6-i686:i386 libcap2:i386 libgcc1:i386
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
   libc-bin
0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded.
Need to get 6,610 kB of archives.
After this operation, 12.5 MB of additional disk space will be used.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Don't think I want to go there! So question is what's the correct way to
install 32-bit libs multiarch on the latest Debian/Ubuntu?


Fixed - should have been:

apt-get install libc6


Tim



--
Next meeting:  Bournemouth, Tuesday, 2015-07-07 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to