<div dir="ltr">It worked :D.<div>Thank you very much for your support.<br><div><br></div><div>Best regards,</div><div>Nuno Mota</div></div></div><br><div class="gmail_quote"><div dir="ltr">Christopher McCrory <<a href="mailto:chrismcc@gmail.com" target="_blank">chrismcc@gmail.com</a>> escreveu no dia quinta, 8/11/2018 à(s) 16:43:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 1:53 PM Nuno Mota <<a href="mailto:nrmmota@gmail.com" target="_blank">nrmmota@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div>I'm using buildroot for a project and so far so good. I've added a lot of perl modules, but a new one just failed. I have no clue how to fix this.</div><div>I simply cloned this git project to use swupdate <a href="https://github.com/Trellis-Logic/buildroot-external/tree/swupdate" target="_blank">https://github.com/Trellis-Logic/buildroot-external/tree/swupdate</a></div><div><br></div><div><div>>>> perl-termreadkey 2.37 Building</div><div>cd /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/ && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB= PERL_USE_UNSAFE_INC=1 /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build  build; else /usr/bin/make -j1 PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE FIXIN=:  pure_all; fi</div><div>"/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644</div><div>"/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm</div><div>Creating ReadKey.pm</div><div>Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class: ELFCLASS32 at /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm line 193.</div><div> at /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm line 95.</div><div><span style="white-space:pre-wrap">      </span>DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for modul"...) called at /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm line 193</div><div><span style="white-space:pre-wrap">   </span>DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515</div><div>Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255</div><div>make[1]: *** [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built] Error 2</div><div>make: *** [_all] Error 2</div><div>make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'</div></div><div><br></div></div></div></div></blockquote><div><br></div><div>Try this (I used toolchain-external-linaro-armeb-2018.05 to test)<br></div><div><br></div><div><br></div><div> cat Config.in <br>config BR2_PACKAGE_PERL_TERMREADKEY<br>    bool "perl-termreadkey"<br>    depends on !BR2_STATIC_LIBS<br>    help<br>      Change terminal modes, and perform non-blocking reads.<br><br>      <a href="https://metacpan.org/release/TermReadKey" target="_blank">https://metacpan.org/release/TermReadKey</a><br><br>comment "perl-termreadkey needs a toolchain w/ dynamic library"<br>    depends on BR2_STATIC_LIBS<br></div><div><br></div><div>cat <a href="http://perl-termreadkey.mk" target="_blank">perl-termreadkey.mk</a> <br>################################################################################<br>#<br># perl-termreadkey<br>#<br>################################################################################<br><br>PERL_TERMREADKEY_VERSION = 2.37<br>PERL_TERMREADKEY_SOURCE = TermReadKey-$(PERL_TERMREADKEY_VERSION).tar.gz<br>PERL_TERMREADKEY_SITE = $(BR2_CPAN_MIRROR)/authors/id/J/JS/JSTOWE<br>#<br># The License for this package is, (air quotes) complicated<br># <a href="https://github.com/jonathanstowe/TermReadKey/issues/11" target="_blank">https://github.com/jonathanstowe/TermReadKey/issues/11</a><br>#<br># Fedora lists it as<br># (Copyright only) and (Artistic or GPL+)<br># <a href="https://src.fedoraproject.org/rpms/perl-TermReadKey/blob/master/f/perl-TermReadKey.spec" target="_blank">https://src.fedoraproject.org/rpms/perl-TermReadKey/blob/master/f/perl-TermReadKey.spec</a><br>#<br># Debian lists it as<br># License: Artistic or GPL-1+<br># <a href="https://sources.debian.org/src/libterm-readkey-perl/2.37-1/debian/copyright/" target="_blank">https://sources.debian.org/src/libterm-readkey-perl/2.37-1/debian/copyright/</a><br>#<br># OpenEmbedded lists it as<br># License     Artistic-1.0 | GPLv1+<br># <a href="https://layers.openembedded.org/layerindex/recipe/67518/" target="_blank">https://layers.openembedded.org/layerindex/recipe/67518/</a><br>#`<br>PERL_TERMREADKEY_LICENSE = Artistic or GPL-1.0+ ?<br>PERL_TERMREADKEY_LICENSE_FILES = README<br><br>PERL_TERMREADKEY_DEPENDENCIES = host-perl-termreadkey<br><br># At compile time, the makefile wants to use the compiled<br># ./blib/arch/auto/Term/ReadKey/ReadKey.so , but when cross-compiling this<br># fails. So build host variant and use that.  The correct ReadKey.so file is<br># still installed in TARGET_DIR.<br># Adapted from the OpenEmbeded script at:<br># <a href="http://cgit.openembedded.org/meta-openembedded/tree/meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.37.bb" target="_blank">http://cgit.openembedded.org/meta-openembedded/tree/meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.37.bb</a><br>#<br>define PERL_TERMREADKEY_POST_CONFIGURE_SED<br>    $(SED) "s#-I\$$(INST_ARCHLIB)#-I$(HOST_DIR)/lib/perl5/site_perl/$(PERL_VERSION)/$(PERL_ARCHNAME)#" $(@D)/Makefile<br>endef<br><br>PERL_TERMREADKEY_POST_CONFIGURE_HOOKS += PERL_TERMREADKEY_POST_CONFIGURE_SED<br><br>$(eval $(perl-package))<br>$(eval $(host-perl-package))<br></div><div><br></div><div><br></div></div><br>-- <br><div dir="ltr" class="m_6198872168091150104m_-8678483050123778261gmail_signature">Christopher McCrory<br>To the optimist, the glass is half full.<br>To the pessimist, the glass is half empty.<br>To the engineer, the glass is twice as big as it needs to be.</div></div></div></div></div>
</blockquote></div>