Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
Date: Thu, 1 Nov 2018 12:04:22 +0100	[thread overview]
Message-ID: <20181101120422.381449c6@windsurf> (raw)
In-Reply-To: <CAAnJVhCshyo-nHCVo303qLJiXJd8c7xh91-mDHgFsDn4VyYoVw@mail.gmail.com>

Hello Nuno,

I'm adding Fran?ois and Christopher in Cc, since they are the two
developers using/working on Perl support in Buildroot.

On Wed, 31 Oct 2018 20:53:14 +0000, Nuno Mota wrote:
> Hi,
> 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.
> I simply cloned this git project to use swupdate
> https://github.com/Trellis-Logic/buildroot-external/tree/swupdate

Could you share your entire Buildroot tree, with the perl-termreadkey
package and its dependencies ?

Thanks!

Thomas

(I'm keeping the full build output below, so that Fran?ois and
Christopher can easily see it).

> 
> >>> perl-termreadkey 2.37 Building  
> 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
> "/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
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
> Creating ReadKey.pm
> 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.
>  at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 95.
> 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
> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
> Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
> make[1]: ***
> [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
> Error 2
> make: *** [_all] Error 2
> make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'
> 
> This is now my external config:
> BR2_x86_nocona=y
> BR2_KERNEL_HEADERS_4_15=y
> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
> BR2_PTHREAD_DEBUG=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_TARGET_GENERIC_HOSTNAME="gsgateway"
> BR2_TARGET_GENERIC_ISSUE="Welcome"
> BR2_TARGET_GENERIC_PASSWD_SHA512=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
> BR2_ROOTFS_USERS_TABLES="../base_external/configs/users.config"
> BR2_ROOTFS_OVERLAY="../base_external/rootfs-overlay"
> BR2_ROOTFS_POST_BUILD_SCRIPT="../base_external/scripts/pre-image.sh"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="../base_external/scripts/post-image.sh"
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../base_external/configs/linux_kernel_defconfig"
> BR2_LINUX_KERNEL_INSTALL_TARGET=y
> BR2_PACKAGE_BUSYBOX_CONFIG="../base_external/configs/busybox.config"
> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> BR2_PACKAGE_VLC=y
> BR2_PACKAGE_DMIDECODE=y
> BR2_PACKAGE_PERL=y
> BR2_PACKAGE_PERL_MOJOLICIOUS_PLUGIN_AUTHENTICATION=y
> BR2_PACKAGE_EVENTLOG=y
> BR2_PACKAGE_LINUX_PAM=y
> BR2_PACKAGE_PCRE_UCP=y
> BR2_PACKAGE_BWM_NG=y
> BR2_PACKAGE_IFTOP=y
> BR2_PACKAGE_IFUPDOWN=y
> BR2_PACKAGE_IPTABLES=y
> BR2_PACKAGE_NGINX=y
> BR2_PACKAGE_NGINX_HTTP_CACHE=y
> BR2_PACKAGE_NGINX_HTTP_SSL_MODULE=y
> BR2_PACKAGE_NGINX_HTTP_V2_MODULE=y
> BR2_PACKAGE_OPENSSH=y
> BR2_PACKAGE_OPENVPN=y
> BR2_PACKAGE_TCPDUMP=y
> BR2_PACKAGE_TRACEROUTE=y
> BR2_PACKAGE_VSFTPD=y
> BR2_PACKAGE_FILE=y
> BR2_PACKAGE_LOGROTATE=y
> BR2_PACKAGE_SUDO=y
> BR2_PACKAGE_HTOP=y
> BR2_PACKAGE_SWUPDATE=y
> BR2_PACKAGE_SWUPDATE_CONFIG="../base_external/configs/swupdate.config"
> # BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE is not set
> BR2_PACKAGE_UTIL_LINUX_FSCK=y
> BR2_PACKAGE_UTIL_LINUX_KILL=y
> BR2_PACKAGE_UTIL_LINUX_LAST=y
> BR2_PACKAGE_UTIL_LINUX_LOGGER=y
> BR2_PACKAGE_UTIL_LINUX_MORE=y
> BR2_PACKAGE_UTIL_LINUX_MOUNT=y
> BR2_TARGET_ROOTFS_EXT2=y
> BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
> # BR2_TARGET_ROOTFS_TAR is not set
> BR2_TARGET_GRUB2=y
> BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat squash4 part_msdos
> part_gpt normal biosdisk loadenv search"
> BR2_PACKAGE_HOST_GENIMAGE=y
> BR2_PACKAGE_PERL_SWITCH=y
> BR2_PACKAGE_PERL_DATA_VALIDATE_IP=y
> BR2_PACKAGE_PERL_AUTHEN_PAM=y
> BR2_PACKAGE_PERL_TERMREADKEY=y
> 
> Thank you,
> NRM



-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-11-01 11:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31 20:53 [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey Nuno Mota
2018-11-01 11:04 ` Thomas Petazzoni [this message]
2018-11-01 17:36   ` François Perrad
2018-11-02 12:27     ` Nuno Mota
2018-11-03 21:18       ` Christopher McCrory
2018-11-05 21:25 ` Christopher McCrory
2018-11-05 21:36   ` Nuno Mota
2018-11-08 16:43 ` Christopher McCrory
2018-11-09 18:07   ` Nuno Mota

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181101120422.381449c6@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox