Bug 2503 - Microperl fails build on MIPSel or with Fedora13.x86_64
Summary: Microperl fails build on MIPSel or with Fedora13.x86_64
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2009.08
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-02 19:24 UTC by Sérgio
Modified: 2012-05-02 13:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
dot config (19.28 KB, text/plain)
2010-09-02 19:24 UTC, Sérgio
Details
this little patch fix compile problem (500 bytes, text/plain)
2010-10-05 01:30 UTC, Sérgio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sérgio 2010-09-02 19:24:44 UTC
Created attachment 2431 [details]
dot config

with buildroot 2010.08 version, I add some new packages to my .config ,
make 
# we need to build a perl for the host just for Errno.pm
(cd /home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8; \
         chmod a+x ext/util/make_ext; \
         ext/util/make_ext nonxs Errno MAKE="/usr/bin/make" \
        )

        Making Errno (nonxs)
ext/util/make_ext: line 122: ../../miniperl: No such file or directory
Warning: No Makefile!
make[1]: Entering directory `/home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8/ext/Errno'
make[1]: *** No rule to make target `config'.  Stop.
make[1]: Leaving directory `/home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8/ext/Errno'
/usr/bin/make config failed, continuing anyway...
make[1]: Entering directory `/home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8/ext/Errno'
make[1]: *** No rule to make target `all'.  Stop.
make[1]: Leaving directory `/home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8/ext/Errno'
make: *** [/home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8/.configured] Error 2
Comment 1 Sérgio 2010-09-04 23:36:26 UTC
Same problem has been reported on 
http://lists.busybox.net/pipermail/buildroot/2009-October/029989.html 
but no conclusion.

Looking for thread, found this: 

/usr/lib64/ccache/gcc -L/usr/local/lib -o miniperl \
            miniperlmain.o opmini.o libperl.a 
libperl.a(pp.o): In function `Perl_pp_int':
pp.c:(.text+0x9d41): undefined reference to `floor'
pp.c:(.text+0x9d61): undefined reference to `ceil'
libperl.a(pp.o): In function `Perl_pp_sqrt':
pp.c:(.text+0x9ec1): undefined reference to `sqrt'
libperl.a(pp.o): In function `Perl_pp_log':
pp.c:(.text+0x9fc9): undefined reference to `log'
libperl.a(pp.o): In function `Perl_pp_exp':
pp.c:(.text+0xa153): undefined reference to `exp'
libperl.a(pp.o): In function `Perl_pp_cos':
pp.c:(.text+0xa493): undefined reference to `cos'
libperl.a(pp.o): In function `Perl_pp_sin':
pp.c:(.text+0xa5f3): undefined reference to `sin'
libperl.a(pp.o): In function `Perl_pp_atan2':
pp.c:(.text+0xa7cd): undefined reference to `atan2'
libperl.a(pp.o): In function `Perl_pp_modulo':
pp.c:(.text+0xccb4): undefined reference to `floor'
pp.c:(.text+0xccea): undefined reference to `floor'
pp.c:(.text+0xcd4e): undefined reference to `fmod'
libperl.a(pp.o): In function `Perl_pp_pow':
pp.c:(.text+0xd35a): undefined reference to `pow'
libperl.a(pp_pack.o): In function `S_pack_rec':
pp_pack.c:(.text+0x21bc): undefined reference to `floor'
pp_pack.c:(.text+0x21ef): undefined reference to `floor'
collect2: ld returned 1 exit status
make[1]: *** [miniperl] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/sergio/hardware/moviecube/buildroot/output/build/perl-5.8.8'


which is solved by add -lm 
/usr/lib64/ccache/gcc -L/usr/local/lib -o miniperl miniperlmain.o opmini.o libperl.a
Comment 2 Sérgio 2010-10-05 01:30:57 UTC
Created attachment 2557 [details]
this little patch fix compile problem

I hope that patch helps find out the real solution
Comment 3 Thomas Petazzoni 2012-04-29 21:18:49 UTC
Most likely fixed by cb9a5877b88787f176215c5addb8c1be225a39d0.
Comment 4 Sérgio 2012-05-02 13:26:03 UTC
(In reply to comment #3)
> Most likely fixed by cb9a5877b88787f176215c5addb8c1be225a39d0.

Hi, I'm glade that this bug have a fix, this fix only be on next stable ..., which should got out in the end of the month , isn't it ? 

I give up of upgrade my EMTEC Movie cube, because EMTEC have done a very custom kernel to support his hardware.
Somebody said to me, that in early kernels will have support for those hardware, but was a big work, so my project is stopped. And buy a 65 dollars player :) 

Anyway many thanks for your support and all the best for the project.