[oe] [RFC, PATCH, resend] gmp: assign --target to --host to avoid configure error

Ben Gardiner bengardiner at nanometrics.ca
Mon Oct 18 16:24:44 UTC 2010


On Mon, Oct 18, 2010 at 8:33 AM, Ben Gardiner
<bengardiner at nanometrics.ca> wrote:
> HI Paul,
>
> Thank you for all your testing of gmp builds.
>
> On Sat, Oct 16, 2010 at 6:41 AM, Paul Menzel
> <paulepanter at users.sourceforge.net> wrote:
> [...]
>> Am Samstag, den 16.10.2010, 11:16 +0200 schrieb Paul Menzel:
>> > Am Freitag, den 15.10.2010, 17:00 +0200 schrieb Paul Menzel:
>> > > I tried to build `gmp-native` without your patch and it worked for me
>> > > with `minimal` (eglibc) for `MACHINE = "beagleboard"`. Is there a
>> > > difference how things are handled between distributions?
>> >
>> > It also built without problems with `angstrom-2010.x`.
>>
>> … and `angstrom-2008.1`, `minimal-{uclibc,libc}`.
>
> So that's a positive result for 'angstrom-200{8.1,0.x}' , {uclibc,libc}...
>
> I guess the culprit must be my use of external CSL toolchain. I will
> try a build of gmp in 'angstrom-2008.1' 'libc' from
> f58a5d59b755bdb725497f574a8059529c134c27 of master without external
> toolchain and post the results.

In 'angstrom-2008.1' 'libc' from
f58a5d59b755bdb725497f574a8059529c134c27 and without any external
toolchain specified: gmp and gmp-native built OK

In 'angstrom-2008.1' 'libc' from
f58a5d59b755bdb725497f574a8059529c134c27 plus "[PATCH] distro,
toolchain-external: override TARGET_VENDOR with TOOLCHAIN_VENDOR" [1]
and with external CSL 2009q1 toolchain specified: gmp and gmp-native
built OK

In 'angstrom-2008.1' 'libc' from
f58a5d59b755bdb725497f574a8059529c134c27 and with external CSL 2009q1
toolchain specified: gmp and gmp-native fail:

NOTE: Running task 160 of 171 (ID: 93,
[...]/oe/recipes/libtool/libtool-native_2.2.6b.bb, do_package_stage)
ERROR: function do_configure failed
ERROR: log data follows
([...]/tmp/work/x86_64-linux/gmp-native-5.0.1-r1.1/temp/log.do_configure.15901)
[...]
| configure: error: --target is not appropriate for GMP
| Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
| explicitly.  Use --host if cross-compiling (see "Installing GMP" in the
| manual for more on this).

I think I know what's happening.

Without "[PATCH] distro, toolchain-external: override TARGET_VENDOR
with TOOLCHAIN_VENDOR" [1] applied, TARGET_SYS =
"arm-none-linux-gnueabi" must be set to avoid lots of
"arm-angstrom-linux-gnueabi not found" errors. With the patch applied
I don't have to which must make the --target and --host arguments
match again.

I'm sorry for the noise, I'll withdraw this patch from consideration.

Best Regards,
Ben Gardiner

[1] http://patchwork.openembedded.org/patch/3240/

---
Nanometrics Inc.
http://www.nanometrics.ca




More information about the Openembedded-devel mailing list