ppc64el - Unable to locate package libc6-dev-i386

Asked by Adriana Kobylak

Trying to build and compile OpenPOWER on Ubuntu 14.10 (GNU/Linux 3.16.0-29-generic ppc64le):

https://github.com/open-power/op-build/blob/master/README

It requires libc6-dev-i386 but get this error message when trying to install: "E: Unable to locate package libc6-dev-i386".

I've searched for equivalents for this library but haven't found an answer that works.

Created symlinks from /usr/include to /usr/include/powerpc64le-linux-gnu/ to get over some of the compile errors:

/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
/usr/include/gnu/stubs.h:8:27: fatal error: gnu/stubs-32.h: No such file or directory

But still getting some like:

/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/powerpc64le-linux-gnu/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc64le-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc64le-linux-gnu/4.9/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: cannot find -lgcc

I have installed libc6-dbg:ppc64el, gcc-4.8-multilib, gcc-4.9-multilib, g++-4.8, g++-4.8-multilib-powerpc-linux-gnu.

Is there an equivalent library to libc6-dev-i386 or perhaps support for this library for Ubuntu LE is scheduled?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

My interpretation of the https://github.com/open-power/op-build/blob/master/README instructions is that they are for an amd64 Ubuntu system, and not for a ppc64le system.

Maybe you can install (some of) the packages to help:

libc6-dbg-ppc64el-cross
Embedded GNU C Library: detached debugging symbols (for cross-compiling)
libc6-dev-ppc64el-cross
Embedded GNU C Library: Development Libraries and Header Files (for cross-compiling)
libc6-ppc64el-cross
Embedded GNU C Library: Shared libraries (for cross-compiling)
linux-libc-dev-ppc64el-cross
Linux Kernel Headers for development (for cross-compiling)

(Not sure how the symlink might interfere with installing these packages).

Revision history for this message
Adriana Kobylak (anoo) said :
#2

Thanks Manfred Hampl, that solved my question.