1 |
Hi All, |
2 |
|
3 |
I am dipping my toe into cross-compile territory, in order to build i686 |
4 |
binaries for a 32bit box, which is too old to do its own emerges. I am using |
5 |
an amd64 box which is significantly faster to do all the heavy lifting and |
6 |
started applying this page: |
7 |
|
8 |
https://wiki.gentoo.org/wiki/Embedded_Handbook/General/Creating_a_cross-compiler |
9 |
|
10 |
which I followed up with: |
11 |
|
12 |
https://wiki.gentoo.org/wiki/Cross_build_environment |
13 |
|
14 |
and attempted to build @system: |
15 |
========================= |
16 |
# i686-pc-linux-gnu-emerge -uva @system |
17 |
|
18 |
* IMPORTANT: 3 news items need reading for repository 'gentoo'. |
19 |
* Use eselect news read to view new items. |
20 |
|
21 |
|
22 |
These are the packages that would be merged, in order: |
23 |
|
24 |
Calculating dependencies... done! |
25 |
[ebuild N ] sys-apps/busybox-1.24.2::gentoo to /usr/i686-pc-linux-gnu/ |
26 |
USE="make-symlinks static -debug -ipv6 -livecd -math -mdev -pam -savedconfig (- |
27 |
selinux) -sep-usr -syslog -systemd" 0 KiB |
28 |
|
29 |
Total: 1 package (1 new), Size of downloads: 0 KiB |
30 |
|
31 |
Would you like to merge these packages? [Yes/No] y |
32 |
* ARCH is not set... Are you missing the '/usr/i686-pc-linux- |
33 |
* gnu/etc/portage/make.profile' symlink? Is the symlink correct? Is your |
34 |
* portage tree complete? |
35 |
=============== |
36 |
|
37 |
As far as I can tell the link is there: |
38 |
|
39 |
# ls -la /usr/i686-pc-linux-gnu/etc/portage/ |
40 |
total 8 |
41 |
drwxr-xr-x 1 root root 56 Jul 31 19:32 . |
42 |
drwxr-xr-x 1 root root 20 Jul 31 18:32 .. |
43 |
-rw-r--r-- 1 root root 1019 Jul 31 19:32 make.conf |
44 |
lrwxrwxrwx 1 root root 30 Jul 31 17:48 make.profile -> |
45 |
/usr/portage/profiles/embedded |
46 |
drwxr-xr-x 1 root root 32 Jul 31 18:16 profile |
47 |
|
48 |
and it was created when I ran 'crossdev --stable -v -t i686-pc-linux-gnu'. |
49 |
|
50 |
My make.conf looks like this: |
51 |
============================== |
52 |
# cat /usr/i686-pc-linux-gnu/etc/portage/make.conf |
53 |
CHOST=i686-pc-linux-gnu |
54 |
CBUILD=x86_64-pc-linux-gnu |
55 |
ARCH=x86 |
56 |
|
57 |
HOSTCC=x86_64-pc-linux-gnu-gcc |
58 |
|
59 |
ROOT=/usr/${CHOST}/ |
60 |
|
61 |
ACCEPT_KEYWORDS="x86" |
62 |
|
63 |
USE="${ARCH} -pam" |
64 |
|
65 |
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" |
66 |
CXXFLAGS="${CFLAGS}" |
67 |
MAKEOPTS="-j5" |
68 |
AUTOCLEAN="yes" |
69 |
USE="a52 aac aalib acpi apache2 -arts asf avi cdda cddb cdparanoia crypt css |
70 |
dri dts dv dvd dvdr dvdread divx -eds encode -esd flac fuse gif gimp gmedia - |
71 |
gnome -gtk hpijs imlib -java lcms -libav live lzo mjpeg mmx mng modplug |
72 |
mozdevelop mp3 mysql ncurses npp nptlonly nsplugin pdf ppds quicktime real |
73 |
realmedia rtmp scanner semantic-desktop sse sse2 smp svg theora tiff usb utf8 |
74 |
vcd vhosts vorbis vram v4l webdav wmf wmp xcomposite xine xinerama xulrunner |
75 |
xv xvid xvmc x264 yv12" |
76 |
FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc" |
77 |
# Be sure we dont overwrite pkgs from another repo.. |
78 |
PKGDIR=${ROOT}packages/ |
79 |
PORTAGE_TMPDIR=/var/tmp |
80 |
|
81 |
ELIBC="glibc" |
82 |
|
83 |
PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/" |
84 |
#PORTDIR_OVERLAY="/usr/portage/local/" |
85 |
============================ |
86 |
|
87 |
|
88 |
What am I missing? How would/do you go about achieving the same objective? |
89 |
|
90 |
-- |
91 |
Regards, |
92 |
Mick |