[OE-core] small number of perl modules that can't be cross-compiled
Jens Rehsack
rehsack at gmail.com
Fri Nov 18 13:03:39 UTC 2016
> Am 18.11.2016 um 13:27 schrieb André Draszik <git at andred.net>:
>
> On Fri, 2016-11-18 at 06:41 -0500, Robert P. J. Day wrote:
>> after OE recipfying over 100 perl modules from CPAN, i'm down to
>> less than a dozen that are going to take more work, and a small number
>> of those seem to be simply badly written in that they don't support
>> cross-compilation for my target choice of "qemuppc". example
>> boilerplate recipe i put together produces this:
>>
>> $ make libauthen-pam-perl
>> ... snip ...
>> Checking if your kit is complete...
>> Looks good
>> checking for gcc... powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400
>> --
>> sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemup
>> pc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... configure: error: cannot run
>> C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>
> It'd be useful to see config.log, ...
>
>> Error in configuring the Authen::PAM module.
>> ... snip ...
>>
>> so i'm assuming the source itself for Authen::PAM:
>>
>> https://metacpan.org/pod/Authen::PAM
>>
>> is somehow flawed in that it doesn't properly recognize
>> cross-compilation, would that be it?
>
> ... there is at least one issue in Authen-PAM-0.16/configure.ac, I would
> say, in that it tries to detect RTLD_GLOBAL support based on the host's
> perl. So it's likely there are more flaws.
Looks as if Makefile.PL doesn't pass all reasonable flags to ./configure call.
Maybe you should send the Author to http://act.yapc.eu/lpw2016/talk/6966 or
at least send him http://www.netbsd.org/~sno/talks/nrpm/Cross-Compiling-For-Perl-Hackers.pdf :)
Cheers
--
Jens Rehsack - rehsack at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161118/1be2ec78/attachment-0002.sig>
More information about the Openembedded-core
mailing list