Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] compiling microperl
@ 2012-03-15 17:31 Charles Krinke
  2012-03-15 17:49 ` Thomas Petazzoni
  2012-03-15 17:50 ` Markus Königshaus
  0 siblings, 2 replies; 3+ messages in thread
From: Charles Krinke @ 2012-03-15 17:31 UTC (permalink / raw)
  To: buildroot

I am trying to add microperl to an MPC8321 project and having a
compilation error. I have been using buildroot-2011.03 for the last
year and am nearing the end of this project and today we need to add
perl.

We are using the CodeSourcery external glibc toolchain and it has been
working fine for a long time. This is the first package we are unable
to build.

Here are the errors I am seeing:
make[1]: Entering directory
`/home/ckrinke/asvn/trunk/buildroot-glibc/output/build/perl-5.8.8'
/usr/bin/gcc -L/usr/local/lib -o miniperl \
	    miniperlmain.o opmini.o libperl.a
libperl.a(pp.o): In function `Perl_pp_pow':
pp.c:(.text+0x283a): undefined reference to `pow'
libperl.a(pp.o): In function `Perl_pp_modulo':
pp.c:(.text+0x361f): undefined reference to `fmod'
libperl.a(pp.o): In function `Perl_pp_atan2':
pp.c:(.text+0x7e49): undefined reference to `atan2'
libperl.a(pp.o): In function `Perl_pp_sin':
pp.c:(.text+0x7f2a): undefined reference to `sin'
libperl.a(pp.o): In function `Perl_pp_cos':
pp.c:(.text+0x806a): undefined reference to `cos'
libperl.a(pp.o): In function `Perl_pp_exp':
pp.c:(.text+0x834a): undefined reference to `exp'
libperl.a(pp.o): In function `Perl_pp_log':
pp.c:(.text+0x8490): undefined reference to `log'
libperl.a(pp.o): In function `Perl_pp_sqrt':
pp.c:(.text+0x8768): undefined reference to `sqrt'

I wonder if someone would be so kind as to offer a clue, or at least a
bread crumb to figuring this out.

-- 
Charles "Noob for the Day" Krinke

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

* [Buildroot] compiling microperl
  2012-03-15 17:31 [Buildroot] compiling microperl Charles Krinke
@ 2012-03-15 17:49 ` Thomas Petazzoni
  2012-03-15 17:50 ` Markus Königshaus
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2012-03-15 17:49 UTC (permalink / raw)
  To: buildroot

Hello Charles,

Le Thu, 15 Mar 2012 10:31:24 -0700,
Charles Krinke <charles.krinke@gmail.com> a ?crit :

> I wonder if someone would be so kind as to offer a clue, or at least a
> bread crumb to figuring this out.

See
http://git.buildroot.net/buildroot/commit/package/microperl/microperl.mk?id=cb9a5877b88787f176215c5addb8c1be225a39d0

It lacks -lm in the flags, and this commit fixes it.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] compiling microperl
  2012-03-15 17:31 [Buildroot] compiling microperl Charles Krinke
  2012-03-15 17:49 ` Thomas Petazzoni
@ 2012-03-15 17:50 ` Markus Königshaus
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Königshaus @ 2012-03-15 17:50 UTC (permalink / raw)
  To: buildroot

I'm not sure, but try to
/usr/bin/gcc -L/usr/local/lib -lm  -o miniperl miniperlmain.o opmini.o
libperl.a
I think, the mathlib is missing. My colleague recently had a similar
problem.

your private supporter, Markus ;-)

Am 15.03.2012 18:31, schrieb Charles Krinke:
> I am trying to add microperl to an MPC8321 project and having a
> compilation error. I have been using buildroot-2011.03 for the last
> year and am nearing the end of this project and today we need to add
> perl.
>
> We are using the CodeSourcery external glibc toolchain and it has been
> working fine for a long time. This is the first package we are unable
> to build.
>
> Here are the errors I am seeing:
> make[1]: Entering directory
> `/home/ckrinke/asvn/trunk/buildroot-glibc/output/build/perl-5.8.8'
> /usr/bin/gcc -L/usr/local/lib -o miniperl \
> 	    miniperlmain.o opmini.o libperl.a
> libperl.a(pp.o): In function `Perl_pp_pow':
> pp.c:(.text+0x283a): undefined reference to `pow'
> libperl.a(pp.o): In function `Perl_pp_modulo':
> pp.c:(.text+0x361f): undefined reference to `fmod'
> libperl.a(pp.o): In function `Perl_pp_atan2':
> pp.c:(.text+0x7e49): undefined reference to `atan2'
> libperl.a(pp.o): In function `Perl_pp_sin':
> pp.c:(.text+0x7f2a): undefined reference to `sin'
> libperl.a(pp.o): In function `Perl_pp_cos':
> pp.c:(.text+0x806a): undefined reference to `cos'
> libperl.a(pp.o): In function `Perl_pp_exp':
> pp.c:(.text+0x834a): undefined reference to `exp'
> libperl.a(pp.o): In function `Perl_pp_log':
> pp.c:(.text+0x8490): undefined reference to `log'
> libperl.a(pp.o): In function `Perl_pp_sqrt':
> pp.c:(.text+0x8768): undefined reference to `sqrt'
>
> I wonder if someone would be so kind as to offer a clue, or at least a
> bread crumb to figuring this out.
>
-- Unsere Aussagen koennen Irrtuemer und Missverstaendnisse enthalten.
Bitte pruefen Sie die Aussagen fuer Ihren Fall, bevor Sie Entscheidungen 
auf Grundlage dieser Aussagen treffen.
Wiesemann & Theis GmbH, Porschestr. 12, D-42279 Wuppertal
Geschaeftsfuehrer: Dipl.-Ing. Ruediger Theis
Registergericht: Amtsgericht Wuppertal, HRB 6377 
Tel. +49-202/2680-0, Fax +49-202/2680-265, http://www.wut.de

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

end of thread, other threads:[~2012-03-15 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 17:31 [Buildroot] compiling microperl Charles Krinke
2012-03-15 17:49 ` Thomas Petazzoni
2012-03-15 17:50 ` Markus Königshaus

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