* [gentoo-embedded] cross compiling libperl
@ 2006-11-20 3:13 Corey
0 siblings, 0 replies; 10+ messages in thread
From: Corey @ 2006-11-20 3:13 UTC (permalink / raw
To: gentoo-embedded
Are there any patches for cross compiling libperl available?
I'm running into (so far, at least one) issue where configure goes and attempts
to test things by creating a simple c program ('try.c'), which fails to run because
it compiled it using (in my particular case) i686-pc-linux-uclibc-gcc.
Here's the output from the configure, as run through my crossdev:
"I've tried to compile and run the following simple program:
#include <stdio.h>
int main() { printf("Ok\n"); return(0); }
I used the command:
i686-pc-linux-uclibc-gcc -o try -O2 -DOVR_DBL_DIG=14 -I/usr/local/include -L/usr/local/lib try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
./try
and I got the following output:
/bin/sh: ./try: No such file or directory
The program compiled OK, but exited with status 127."
Here's the relevant portion from ./configure:
: coherency check
echo " "
echo "Checking your choice of C compiler and flags for coherency..." >&4
$cat > try.c <<'EOF'
#include <stdio.h>
int main() { printf("Ok\n"); return(0); }
EOF
set X $cc -o try $optimize $ccflags $ldflags try.c $libs
shift
$cat >try.msg <<'EOM'
I've tried to compile and run the following simple program:
EOM
$cat try.c >> try.msg
$cat >> try.msg <<EOM
I used the command:
$*
$run ./try
and I got the following output:
EOM
I'm wondering if this is a know issue and/or what's the best way of getting around it?
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-embedded] Cross compiling libperl
@ 2007-11-12 17:07 Petric Frank
2007-11-12 16:50 ` Karl Hiramoto
2007-11-19 4:08 ` Mike Frysinger
0 siblings, 2 replies; 10+ messages in thread
From: Petric Frank @ 2007-11-12 17:07 UTC (permalink / raw
To: gentoo-embedded
Hello,
i've read the mail from Corey <corey@...> (dd. 2006-11-20 03:13:19 GMT).
The problem is that the build process compiles a test program for the
destination platform and afterwards it tries to execute it.
This will never work when cross compiling.
Are there any workarounds available (patches for the ebuild, etc.) ?
regards
Petric
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-12 17:07 [gentoo-embedded] Cross " Petric Frank
@ 2007-11-12 16:50 ` Karl Hiramoto
2007-11-14 8:01 ` Christopher Friedt
2007-11-19 4:08 ` Mike Frysinger
2007-11-19 4:08 ` Mike Frysinger
1 sibling, 2 replies; 10+ messages in thread
From: Karl Hiramoto @ 2007-11-12 16:50 UTC (permalink / raw
To: gentoo-embedded
Petric Frank wrote:
> Hello,
>
> i've read the mail from Corey <corey@...> (dd. 2006-11-20 03:13:19 GMT).
>
> The problem is that the build process compiles a test program for the
> destination platform and afterwards it tries to execute it.
> This will never work when cross compiling.
>
> Are there any workarounds available (patches for the ebuild, etc.) ?
>
> regards
> Petric
>
There are a lot of packages like this that come this way from upstream
Options that have worked for me
1. modify the configure script and/or makefiles to not run the test program
2. In a few cases i complied gcc for my ARM platform, then compiled
natively.. I think perl was one of these.. It took hours to compile..
--
Karl.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-12 16:50 ` Karl Hiramoto
@ 2007-11-14 8:01 ` Christopher Friedt
2007-11-19 4:08 ` Mike Frysinger
1 sibling, 0 replies; 10+ messages in thread
From: Christopher Friedt @ 2007-11-14 8:01 UTC (permalink / raw
To: gentoo-embedded
Alternatively, what I've done in the past, was actually natively compile
badly behaved packages using Qemu/ARM.
This is naturally slightly slower.
Chris
Karl Hiramoto wrote:
> Petric Frank wrote:
>> Hello,
>>
>> i've read the mail from Corey <corey@...> (dd. 2006-11-20 03:13:19 GMT).
>>
>> The problem is that the build process compiles a test program for the
>> destination platform and afterwards it tries to execute it.
>> This will never work when cross compiling.
>>
>> Are there any workarounds available (patches for the ebuild, etc.) ?
>>
>> regards
>> Petric
>>
>
> There are a lot of packages like this that come this way from upstream
>
> Options that have worked for me
> 1. modify the configure script and/or makefiles to not run the test program
>
> 2. In a few cases i complied gcc for my ARM platform, then compiled
> natively.. I think perl was one of these.. It took hours to compile..
>
> --
> Karl.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-12 16:50 ` Karl Hiramoto
2007-11-14 8:01 ` Christopher Friedt
@ 2007-11-19 4:08 ` Mike Frysinger
1 sibling, 0 replies; 10+ messages in thread
From: Mike Frysinger @ 2007-11-19 4:08 UTC (permalink / raw
To: gentoo-embedded; +Cc: Karl Hiramoto
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
On Monday 12 November 2007, Karl Hiramoto wrote:
> Options that have worked for me
> 1. modify the configure script and/or makefiles to not run the test
> program
this isnt an option for perl ... it's 100% crap that is specific to perl.
it's a large hand written script
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-12 17:07 [gentoo-embedded] Cross " Petric Frank
2007-11-12 16:50 ` Karl Hiramoto
@ 2007-11-19 4:08 ` Mike Frysinger
2007-11-19 17:59 ` Petric Frank
1 sibling, 1 reply; 10+ messages in thread
From: Mike Frysinger @ 2007-11-19 4:08 UTC (permalink / raw
To: gentoo-embedded; +Cc: Petric Frank
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
On Monday 12 November 2007, Petric Frank wrote:
> The problem is that the build process compiles a test program for the
> destination platform and afterwards it tries to execute it.
> This will never work when cross compiling.
>
> Are there any workarounds available (patches for the ebuild, etc.) ?
only workaround for perl is to get a binary or build it natively
i have a work-in-progress patch on wh0rd.org's svn
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-19 4:08 ` Mike Frysinger
@ 2007-11-19 17:59 ` Petric Frank
2007-11-20 5:26 ` Mike Frysinger
0 siblings, 1 reply; 10+ messages in thread
From: Petric Frank @ 2007-11-19 17:59 UTC (permalink / raw
To: gentoo-embedded
Hello,
On Montag, 19. November 2007, Mike Frysinger wrote:
> > The problem is that the build process compiles a test program for the
> > destination platform and afterwards it tries to execute it.
> > This will never work when cross compiling.
> >
> > Are there any workarounds available (patches for the ebuild, etc.) ?
>
> only workaround for perl is to get a binary or build it natively
>
> i have a work-in-progress patch on wh0rd.org's svn
I've found it. Shall i do a test with it or is it currently too unstable ?
regards
Petric
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-19 17:59 ` Petric Frank
@ 2007-11-20 5:26 ` Mike Frysinger
2007-11-20 18:34 ` Petric Frank
0 siblings, 1 reply; 10+ messages in thread
From: Mike Frysinger @ 2007-11-20 5:26 UTC (permalink / raw
To: gentoo-embedded; +Cc: Petric Frank
[-- Attachment #1: Type: text/plain, Size: 763 bytes --]
On Monday 19 November 2007, Petric Frank wrote:
> On Montag, 19. November 2007, Mike Frysinger wrote:
> > > The problem is that the build process compiles a test program for the
> > > destination platform and afterwards it tries to execute it.
> > > This will never work when cross compiling.
> > >
> > > Are there any workarounds available (patches for the ebuild, etc.) ?
> >
> > only workaround for perl is to get a binary or build it natively
> >
> > i have a work-in-progress patch on wh0rd.org's svn
>
> I've found it. Shall i do a test with it or is it currently too unstable ?
i'm pretty sure the code that is in there is fine, but it's incomplete ... so
unless you feel like hackin on the patch to flesh it out more, dont bother
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-embedded] Cross compiling libperl
2007-11-20 5:26 ` Mike Frysinger
@ 2007-11-20 18:34 ` Petric Frank
2007-11-21 17:40 ` Mike Frysinger
0 siblings, 1 reply; 10+ messages in thread
From: Petric Frank @ 2007-11-20 18:34 UTC (permalink / raw
To: gentoo-embedded
Hello Mike,
On Dienstag, 20. November 2007, Mike Frysinger wrote:
> On Monday 19 November 2007, Petric Frank wrote:
> > On Montag, 19. November 2007, Mike Frysinger wrote:
> > > > The problem is that the build process compiles a test program for the
> > > > destination platform and afterwards it tries to execute it.
> > > > This will never work when cross compiling.
> > > >
> > > > Are there any workarounds available (patches for the ebuild, etc.) ?
> > >
> > > only workaround for perl is to get a binary or build it natively
> > >
> > > i have a work-in-progress patch on wh0rd.org's svn
> >
> > I've found it. Shall i do a test with it or is it currently too unstable
> > ?
>
> i'm pretty sure the code that is in there is fine, but it's incomplete ...
> so unless you feel like hackin on the patch to flesh it out more, dont
> bother -mike
Actually i am patching on different areas. So at the moment i haven't the time
to begin another war ...
Could you leave me a note when you think the patch is ready to be used ?
regards
Petric
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-11-21 17:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20 3:13 [gentoo-embedded] cross compiling libperl Corey
-- strict thread matches above, loose matches on Subject: below --
2007-11-12 17:07 [gentoo-embedded] Cross " Petric Frank
2007-11-12 16:50 ` Karl Hiramoto
2007-11-14 8:01 ` Christopher Friedt
2007-11-19 4:08 ` Mike Frysinger
2007-11-19 4:08 ` Mike Frysinger
2007-11-19 17:59 ` Petric Frank
2007-11-20 5:26 ` Mike Frysinger
2007-11-20 18:34 ` Petric Frank
2007-11-21 17:40 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox