Gentoo Archives: gentoo-embedded

From: Jakub Ladman <ladmanj@×××××.cz>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] emerge ppp with crosscompile problem
Date: Wed, 03 May 2006 09:59:39
Message-Id: 200605031159.10904.ladmanj@volny.cz
In Reply to: Re: [gentoo-embedded] emerge ppp with crosscompile problem by Harald Schioeberg
1 Thanks for answer.
2
3 >
4 > 1) it uses the i686-pc-linux-gnu/bin/ld, don't you need the
5 > sh4-pc-linux-uclibc-ld ?
6 > export LD="sh4-pc-linux-uclibc-ld"
7
8 I will try it, it seems to be one of my mistakes
9 >
10 > 2) try adding -fpic or -fPIC to your CFLAGS, relocation error sounds a
11 > bit like that.
12
13 I will try it, even i do not know what it is.
14
15 >
16 > 3) it uses the gcc to compile a .so
17 > 3a) it should use the sh4-pc-linux-uclibc-gcc
18 > 3b) it shouldn't build a .so at all with USE="-* static"
19
20 It must be bug in ebuild, cause to other ebuilds are using the correct
21 compiler.
22 I will try to remove static use flag.
23
24 > correct my if i'm wrong, but that sounds that either the dhcp ebuild is
25 > completely broken (unlikely) or your variables don't end up in your emerge.
26 >
27 > 4) try adding an export ROOT="/path/to/sh4/system" variable, maybe it
28 > gets confused when merging your sh4 binaries to / , maybe it tries to
29 > link something to libs from /
30
31 That is allready set.
32
33 >
34 > just some wild guesses.
35 > Harald
36
37 Best regards
38 Jakub
39 --
40 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] emerge ppp with crosscompile problem Jakub Ladman <ladmanj@×××××.cz>