From: Arne Caspari <arne.caspari@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] perl XS modules
Date: Fri, 8 Jul 2016 09:59:10 +0200 [thread overview]
Message-ID: <20160708095910.621ad48a@gmail.com> (raw)
Hi all,
I try to build the libxml-parser-perl package for an ARM target.
Unfortunately the compiled perl module fails to load with the following
error message:
loadable library and perl binaries are mismatched
After some digging I found that the module needs to be compiled with
the same toolchain and compiler defines as the perl binary in order to
be ABI compatible. Forcing the defines to be exactly the same as the
ones used for the perl binary did not fix the issue so I believe it
must be a problem with the toolchain.
I get it right, buildroot builds the host-perl package with the GCC
installed on the build system. In my case this is GCC Version 6.1 while
the toolchain in buildroot uses 4.9.3. If I get the build procedure
right, the ABI for perl is then configured for the 6.1 toolchain while
module builds will use the toolchain provided by buildroot which is ABI
incompatible.
Is there a way to make buildroot build an initial toolchain to build
the host packages with? Did anybody ever successfully build perlXS
modules?
Thanks,
/Arne
next reply other threads:[~2016-07-08 7:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 7:59 Arne Caspari [this message]
2016-07-08 15:40 ` [Buildroot] perl XS modules Thomas Petazzoni
2016-07-12 8:00 ` François Perrad
2016-07-12 8:09 ` Thomas Petazzoni
2016-07-12 8:15 ` Arne Caspari
2016-07-12 8:56 ` Thomas Petazzoni
2016-07-12 9:04 ` Arne Caspari
2016-07-12 9:43 ` François Perrad
2016-07-12 10:16 ` Thomas Petazzoni
2016-07-12 11:05 ` François Perrad
2016-07-12 11:08 ` Thomas Petazzoni
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=20160708095910.621ad48a@gmail.com \
--to=arne.caspari@gmail.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