Skip to contentSkip to conversation

Fix microperl

PATCH New Arnout Vandecappelle (Essensium/Mind) 5 participants 7 messages Mar 4, 2012 – Mar 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix microperl

It misses -lm when compiling miniperl

---
This is actually a quite old perl version, and it's not even converted to GENTARGETS. Should we deprecate it?

 package/microperl/microperl.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/microperl/microperl.mk +1 -1
index b68e825..de5ecd6 100644
@@ -32,7 +32,7 @@ $(MICROPERL_DIR)/.source: $(DL_DIR)/$(MICROPERL_SOURCE)
 
 $(MICROPERL_DIR)/.host_configured: $(MICROPERL_DIR)/.source
 	# we need to build a perl for the host just for Errno.pm
-	(cd $(MICROPERL_DIR); ./Configure -Dcc="$(HOSTCC)" -de  )
+	(cd $(MICROPERL_DIR); ./Configure -Dcc="$(HOSTCC)" -de -A libs='-lm' )
 	touch $@
 
 
Signature · 1 line
tg: (dca6e03..) t/fix-microperl (depends on: master)
#1 lore raw

PATCH 1/1 Fix microperl

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

Arnout> It misses -lm when compiling miniperl
Arnout> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>

Committed, thanks.

Arnout> ---
Arnout> This is actually a quite old perl version, and it's not even converted Arnout> to GENTARGETS. Should we deprecate it?

Well, I think getting rid of it would be a pity, but I don't personally use perl so if nobody else is using it? Gustavoz?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 Fix microperl

It gets auto-built with the selection of the autoconf / automake packages... I'm not sure if it is 100% required, but I do know that if you are building a system that you plan to use to compile other software, some flavor of perl is often needed by the config scripts.

I bumped into this issue when attempting to create a system image with all of the necessary development tools for me to compile software for the embedded system I am working on... I know it can simply be cross-compiled, but being able to create a virtual appliance or chroot tree for people to build software for the target system in is handy.

Josh

Quoted 20 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

?Arnout> It misses -lm when compiling miniperl
?Arnout> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>

Committed, thanks.

?Arnout> ---
?Arnout> This is actually a quite old perl version, and it's not even converted ?Arnout> to GENTARGETS. ?Should we deprecate it?

Well, I think getting rid of it would be a pity, but I don't personally use perl so if nobody else is using it? Gustavoz?

--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH 1/1 Fix microperl

In reply to Peter Korsgaard

Hello,

Le Tue, 06 Mar 2012 22:21:32 +0100,
Peter Korsgaard <[email protected]> a ?crit :

Quoted 2 lines

Well, I think getting rid of it would be a pity, but I don't personally use perl so if nobody else is using it? Gustavoz?

Gustavo has a patch that does the conversion to GENTARGETS, he even posted it on the list at:

From: Gustavo Zacarias <[email protected]>
To: buildroot at busybox.net
Subject: [Buildroot] [PATCHv3] [RFC] microperl: bump to version 5.12.3 and convert to gentargets
Date: Tue, 17 May 2011 15:22:39 -0300

There was only one remaining issue: on a Ubuntu 64 bits host, the build was failing. But I think it also fails in the current state, so the patch that converts to GENTARGETS could be merged, and the building problem on Ubuntu 64 bits solved later.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH 1/1 Fix microperl

Quoted 23 lines · Thomas Petazzoni

Hello,

Le Tue, 06 Mar 2012 22:21:32 +0100,
Peter Korsgaard <[email protected]> a ?crit :

Quoted 2 lines

Well, I think getting rid of it would be a pity, but I don't personally use perl so if nobody else is using it? Gustavoz?

Gustavo has a patch that does the conversion to GENTARGETS, he even posted it on the list at:

From: Gustavo Zacarias <[email protected]>
To: buildroot at busybox.net
Subject: [Buildroot] [PATCHv3] [RFC] microperl: bump to version 5.12.3 and convert to gentargets
Date: Tue, 17 May 2011 15:22:39 -0300

There was only one remaining issue: on a Ubuntu 64 bits host, the build
was failing. But I think it also fails in the current state, so the patch that converts to GENTARGETS could be merged, and the building problem on Ubuntu 64 bits solved later.

Quoted 3 lines

Best regards,

Thomas

It has a limitation on modules at the moment, they must be of the pm (interpreted) type rather than the more complex xs ones (C usually). That's because full perl is required for xs which in turn requires a full-blown configuration.
For the most part it checks for libc functions and presence of other libs, and platform details (sizeof... and so on).
At the moment this would be "important" (not for me though) to get target autoconf/automake going since there are new required modules which are XS when the auto* packages were versioned bumped. The proper solution would probably be define the lowest denominator for libc, say uclibc-0.9.31, generate a cache on a qemu/working target and get that back into the package.
For the platform details it would be the same work.
This is more or less the way OE and OpenWRT do it.
And then there's module hell if we plan on Kconfig-ing those in an easy way for users :)
But i would split that into a proper perl package maybe, or with a config kludge.
Regards.

#5 lore raw

PATCH 1/1 Fix microperl

Le Wed, 07 Mar 2012 12:29:21 -0300,
Gustavo Zacarias <[email protected]> a ?crit :

Quoted 4 lines

It has a limitation on modules at the moment, they must be of the pm (interpreted) type rather than the more complex xs ones (C usually). That's because full perl is required for xs which in turn requires a full-blown configuration.

Ok.

Quoted 5 lines

For the most part it checks for libc functions and presence of other libs, and platform details (sizeof... and so on).
At the moment this would be "important" (not for me though) to get target autoconf/automake going since there are new required modules which are XS when the auto* packages were versioned bumped.

Could you expand on this, because I'm not sure I got what you said.

Quoted 3 lines

The proper solution would probably be define the lowest denominator for libc, say uclibc-0.9.31, generate a cache on a qemu/working target and get that back into the package.

A bit like what we do for ./configure scripts already, at the end of package/Makefile.in, correct?

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#6 lore raw

PATCH 1/1 Fix microperl

Quoted 7 lines · Thomas Petazzoni
Quoted 5 lines

For the most part it checks for libc functions and presence of other libs, and platform details (sizeof... and so on).
At the moment this would be "important" (not for me though) to get target autoconf/automake going since there are new required modules which are XS when the auto* packages were versioned bumped.

Could you expand on this, because I'm not sure I got what you said.

It's like configure scripts do, except that perl has it's own build system.

Quoted 6 lines
Quoted 3 lines

The proper solution would probably be define the lowest denominator for libc, say uclibc-0.9.31, generate a cache on a qemu/working target and get that back into the package.

A bit like what we do for ./configure scripts already, at the end of package/Makefile.in, correct?

Something similar but quite perl-specific for the reason stated above. Once the perl Configure script runs it generates a config.sh file that contains all the needed definitions.
What microperl does is define a subset uconfig.sh file with the basics only which doesn't allow for XS modules to be built, basically a barebones interpreter.
The native way for perl to be built as a fully-fledged perl (sic) is to run the tests on the target host via ssh/telnet or some other method and fetch back the results to generate config.sh
The details of the target are basically stored in Config.pm and it's includes, that's the trick i use to build modules in MICROPERL_BUILD_EXTENSIONS by using host-perl overriding it's config with PERL5LIB.
Regards.