1 |
On 25.03.2016 13:35, Dan Johansson wrote: |
2 |
> I have setup one of my VM's to do cross-compiling for my Raspberry PI 2. |
3 |
> Now some packages (e.g. app-editors/vim and its dependencies) emerges |
4 |
> fine while other (e.g. net-misc/wget or rather one of its dependencies |
5 |
> dev-libs/libpcre-8.38:3) does not. |
6 |
> |
7 |
> What I have done is this: |
8 |
> # emerge sys-devel/crossdev |
9 |
> (installed sys-devel/crossdev-20150716) |
10 |
> |
11 |
> # crossdev -S -P -v -t armv7a-hardfloat-linux-gnueabi |
12 |
> (which "installed" fine without any errors) |
13 |
> |
14 |
> # armv7a-hardfloat-linux-gnueabi-emerge --verbose --oneshot |
15 |
> =net-misc/wget-1.16.3-r1 |
16 |
> |
17 |
> Which pulls in dev-libs/libpcre-8.38:3::gentoo which then fails with this: |
18 |
> |
19 |
> ln -sf pcre_compile2.3 |
20 |
> /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/libpcre-8.38/image//usr/share/man/man3/pcre16_compile2.3 |
21 |
> /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping |
22 |
> incompatible /usr/lib/libpthread.so when searching for -lpthread |
23 |
> /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping |
24 |
> incompatible /usr/lib/libc.so when searching for -lc |
25 |
> /usr/lib/libc.a: error adding symbols: File format not recognized |
26 |
> collect2: error: ld returned 1 exit status |
27 |
> |
28 |
|
29 |
Another one that is also failing (and is a dependency of many packages) |
30 |
is sys-libs/ncurses-6.0-r1. |
31 |
ncurses fails with another error than libpcre. |
32 |
|
33 |
cd c++ && make DESTDIR="" RPATH_LIST="/usr/lib" all |
34 |
make[1]: Entering directory |
35 |
'/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++' |
36 |
cd ../obj_s; -DHAVE_CONFIG_H -I. |
37 |
-I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++ |
38 |
-I../include |
39 |
-I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include |
40 |
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2 |
41 |
-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c |
42 |
/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesf.cc |
43 |
cd ../obj_s; -DHAVE_CONFIG_H -I. |
44 |
-I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++ |
45 |
-I../include |
46 |
-I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include |
47 |
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2 |
48 |
-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c |
49 |
/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesm.cc |
50 |
/bin/bash: -DHAVE_CONFIG_H: command not found |
51 |
Makefile:366: recipe for target '../obj_s/cursesf.o' failed |
52 |
make[1]: *** [../obj_s/cursesf.o] Error 127 |
53 |
make[1]: *** Waiting for unfinished jobs.... |
54 |
/bin/bash: -DHAVE_CONFIG_H: command not found |
55 |
Makefile:372: recipe for target '../obj_s/cursesm.o' failed |
56 |
make[1]: *** [../obj_s/cursesm.o] Error 127 |
57 |
make[1]: Leaving directory |
58 |
'/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++' |
59 |
Makefile:113: recipe for target 'all' failed |
60 |
make: *** [all] Error 2 |
61 |
|
62 |
|
63 |
|
64 |
|
65 |
-- |
66 |
Dan Johansson, <http://www.dmj.nu> |
67 |
*************************************************** |
68 |
This message is printed on 100% recycled electrons! |
69 |
*************************************************** |