Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] perl XS modules
@ 2016-07-08  7:59 Arne Caspari
  2016-07-08 15:40 ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Arne Caspari @ 2016-07-08  7:59 UTC (permalink / raw)
  To: buildroot

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-07-12 11:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-08  7:59 [Buildroot] perl XS modules Arne Caspari
2016-07-08 15:40 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox