I'm soory, but i had some problem with a bad answer so i forward the
message i tried to send insted of replying.
please don't blame me for top-posting because the real message is on the bottom.
> ---------- Messaggio inoltrato ----------
> From: Maurizio Rottin <[EMAIL PROTECTED]>
> To: T2 developers mailing list <[email protected]>
> Date: Tue, 5 Aug 2008 14:48:01 +0200
> Subject: [t2] on 7.0 crosscompiling perl for arm fails
>
> hi all,
> i'm trying to croos compile for arm a base system.
>
> i'm using T2 7.0 and when compiling perl i get the following lines:
>
> == 11:40:59 =[1]=> Building perl/perl [5.10.0 7.0.0].
> -> Reading package config: package/perl/perl/perl.conf
> -> Preparing build in src.perl.default.20080805.114058.25127.gentoo-devel
> -> Building. Writing output to $root/var/adm/logs/1-perl.out
> !>        CCCMD =  arm-t2-linux-gnueabi-gcc -DPERL_CORE -c
> -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm   ..
> !> `sh  cflags "optimize='-O2'" generate_uudmap.o`  generate_uudmap.c
> !>        CCCMD =  arm-t2-linux-gnueabi-gcc -DPERL_CORE -c
> -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm   ..
> !> arm-t2-linux-gnueabi-gcc -o generate_uudmap -L/usr/local/lib
> generate_uudmap.o -lnsl -ldl -lm -lcrypt -lutil -lc  -lm
> !> ./generate_uudmap >uudmap.h
> !> /bin/sh: ./generate_uudmap: cannot execute binary file
> !> Due to previous errors, no 1-perl.log file!
> !> (Try enabling xtrace in the config to track an error inside the
> build system.)
> -> $root/var/adm/logs/1-perl.out -> 1-perl.err
> == 08/05/08 11:44:44 =[1]=> Aborted building package perl.
>
> the problem is that "generate_uudmap" is a binary compiled for arm,
> then it can't be executed on non-arm system.
>
> any idea?
>
>
> --
> mr

hi all again,

i have also tried with latest trunk, but same error.
I found an old discussion where Rene and Lars said:

"Maybe we should merge the disabling the perl cross build for default
builds
as it is too error prone. In trunk we already do not cross build perl
by default
anymore (despite that the perl 5.10 perl has new, major cross build
regressions,
anyway).

Oh, I just see this change is already in 7.0. Can it be the case that
you
are building a slightly older 7.0 release tarball? Can you re-try with
the
branches/7.0 from SVN?

Lars: I had to revert that $CC change as that broke building T2 on T2!
The
reason is that this $CC is used for configure checks, and when the cross
compiler is used the configure is usually completely messed up.

The best way to probably fix correctly cross building perl is to not
write the
perl config from the T2 package selection and C library feature set as
opposed to let this perl supplied script check all this out (most test
try to run the resulting binary anyway, which is not suitable while
cross building anyway, despite if you would run the resulting executable
on the target hardware or an emulator - both not to appealing way that,
for example, scratch box is offering).

Yours,

On 02.04.2008, at 19:48, Lars Kuhtz wrote:

> Hi,
>
> I had a similar problem when building perl on Ubuntu. I could fix
> this by
> replacing hardcoded gcc by generic $CC in perl.conf. Although your
> error looks different you might try with 'svn merge -c 26311' (for
> trunk), or
> manually replace gcc by $CC (or must it be \$CC, Rene?) in the
> confopt entry
> in perl.conf.
>
> regards,
> Lars
> "
------end of mail

i have tried to edit  perl.conf and put $CC insted of gcc, but it does not work.

any idea?

--
mr



-- 
mr



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of: unsubscribe t2

Reply via email to