public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [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

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