Hi everybody! At the moment myself and some other ppl are working on getting Gentoo on the Openmoko Freerunner. Thanks to TuXXX and crossdev i was able to get a basic build toolchain with glibc-2.7, gcc-4.3 and binutils-2.18 up and running quite fast. Till now i was able to cross-compile almost everything most things needed extra care (i have quite a huge overlay for crosscompiling packages by now but i don't want to release it just yet because i want to clean things up a bit before i'll let somebody else see this). The only thing i'm still fighting with (something i wanted to merge earlier but wasn't able to convince it to compile so i pushed it back but now i need it for enlightenment) is perl (and thus libperl). The first time i tried it wasn't even able to get over the configuration hurdle (damn i HATE this hand-written pita-configure script of perl) but with my second try i decided to have a look at how they are doing it at openembedded (did you realize that openembedded-bitbake files look almost the same as ebuilds?) and i was able to make some progress. Now it starts to compile, it uses my build-hosts' perl-executable to compile the perl-stuff... But sooner or later the build always fails. The first problem i hit was that if i don't comment out the following lines in /usr/lib/perl5/5.8.8/x86_64-linux/Errno.pm the build fails with the given error message: "$Config{'archname'}-$Config{'osvers'}" eq "x86_64-linux-2.6.25-hh1" or die "Errno architecture (x86_64-linux-2.6.25-hh1) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})"; When i comment these three lines build goes a bit further but failes with the following error message afterards: Making Filter::Util::Call (dynamic) Writing Makefile for Filter::Util::Call make[2]: Entering directory `/root/openmoko/tmp/portage/sys-devel/libperl-5.8.8-r2/work/perl-5.8.8/ext/Filter/Util/Call' Can't load '../../../../lib/auto/File/Glob/Glob.so' for module File::Glob: ../../../../lib/auto/File/Glob/Glob.so: wrong ELF class: ELFCLASS32 at ../../../../lib/XSLoader.pm line 70. at ../../../../lib/File/Glob.pm line 96 Compilation failed in require at ../../../../lib/ExtUtils/Command.pm line 61. BEGIN failed--compilation aborted at ../../../../lib/ExtUtils/Command.pm line 61. Compilation failed in require. BEGIN failed--compilation aborted. make[2]: *** [../../../../lib/Filter/Util/.exists] Error 9 The steps i tried are the same as mentioned in the README-file in the Cross-Subdirectory of the unpacked perl-tarball: unpack it (plus do some additional patching) using portage execute make patch and make perl manually (i want to make it work manually before i actually try to make it work using portage...) I guess the error message means that something is linked against Glob.so that should not be linked against it. What kinda wonders me is the fact that it's complaining about ELFCLASS32 but if i am correct the arm-processor uses a 32-bit architecture?? If it would complain about ELFCLASS64 i would know what the problem is, it linked something against my build-hosts libs. Anyway maybe I'll attach my config-file for perl, maybe somebody else is able to make sense of all this and enlighten me. Thanks in advance, Christoph