http://bugs.openembedded.org/show_bug.cgi?id=960


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]
             Status|NEW                         |ASSIGNED




------- Comment #3 from [EMAIL PROTECTED]  2006-06-19 08:44 -------
Kristoffer, I've got perl working on sh4. Since sh3 should be identical I've
checked in the change for sh3 as well. Please test and close the bug if ok.

Now, things were not as easy as I'd like which is why this took a long time.
There's a toolchain issue which is causing problems:

| LD_LIBRARY_PATH=/data/oe/build/titan-glibc/tmp/work/perl-5.8.7-r15/perl-5.8.7
ccache sh4-linux-gcc -L/data/oe/build/titan-glibc/tmp/staging/sh4-linux/lib
-Wl,-rpath-link,/data/oe/build/titan-glibc/tmp/staging/sh4-linux/lib -Wl,-O1 -o
miniperl \
|     miniperlmain.o opmini.o libperl.so -lresolv -lnsl -ldl -lm -lcrypt -lutil
-lc
|
/data/oe/build/titan-glibc/tmp/cross/lib/gcc/sh4-linux/3.4.4/../../../../sh4-linux/bin/ld:
miniperl: hidden symbol `__sdivsi3_i4' in
/data/oe/build/titan-glibc/tmp/cross/lib/gcc/sh4-linux/3.4.4/libgcc.a(_sdivsi3_i4.oS)
is referenced by DSO
|
/data/oe/build/titan-glibc/tmp/cross/lib/gcc/sh4-linux/3.4.4/../../../../sh4-linux/bin/ld:
final link failed: Nonrepresentable section on output
| collect2: ld returned 1 exit status
| make[1]: *** [miniperl] Error 1

This is will discussed but the actual problems and solutions aren't all that
clear. I suspect that it's caused by perl using ld to link instead of gcc. I've
added a larger number of gcc patches to no effect (several may fix the crashing
you were seeing with gcc3.x though.)

So I enabled building perl without the shared library and set sh3 and sh4 to
not build it. If you want to test sh3 with the shared library just change the
value of useshrplib in config.sh-sh3-linux from false to true. It may be ok
with gcc 4.x but I suspect it'll fail the same way with gcc 3.x.

I generate the configs from a native build on my sh4 device from some source
rpm's and then hand edited to change a few things to match the existing configs
in OE. I've installed and tested several perl programs on my sh4 target and all
worked fine.

Revisions are 493c611934d2dda911e4e685c43628cf560e3300 to support building
without perl shared library and 3d427d33bcd08f2d041a405519ce94d259b903f0 to add
sh3/sh4 support.


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to