Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Problems with cross-compiling
Date: Fri, 25 Mar 2016 12:36:02
Message-Id: 56F530A3.5070503@dmj.nu
1 I have setup one of my VM's to do cross-compiling for my Raspberry PI 2.
2 Now some packages (e.g. app-editors/vim and its dependencies) emerges
3 fine while other (e.g. net-misc/wget or rather one of its dependencies
4 dev-libs/libpcre-8.38:3) does not.
5
6 What I have done is this:
7 # emerge sys-devel/crossdev
8 (installed sys-devel/crossdev-20150716)
9
10 # crossdev -S -P -v -t armv7a-hardfloat-linux-gnueabi
11 (which "installed" fine without any errors)
12
13 # armv7a-hardfloat-linux-gnueabi-emerge --verbose --oneshot
14 =net-misc/wget-1.16.3-r1
15
16 Which pulls in dev-libs/libpcre-8.38:3::gentoo which then fails with this:
17
18 ln -sf pcre_compile2.3
19 /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/libpcre-8.38/image//usr/share/man/man3/pcre16_compile2.3
20 /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping
21 incompatible /usr/lib/libpthread.so when searching for -lpthread
22 /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping
23 incompatible /usr/lib/libc.so when searching for -lc
24 /usr/lib/libc.a: error adding symbols: File format not recognized
25 collect2: error: ld returned 1 exit status
26
27
28 Have I missed something in setting up crossdev or is something else
29 wrong (if yes - then what is wrong)?
30
31 --
32 Dan Johansson, <http://www.dmj.nu>
33 ***************************************************
34 This message is printed on 100% recycled electrons!
35 ***************************************************

Attachments

File name MIME type
smime.p7s application/pkcs7-signature

Replies

Subject Author
Re: [gentoo-user] Problems with cross-compiling Dan Johansson <Dan.Johansson@×××.nu>
Re: [gentoo-user] Problems with cross-compiling Andrew Savchenko <bircoph@g.o>
[gentoo-user] Re: Problems with cross-compiling James <wireless@×××××××××××.com>