Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559574 - dev-lang/perl-5.20.2 fails the configure phase on ARM when cross-compiling
Summary: dev-lang/perl-5.20.2 fails the configure phase on ARM when cross-compiling
Status: RESOLVED DUPLICATE of bug 134650
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-04 08:41 UTC by Vince C.
Modified: 2015-09-07 23:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
perl-5.20.2 build log for armv7a-hardfloat-linux-gnueabi (build.log,10.45 KB, text/plain)
2015-09-04 08:45 UTC, Vince C.
Details
perl-5.20.2 build environment for armv7a-hardfloat-linux-gnueabi (environment,99.86 KB, text/plain)
2015-09-04 08:49 UTC, Vince C.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vince C. 2015-09-04 08:41:36 UTC
Cross-compiling perl-5.20.2 for the armv7a architecture fails during the configure phase with the following message:

Checking your choice of C compiler and flags for coherency...
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:

        armv7a-hardfloat-linux-gnueabi-gcc -o try -O2 -pipe -fomit-frame-pointer -DOVR_DBL_DIG=14 -Wl,-O1 -Wl,--as-needed try.c -lnsl -ldb -ldl -lm -lcrypt -lutil -lc
         ./try

and I got the following output:

/bin/sh: ./try: cannot execute binary file: Exec format error
The program compiled OK, but exited with status 126.
You have a problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.


Reproducible: Always

Steps to Reproduce:
armv7a-hardfloat-linux-gnueabi-emerge -a1 perl



armv7a-hardfloat-linux-gnueabi-4.8.5 is selected for the ARM toolchain. I have also upgraded my crossdev toolchain from GCC 4.8.3 to 4.8.5 with:

crossdev -S --target armv7a-hardfloat-linux-gnueabi

and everything went fine. It's also the first time I have to include perl to the target platform. I managed to skip it so far.
Comment 1 Vince C. 2015-09-04 08:45:58 UTC
Created attachment 410978 [details]
perl-5.20.2 build log for armv7a-hardfloat-linux-gnueabi
Comment 2 Vince C. 2015-09-04 08:49:07 UTC
Created attachment 410980 [details]
perl-5.20.2 build environment for armv7a-hardfloat-linux-gnueabi

This environment is "tainted" with Linux Mint (Ubuntu) environment as my Gentoo crossdev toolchain runs in a chroot. (In case it matters...)
Comment 3 Vince C. 2015-09-04 18:53:11 UTC
(In reply to Vince C. from comment #2)

> This environment is "tainted" with Linux Mint (Ubuntu) environment [...]

I was not being objective enough:

    This environment *might be* "tainted" [...]

because I had not verified it. Seeing such a large environment with bash functions made me think of what happens on a Debian machine. Now that I have read at least half of it I realize this is just Gentoo build functions. So take my last assertion with a grain of salt.
Comment 4 SpanKY gentoo-dev 2015-09-07 23:44:18 UTC

*** This bug has been marked as a duplicate of bug 134650 ***