Gentoo Archives: gentoo-embedded

From: Jason <gentoo@××××××××××.net>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] C compiler cannot create executables
Date: Tue, 06 Nov 2007 20:39:50
Message-Id: 4730D0D3.70604@lakedaemon.net
In Reply to: Re: [gentoo-embedded] C compiler cannot create executables by Jean-Claude Gervais
1 Jean-Claude Gervais wrote:
2 > On Tue, 2007-11-06 at 15:19 -0500, Jason wrote:
3 >> Jean-Claude Gervais wrote:
4 >>> On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
5 >>>> Jean-Claude Gervais wrote:
6 >>>>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
7 >>>>>> Jean-Claude Gervais wrote:
8 >>>>>>> Same problem, different environment:
9 >>>>>>>
10 >>>>>>> I produced a cross-development toolkit by using the following command:
11 >>>>>>>
12 >>>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
13 >>>>>>> SYSROOT="/usr/arm-softfloat-linux-uclibc"
14 >>>>>>>
15 >>>>>>> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --binutils 2.17 --gcc
16 >>>>>>> 3.4.6-r2 --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target
17 >>>>>>> arm-softfloat-linux-uclibc
18 >>>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
19 >>>>>>>
20 >>>>>>> This went well; all the required tools were built.
21 >>>>>>>
22 >>>>>>> But now when I try to use the (modified) xmerge script, I get the
23 >>>>>>> "C compiler cannot create executables" error
24 >>>>>> [snip]
25 >>>>>>> configure:1225: checking build system type
26 >>>>>>> configure:1243: result: i686-pc-linux-gnu
27 >>>>>>> configure:1250: checking host system type
28 >>>>>>> configure:1264: result: i686-softfloat-linux-uclibc
29 >>>>>>> configure:1272: checking target system type
30 >>>>>>> configure:1286: result: i686-softfloat-linux-uclibc
31 >>>>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
32 >>>>>> ${SYSROOT}/etc/make.profile ?
33 >>>>> I think I did; here is the contents of
34 >>>>> /usr/arm-softfloat-linux-uclibc/etc/make.conf
35 >>>>>
36 >>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
37 >>>>> ACCEPT_KEYWORDS="arm"
38 >>>>> ARCH="arm"
39 >>>>>
40 >>>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
41 >>>>> CHOST="i686-softfloat-linux-uclibc"
42 >>>> This line should be:
43 >>>> CHOST="arm-softfloat-linux-uclibc"
44 >>> OK, I changed that line, performed a
45 >>> crossdev -C arm-softfloat-linux-uclibc
46 >>>
47 >>> And then re-ran the toolchain build procedure I am using;
48 >> judging by your initial ncurses build error, you haven't successfully
49 >> xmerge'd anything into SYSROOT, so all you had to do was change CHOST in
50 >> ${SYSROOT}/etc/make.conf, then try xmerge ncurses again.
51 >>
52 >>> SYSROOT="/usr/arm-softfloat-linux-uclibc"
53 >>>
54 >>> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --binutils 2.17 --gcc
55 >>> 3.4.6-r2 --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target
56 >>> arm-softfloat-linux-uclibc
57 >> crossdev doesn't use SYSROOT, it creates it. So there is no need to set it.
58 >>
59 >>> Which concluded with no errors.
60 >>>
61 >>> However, when I run any xmerge, I still get the same error
62 >>> "C compiler cannot create executables"
63 >> Did you repeat Section 3 of the cross-development guide after blowing
64 >> away SYSROOT with crossdev -C <target>?
65 >
66 > Yes, absolutely.
67 >
68 >> And set CHOST correctly?
69 >
70 > You mean in /usr/arm-softfloat-linux-uclibc/etc/make.conf ?
71 > Yes.
72 >
73 > The make.conf at that location is
74 >
75 > ACCEPT_KEYWORDS="arm"
76 > ARCH="arm"
77 >
78 > CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
79 > CHOST="arm-softfloat-linux-uclibc"
80 > CXXFLAGS="${CFLAGS}"
81 > GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
82 > http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo
83 > http://ftp.ucsb.edu/pub/m$
84 > INPUT_DEVICES="keyboard"
85 > MAKEOPTS="-j2"
86 > USE="minimal symlink"
87 > UCLIBC_CPU="ARM920T"
88 >
89
90 Okay, I suspect you fixed the error you were getting before
91 (configure:1286: result: i686-softfloat-linux-uclibc), so let's take a
92 look at the config.log again and see what's tripping it up this time.
93
94 thx,
95
96 Jason.
97
98 --
99 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] C compiler cannot create executables Jean-Claude Gervais <jc.gervais@×××××××××.ca>