Gentoo Archives: gentoo-embedded

From: Jakub Ladman <ladmanj@×××××.cz>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
Date: Mon, 20 Feb 2006 15:49:03
Message-Id: 200602201647.38602.ladmanj@volny.cz
In Reply to: Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture by Ned Ludd
1 Dne po 20. února 2006 05:46 Ned Ludd napsal(a):
2 > emerge does not read make.conf from $ROOT.
3 >
4 > You need to wrapper the command.
5 > try a script that does something like.
6 > http://dev.gentoo.org/~spb/tmp/memerge
7 > but replace the mips arch with sh for your case.
8 I have created following script.
9 If i run memerge busybox, it fails with this and similar error:
10
11 /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/libgcc_s.so.1: undefined reference to
12 `dl_iterate_phdr'
13 collect2: ld returned 1 exit status
14 make: *** [busybox] Error 1
15
16 If i commented out the LDFLAGS line in the script it works, but i thik it is
17 linked for libraries on my host i686 system.
18
19 Any ideas?
20 Thank you.
21
22 #!/bin/bash
23
24 ARCH=sh4
25 ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
26 ROOT="/home/ladmanj/work_projects/mtdisk"
27 CFLAGS="-Os -pipe"
28 CXXFLAGS="${CFLAGS}"
29 LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
30 CBUILD=i686-pc-linux-gnu
31 CHOST=sh4-pc-linux-uclibc
32 CTARGET=sh4-pc-linux-uclibc
33 CC=sh4-pc-linux-uclibc-gcc
34 CXX=sh4-pc-linux-uclibc-g++
35 PKGDIR=/usr/portage/packages/sh4
36 USE="-* -X -glibc uclibc"
37
38 export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET
39 CC CXX PKGDIR USE
40
41 emerge -b $*
42
43
44 --
45 gentoo-embedded@g.o mailing list

Replies