* Re: [gentoo-embedded] Problem cross compiling modular X
@ 2006-08-24 19:17 99% ` Enrico Weigelt
0 siblings, 0 replies; 1+ results
From: Enrico Weigelt @ 2006-08-24 19:17 UTC (permalink / raw
To: gentoo-embedded
* Ryan Baldwin <ryan.baldwin@nexusalpha.com> schrieb:
<snip>
> This then leads onto the next problem emerge'ing 'libX11'.
>
> 'checking whether malloc(0) returns NULL... configure: error: cannot
> run test program while cross compiling'.
Not an Gentoo issue. The upstream packages are *broken*.
I'm fighting against those things for several years now. Because
upstream of many packages isn't quite interested in getting my
patches in (or too slow), I've founded my own QM project:
* http://wiki.metux.de/public/OpenSource_QM_Taskforce
You'll find many patches (ie. for Xorg packages) here:
* http://patches.metux.de/
I'd love to see you in on our side @ oss-qm. Please join our
Mailinglist.
<snip>
> I'm quite new to cross compiling. I can see what the problem is
> - configure cant run any programs in the target environment to
> fill out config.guess - because its running on the host.
Autoconf is dumb. And some people writing autoconf input files
are even more dumb. Sorry if it sounds offending, but its true.
Although, the autotools collection claims to be suited for
cross-compiling, it actually isn't. At least not cleanly.
Clean crosscompiling (aka in an sysroot-environment) does not
work without deeper changes. So, for example, I had to write
my own libtool implementation, because the original one is not
capable of doing sysroot'ed builds. Also many other standard
macros are broken. The assumption, host root and build root
already is broken design, as well as the assumption, the
toolchains for host and target system were equal.
(ie. that's why mysql can't be crosscompiled: it brings some
code generator, which is built with the target toolchain,
and of course this can never work when crosscompiling).
> Is there any well known way of working around this other then
> trying to manually write a config.guess for the packages that
> can't configure themselves for the target environment?
Fix configure.in. As I did.
See my patch repository.
Please join the oss-qm mailing list, and I'll tell you more.
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-07-06 11:05 [gentoo-embedded] Problem cross compiling modular X Ryan Baldwin
2006-07-06 12:02 ` Ryan Baldwin
2006-08-24 19:17 99% ` Enrico Weigelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox