* small number of perl modules that can't be cross-compiled
@ 2016-11-18 11:41 Robert P. J. Day
2016-11-18 12:27 ` André Draszik
0 siblings, 1 reply; 8+ messages in thread
From: Robert P. J. Day @ 2016-11-18 11:41 UTC (permalink / raw)
To: OE Core mailing list
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/qemuppc
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.
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?
i'm about to peruse the build process, but if someone has a quick
answer as to what the issue is here, there are 2 or 3 other modules
that have exactly the same issue. much thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: small number of perl modules that can't be cross-compiled 2016-11-18 11:41 small number of perl modules that can't be cross-compiled Robert P. J. Day @ 2016-11-18 12:27 ` André Draszik 2016-11-18 12:46 ` Robert P. J. Day 2016-11-18 13:03 ` Jens Rehsack 0 siblings, 2 replies; 8+ messages in thread From: André Draszik @ 2016-11-18 12:27 UTC (permalink / raw) To: Robert P. J. Day, OE Core mailing list 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. A. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small number of perl modules that can't be cross-compiled 2016-11-18 12:27 ` André Draszik @ 2016-11-18 12:46 ` Robert P. J. Day 2016-11-18 13:15 ` André Draszik 2016-11-18 13:03 ` Jens Rehsack 1 sibling, 1 reply; 8+ messages in thread From: Robert P. J. Day @ 2016-11-18 12:46 UTC (permalink / raw) To: André Draszik; +Cc: OE Core mailing list [-- Attachment #1: Type: text/plain, Size: 4670 bytes --] On Fri, 18 Nov 2016, André Draszik wrote: > 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, ... see bottom. > > 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. that's pretty much all i wanted to confirm at this point -- that it wasn't something stupid i was doing; rather, the source itself is flawed, and that's not the only example. rday DEBUG: Executing python function sysroot_cleansstate DEBUG: Python function sysroot_cleansstate finished DEBUG: Executing shell function do_configure *** Module name IN: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/perl/5.22.0/Cwd.pm *** p1: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/ p3: perl/5.22.0/ p5: Cwd.pm *** Module name OUT: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.22.0/Cwd.pm *** Module name IN: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/perl/5.22.0/Encode.pm *** p1: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/ p3: perl/5.22.0/ p5: Encode.pm *** Module name OUT: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.22.0/Encode.pm *** Module name IN: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/perl/5.22.0/I18N/Langinfo.pm *** p1: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/ p3: perl/5.22.0/ p5: I18N/Langinfo.pm *** Module name OUT: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.22.0/I18N/Langinfo.pm *** Module name IN: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/perl/5.22.0/B.pm *** p1: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/ p3: perl/5.22.0/ p5: B.pm *** Module name OUT: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.22.0/B.pm *** Module name IN: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/perl/5.22.0/List/Util.pm *** p1: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/lib/ p3: perl/5.22.0/ p5: List/Util.pm *** Module name OUT: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.22.0/List/Util.pm 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/qemuppc 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. Error in configuring the Authen::PAM module. WARNING: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/work/ppc7400-wrs-linux/libauthen-pam-perl/0.16-r0/temp/do_configure/run.do_configure.16119:1 exit 25 from perl Makefile.PL INSTALLDIRS=vendor ERROR: Function failed: do_configure (log file is located at /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/work/ppc7400-wrs-linux/libauthen-pam-perl/0.16-r0/temp/do_configure/log.do_configure.16119) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small number of perl modules that can't be cross-compiled 2016-11-18 12:46 ` Robert P. J. Day @ 2016-11-18 13:15 ` André Draszik 2016-11-18 14:09 ` Robert P. J. Day 0 siblings, 1 reply; 8+ messages in thread From: André Draszik @ 2016-11-18 13:15 UTC (permalink / raw) To: Robert P. J. Day; +Cc: OE Core mailing list On Fri, 2016-11-18 at 07:46 -0500, Robert P. J. Day wrote: > On Fri, 18 Nov 2016, André Draszik wrote: > > > 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/q > > > emup > > > 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, ... > > see bottom. That message is referring to config.log from autotools, not the bitbake do_configure.log. Should be somewhere below ${B} Cheers, a. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small number of perl modules that can't be cross-compiled 2016-11-18 13:15 ` André Draszik @ 2016-11-18 14:09 ` Robert P. J. Day 2016-11-18 14:50 ` André Draszik 0 siblings, 1 reply; 8+ messages in thread From: Robert P. J. Day @ 2016-11-18 14:09 UTC (permalink / raw) To: André Draszik; +Cc: OE Core mailing list [-- Attachment #1: Type: text/plain, Size: 11326 bytes --] On Fri, 18 Nov 2016, André Draszik wrote: > On Fri, 2016-11-18 at 07:46 -0500, Robert P. J. Day wrote: > > On Fri, 18 Nov 2016, André Draszik wrote: > > > > > 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/q > > > > emup > > > > 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, ... > > > > see bottom. > > That message is referring to config.log from autotools, not the > bitbake do_configure.log. Should be somewhere below ${B} sorry, my mistake ... see below: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Authen::PAM configure 0.16, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = localhost.localdomain uname -m = x86_64 uname -r = 4.7.7-100.fc23.x86_64 uname -s = Linux uname -v = #1 SMP Fri Oct 7 22:16:13 UTC 2016 /usr/bin/uname -p = x86_64 /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/perl-native PATH: /home/rpjday/WRL/builds/msm/nov17/layers/oe-core/scripts PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/powerpc-wrs-linux PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc/usr/bin/crossscripts PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/sbin PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/bin PATH: /home/rpjday/WRL/builds/msm/nov17/layers/oe-core/scripts PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake/bin PATH: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin PATH: /home/rpjday/WRL/builds/msm/nov17/layers/wrlinux/scripts PATH: /home/rpjday/WRL/builds/msm/nov17/scripts PATH: /scripts PATH: /home/rpjday/oe/dist/bin/bb/bin PATH: /home/rpjday/oe/dist/bin/bb/bin PATH: /usr/local/bin PATH: /usr/local/sbin PATH: /usr/bin PATH: /usr/sbin PATH: /home/rpjday/.local/bin PATH: /home/rpjday/bin PATH: /home/rpjday/WRL/builds/msm/nov17/layers/wrlinux/scripts PATH: /home/rpjday/WRL/builds/msm/nov17/layers/wrlcompat/scripts PATH: /home/rpjday/WRL/builds/msm/nov17/layers/local/scripts ## ----------- ## ## Core tests. ## ## ----------- ## configure:1313: checking for gcc configure:1339: result: powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc configure:1583: checking for C compiler version configure:1586: powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc --version </dev/null >&5 powerpc-wrs-linux-gcc (Wind River Linux 5.2.0-8.0-qemuppc) 5.2.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1589: $? = 0 configure:1591: powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc -v </dev/null >&5 Using built-in specs. COLLECT_GCC=powerpc-wrs-linux-gcc COLLECT_LTO_WRAPPER=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/libexec/powerpc-wrs-linux/gcc/powerpc-wrs-linux/5.2.0/lto-wrapper Target: powerpc-wrs-linux Configured with: /home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/work-shared/gcc-5.2.0-r0/gcc-5.2.0/configure --build=x86_64-linux --host=x86_64-linux --target=powerpc-wrs-linux --prefix=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr --exec_prefix=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr --bindir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/powerpc-wrs-linux --sbindir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/powerpc-wrs-linux --libexecdir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/libexec/powerpc-wrs-linux --datadir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/com --localstatedir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/var --libdir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/powerpc-wrs-linux --includedir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/include --infodir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux --enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=powerpc-wrs-linux- --without-local-prefix --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/5.2.0 --with-sysroot=/not/exist --with-build-sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc --enable-secureplt --with-long-double-128 --enable-targets=powerpc64 --enable-poison-system-directories --with-mpfr=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls --enable-__cxa_atexit --with-pkgversion='Wind River Linux 5.2.0-8.0-qemuppc' --with-bugurl=support@windriver.com Thread model: posix gcc version 5.2.0 (Wind River Linux 5.2.0-8.0-qemuppc) configure:1594: $? = 0 configure:1596: powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc -V </dev/null >&5 powerpc-wrs-linux-gcc: error: unrecognized command line option '-V' powerpc-wrs-linux-gcc: fatal error: no input files compilation terminated. configure:1599: $? = 1 configure:1622: checking for C compiler default output file name configure:1625: powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc -O2 -pipe -g -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5 configure:1628: $? = 0 configure:1674: result: a.out configure:1679: checking whether the C compiler works configure:1685: ./a.out ./configure: line 1686: ./a.out: cannot execute binary file: Exec format error configure:1688: $? = 126 configure:1697: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set=set ac_cv_env_CC_value='powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=' -O2 -pipe -g ' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set=set ac_cv_env_CPP_value='powerpc-wrs-linux-gcc -E --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc -m32 -mhard-float -mcpu=7400' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed' ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_prog_ac_ct_CC='powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc' ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc' CFLAGS=' -O2 -pipe -g ' CPP='powerpc-wrs-linux-gcc -E --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc -m32 -mhard-float -mcpu=7400' CPPFLAGS='' DEFS='' DL_LOAD_FLAGS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' LDFLAGS='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed' LIBOBJS='' LIBS='' LTLIBOBJS='' OBJEXT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='Authen::PAM' PACKAGE_STRING='Authen::PAM 0.16' PACKAGE_TARNAME='Authen-PAM' PACKAGE_VERSION='0.16' PATH_SEPARATOR=':' SHELL='/bin/sh' ac_ct_CC='powerpc-wrs-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/rpjday/WRL/builds/msm/nov17/bitbake_build/tmp/sysroots/qemuppc' bindir='${exec_prefix}/bin' build_alias='' datadir='${prefix}/share' exec_prefix='NONE' host_alias='' includedir='${prefix}/include' infodir='${prefix}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' oldincludedir='/usr/include' prefix='NONE' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "Authen::PAM" #define PACKAGE_STRING "Authen::PAM 0.16" #define PACKAGE_TARNAME "Authen-PAM" #define PACKAGE_VERSION "0.16" configure: exit 1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small number of perl modules that can't be cross-compiled 2016-11-18 14:09 ` Robert P. J. Day @ 2016-11-18 14:50 ` André Draszik 2016-11-18 14:55 ` Robert P. J. Day 0 siblings, 1 reply; 8+ messages in thread From: André Draszik @ 2016-11-18 14:50 UTC (permalink / raw) To: Robert P. J. Day; +Cc: OE Core mailing list On Fri, 2016-11-18 at 09:09 -0500, Robert P. J. Day wrote: > On Fri, 18 Nov 2016, André Draszik wrote: > > > On Fri, 2016-11-18 at 07:46 -0500, Robert P. J. Day wrote: > > > On Fri, 18 Nov 2016, André Draszik wrote: > > > > > > > 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/sysroo > > > > > ts/q > > > > > emup > > > > > 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, ... > > > > > > see bottom. > > > > That message is referring to config.log from autotools, not the > > bitbake do_configure.log. Should be somewhere below ${B} > > sorry, my mistake ... see below: > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > It was created by Authen::PAM configure 0.16, which was > generated by GNU Autoconf 2.59. Invocation command line was > > $ ./configure I think the issues are in your recipe. You should see *many* arguments to configure. In particular --build= --host= --target=, but many more. Also, this explains that message: configure:1697: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. Cheers, Andre' ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small number of perl modules that can't be cross-compiled 2016-11-18 14:50 ` André Draszik @ 2016-11-18 14:55 ` Robert P. J. Day 0 siblings, 0 replies; 8+ messages in thread From: Robert P. J. Day @ 2016-11-18 14:55 UTC (permalink / raw) To: André Draszik; +Cc: OE Core mailing list [-- Attachment #1: Type: text/plain, Size: 2854 bytes --] On Fri, 18 Nov 2016, André Draszik wrote: > On Fri, 2016-11-18 at 09:09 -0500, Robert P. J. Day wrote: > > On Fri, 18 Nov 2016, André Draszik wrote: > > > > > On Fri, 2016-11-18 at 07:46 -0500, Robert P. J. Day wrote: > > > > On Fri, 18 Nov 2016, André Draszik wrote: > > > > > > > > > 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/sysroo > > > > > > ts/q > > > > > > emup > > > > > > 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, ... > > > > > > > > see bottom. > > > > > > That message is referring to config.log from autotools, not the > > > bitbake do_configure.log. Should be somewhere below ${B} > > > > sorry, my mistake ... see below: > > > > This file contains any messages produced by compilers while > > running configure, to aid debugging if configure makes a mistake. > > > > It was created by Authen::PAM configure 0.16, which was > > generated by GNU Autoconf 2.59. Invocation command line was > > > > $ ./configure > > I think the issues are in your recipe. You should see *many* arguments to > configure. In particular --build= --host= --target=, but many more. > > Also, this explains that message: > > configure:1697: error: cannot run C compiled programs. > If you meant to cross compile, use `--host'. i realize that now, so that will be today's project. thanks. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: small number of perl modules that can't be cross-compiled 2016-11-18 12:27 ` André Draszik 2016-11-18 12:46 ` Robert P. J. Day @ 2016-11-18 13:03 ` Jens Rehsack 1 sibling, 0 replies; 8+ messages in thread From: Jens Rehsack @ 2016-11-18 13:03 UTC (permalink / raw) To: André Draszik; +Cc: OE Core mailing list [-- Attachment #1: Type: text/plain, Size: 1831 bytes --] > Am 18.11.2016 um 13:27 schrieb André Draszik <git@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@gmail.com [-- Attachment #2: Message signed with OpenPGP using GPGMail --] [-- Type: application/pgp-signature, Size: 859 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-11-18 14:56 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-18 11:41 small number of perl modules that can't be cross-compiled Robert P. J. Day 2016-11-18 12:27 ` André Draszik 2016-11-18 12:46 ` Robert P. J. Day 2016-11-18 13:15 ` André Draszik 2016-11-18 14:09 ` Robert P. J. Day 2016-11-18 14:50 ` André Draszik 2016-11-18 14:55 ` Robert P. J. Day 2016-11-18 13:03 ` Jens Rehsack
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox