1 |
I built a cross toolchain using crossdev, noting special I think. Then I |
2 |
created |
3 |
binary pkgs like so: |
4 |
CTARGET=powerpc-softfloat_4.5.3-linux-gnu |
5 |
export ROOT=/ PKGDIR=${PORTDIR}/pkgs/${CTARGET}/cross-tools |
6 |
quickpkg --include-config=y `qlist -IC cross-${CTARGET}` |
7 |
|
8 |
Installed these pkgs on another host using |
9 |
ACCEPT_KEYWORDS=~* emerge -aG \ |
10 |
cross-powerpc-softfloat_4.5.3-linux-gnu/linux-headers \ |
11 |
cross-powerpc-softfloat_4.5.3-linux-gnu/binutils \ |
12 |
cross-powerpc-softfloat_4.5.3-linux-gnu/glibc \ |
13 |
cross-powerpc-softfloat_4.5.3-linux-gnu/gcc \ |
14 |
cross-powerpc-softfloat_4.5.3-linux-gnu/gdb |
15 |
Note the KEYWORDS, installing pkgs using crossdev directly doesn't care |
16 |
about KEYWORDS |
17 |
but installing the same as binary pkgs respects KEYWORDS, a bit asymmetric |
18 |
but not a big deal |
19 |
|
20 |
However this is somewhat confusing, I had to run |
21 |
binutils-config powerpc-softfloat_4.5.3-linux-gnu-2.21.1 |
22 |
manually after installing the binary pkgs, is that expected? |
23 |
I figured I should not have to do that. |
24 |
On a side note I can mention, installing a binary x86 binutils on a amd64 |
25 |
host requires CHOST: |
26 |
CHOST=i686-pc-linux-gnu binutils-config |
27 |
powerpc-softfloat_4.5.3-linux-gnu-2.21.1 |
28 |
|
29 |
Finally, running gdb yields: |
30 |
# powerpc-softfloat_4.5.3-linux-gnu-gdb |
31 |
Python Exception <type 'exceptions.NameError'> name 'os' is not defined: |
32 |
|
33 |
warning: |
34 |
Could not load the Python gdb module from `/usr/share/gdb/python'. |
35 |
Limited Python support is available from the _gdb module. |
36 |
Suggest passing --data-directory=/path/to/gdb/data-directory. |
37 |
|
38 |
GNU gdb (Gentoo 7.6 p1) 7.6 |
39 |
Copyright (C) 2013 Free Software Foundation, Inc. |
40 |
License GPLv3+: GNU GPL version 3 or later < |
41 |
http://gnu.org/licenses/gpl.html> |
42 |
This is free software: you are free to change and redistribute it. |
43 |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" |
44 |
and "show warranty" for details. |
45 |
This GDB was configured as "--host=x86_64-pc-linux-gnu |
46 |
--target=powerpc-softfloat_4.5.3-linux-gnu". |
47 |
For bug reporting instructions, please see: |
48 |
<http://bugs.gentoo.org/>. |
49 |
(gdb) |
50 |
|
51 |
This one I haven't figured out yet, what is up with the python connection |
52 |
here? |
53 |
|
54 |
Oh, is there a difference using quickpkg vs. emerge --buildpkg ? |
55 |
|
56 |
Jocke |