LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-13-2009, 03:15 AM   #1
moby1
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
problem in Cross compile !!!!


Hello,

I have been trying to cross compile Perl for an ARM-Linux for few days but without result:
I have an ssh working connection between my Intel-Linux host and my
Arm-Linux device. I'm calling Configure as the following:

sh ./Configure -des -Dusecrosscompile \
-Dtargethost=192.167.2.4 \
-Dtargetdir=/cross/bin \
-Dtargetuser=root
-Dtargetarch=arm-linux \

-Dcc=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-gcc \

-Dincpth=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/include \

-Dusrinc=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/include \

-Dlibpth=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/lib

Then I make: make (inside the perl-5.10.0 directory ).
I'm not getting an executable miniperl after calling make inside the
Perl directory, but the follow message:


* makefile:646: target `lib/auto/Encode/Byte/Byte.a' given more
than once in the same rule.
* makefile:646: target `lib/auto/Encode/CN/CN.a' given more than
once in the same rule.
* makefile:646: target `lib/auto/Encode/EBCDIC/EBCDIC.a' given
more than once in the same rule.
* makefile:646: target `lib/auto/Encode/JP/JP.a' given more than
once in the same rule.
* makefile:646: target `lib/auto/Encode/KR/KR.a' given more than
once in the same rule.
* makefile:646: target `lib/auto/Encode/Symbol/Symbol.a' given
more than once in the same rule.
* makefile:646: target `lib/auto/Encode/TW/TW.a' given more than
once in the same rule.
* makefile:646: target `lib/auto/Encode/Unicode/Unicode.a' given
more than once in the same rule.
* `sh cflags "optimize='-O'" miniperlmain.o` miniperlmain.c
* CCCMD

= /opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -O -Wall
* In file included from perl.h:38,
* from miniperlmain.c:36:
* config.h:4296:12: operator '==' has no left operand
* In file included from miniperlmain.c:36:
* .
* .
* .
* .
* proto.h:4256: warning: data definition has no type or storage
class
* proto.h:4258: error: parse error before "Perl_PerlIO_unread"
* proto.h:4259: warning: type defaults to `int' in declaration of
`Perl_PerlIO_unread'
* proto.h:4259: warning: data definition has no type or storage
class
* proto.h:4298: error: parse error before "Perl_pad_add_name"
* proto.h:4299: warning: type defaults to `int' in declaration of
`Perl_pad_add_name'
* proto.h:4299: warning: data definition has no type or storage
class
* proto.h:4301: error: parse error before "Perl_pad_add_anon"
* proto.h:4302: warning: type defaults to `int' in declaration of
`Perl_pad_add_anon'
* proto.h:4302: warning: data definition has no type or storage
class
* proto.h:4327: warning: type defaults to `int' in declaration of
`PADOFFSET'
* proto.h:4327: error: parse error before "po"
make: *** [miniperlmain.o] Error 1



I tried to put these commands inside the t directory but i have always :
./perl TEST the message is:-sh: ./perl: No such file or directory

or:
./perl -MTestInit op/groups.t the message is:-sh: ./perl: No such file

or:
./perl harness the message is:-sh: ./perl: No such file

Can you please help me with that. I need to be able to cross compile
Linux on the ARM-Linux device as soon as possible and I really need
your help here.

I'm sure I'm doing something wrong or I'm missing some steps. Help!!

Thanks.
 
Old 05-17-2009, 01:17 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

A general way to test a version of 'perl'
Make a test compile on the host system :
'./Configure --prefix=/home/"username"/test-perl5.x.x'
with a 3.4.x compiler, and see how that works.

Asking a question : Always tell which Linux is used.
> > Linux "name", version. !
And the version of the application in question.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....

Last edited by knudfl; 05-17-2009 at 01:19 AM.
 
  


Reply

Tags
cross



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cross compile problem dreamhunter Linux - Embedded & Single-board computer 4 02-16-2009 06:58 AM
problem cross compile samba lbdgwgt Linux - Software 1 12-14-2006 05:35 AM
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 12:44 AM
cross compile PATH problem karfei00 Linux - Newbie 1 06-16-2004 07:39 AM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration