From: Adrian M. <ad...@mc...> - 2003-04-18 19:22:43
|
I have asked this a few times and never really got an answer. Is anybody = else=20 using gcc with glibc as their cross-compiler/C lib combination. If so, ar= e=20 they able to build shared executibles? I don't seem to be able to (using gcc-3.0.4) Adrian |
From: Adrian M. <ad...@mc...> - 2003-04-20 11:34:59
|
On Friday 18 April 2003 21:48, VINCENT C=E9dric wrote: > On Friday 18 April 2003 21:22, Adrian McMenamin wrote: > > I have asked this a few times and never really got an answer. Is anyb= ody > > else using gcc with glibc as their cross-compiler/C lib combination. = If > > so, are they able to build shared executibles? > > > > I don't seem to be able to (using gcc-3.0.4) > > > > Adrian > > I've successfully compiled (with Bill's Gatliff "emblindc" environment)= as > shared and static these apps/libs : > > gpm-1.20.0 with ncurses support (1.20.1 don't seem to compile correctly= =2E..) > libpng-1.2.5 > libtiff-3.6.0-beta (this is the only version that I was able to compile= as > shared library for linux-sh4) > ncurses-5.3 with gpm support. > gpm-1.19.6 with ncurses support. > zlib-1.1.4 > libpng-1.0.12 (I can't compile links-2.1pre7 with libpng-1.2.1...) > libjpeg.v6b > libtiff-v3.5.7 > links-2.1pre7 with framebuffer, png, tiff, jpeg, javascript and gpm sup= port > Thanks again. Just to come back on this - and for the avoidance of doubt - when you say= you=20 compiled them - you were able to run them also? I have no problem compili= ng=20 the apps, it's running them that is difficult - they seg fault. And if so, could I encourage you to compile mpg123 (as a reference app) a= nd=20 see if you can run that as shared? What setup are you using for all this? Ie where do you get the libraries = you=20 link with? (Is it the debian unstable on m17n?) Slainte Adrian |
From: Daniel S. <ds...@tr...> - 2003-04-20 11:41:03
|
On Sun, Apr 20, 2003 at 12:34:59PM +0100, Adrian McMenamin wrote: > Just to come back on this - and for the avoidance of doubt - when you say= you=20 > compiled them - you were able to run them also? I have no problem compili= ng=20 > the apps, it's running them that is difficult - they seg fault. >=20 > And if so, could I encourage you to compile mpg123 (as a reference app) a= nd=20 > see if you can run that as shared? >=20 > What setup are you using for all this? Ie where do you get the libraries = you=20 > link with? (Is it the debian unstable on m17n?) Hmm, maybe the gcc3.2 sh4 relocation types are broken somewhere? =09 --=20 Daniel Stone <dstone@trinity.unimelb.ed= u.au> Developer, Trinity College, University of Melbourne |
From: Adrian M. <ad...@mc...> - 2003-04-20 11:46:28
|
On Sunday 20 April 2003 12:40, Daniel Stone wrote: > Hmm, maybe the gcc3.2 sh4 relocation types are broken somewhere? Well I am using gcc-3.0.4. I have to say compiler code (like much else :-= >) is=20 beyond me... |
From: Daniel S. <ds...@tr...> - 2003-04-20 11:48:56
|
On Sun, Apr 20, 2003 at 12:46:01PM +0100, Adrian McMenamin wrote: > On Sunday 20 April 2003 12:40, Daniel Stone wrote: > > Hmm, maybe the gcc3.2 sh4 relocation types are broken somewhere? >=20 > Well I am using gcc-3.0.4. I have to say compiler code (like much else :-= >) is=20 > beyond me... Oh. Should be fine with 3.2. No idea beyond that, sorry. :\ --=20 Daniel Stone <dstone@trinity.unimelb.ed= u.au> Developer, Trinity College, University of Melbourne |
From: VINCENT <c-v...@ba...> - 2003-04-20 12:28:25
|
On Sunday 20 April 2003 13:34, you wrote: > On Friday 18 April 2003 21:48, VINCENT C=E9dric wrote: > > On Friday 18 April 2003 21:22, Adrian McMenamin wrote: > > > I have asked this a few times and never really got an answer. Is > > > anybody else using gcc with glibc as their cross-compiler/C lib > > > combination. If so, are they able to build shared executibles? > > > > > > I don't seem to be able to (using gcc-3.0.4) > > > > > > Adrian > > > > I've successfully compiled (with Bill's Gatliff "emblindc" environment) > > as shared and static these apps/libs : > > > > gpm-1.20.0 with ncurses support (1.20.1 don't seem to compile > > correctly...) libpng-1.2.5 > > libtiff-3.6.0-beta (this is the only version that I was able to compile > > as shared library for linux-sh4) > > ncurses-5.3 with gpm support. > > gpm-1.19.6 with ncurses support. > > zlib-1.1.4 > > libpng-1.0.12 (I can't compile links-2.1pre7 with libpng-1.2.1...) > > libjpeg.v6b > > libtiff-v3.5.7 > > links-2.1pre7 with framebuffer, png, tiff, jpeg, javascript and gpm > > support > > Thanks again. > > Just to come back on this - and for the avoidance of doubt - when you say > you compiled them - you were able to run them also? I have no problem > compiling the apps, it's running them that is difficult - they seg fault. > > And if so, could I encourage you to compile mpg123 (as a reference app) a= nd > see if you can run that as shared? > > What setup are you using for all this? Ie where do you get the libraries > you link with? (Is it the debian unstable on m17n?) > > Slainte > Adrian |
From: VINCENT <c-v...@ba...> - 2003-04-20 12:50:59
|
Here comes the good mail ;-) On Sunday 20 April 2003 13:34, Adrian McMenamin wrote: > Just to come back on this - and for the avoidance of doubt - when you say > you compiled them - you were able to run them also? I have no problem > compiling the apps, it's running them that is difficult - they seg fault. Sorry, I haven't tested them :( > What setup are you using for all this? Ie where do you get the libraries > you link with? (Is it the debian unstable on m17n?) =46or all this, I use the Bill Gatliff's mini-distro. The libraries are ta= ken=20 from their own official sites, I hadn't modified the code. They works fine= =20 (cf Links2.1-pre7 that was linked staticly with). > And if so, could I encourage you to compile mpg123 (as a reference app) a= nd > see if you can run that as shared? =46or testing, I'm working on a "cross dev kit" to compile applications fro= m a=20 Linux/x86 to DCLinux-010605. But it seems that I'm on the wrong way (I've g= ot=20 very much problems). C=E9dric. |
From: Adrian M. <ad...@mc...> - 2003-04-20 13:16:34
|
On Friday 18 April 2003 21:48, you wrote: > libpng-1.0.12 (I can't compile links-2.1pre7 with libpng-1.2.1...) Do you mean libpng-2.1....? Because I cannot get that to work either :-< I can compile a text only version of links-2.1pre7 but that's not much us= e |
From: VINCENT <c-v...@ba...> - 2003-04-20 18:30:38
|
On Friday 18 April 2003 21:22, Adrian McMenamin wrote: > I have asked this a few times and never really got an answer. Is anybody > else using gcc with glibc as their cross-compiler/C lib combination. If s= o, > are they able to build shared executibles? Yes ! I've tested with the Bill Gatliff's mini-distro's tools-chains : (prebuild at : http://www710.univ-lyon1.fr/~c-vinc02/downloads.html) <-------------------------------------> dreamcast:~/rd# ldd links libdl.so.2 =3D> /lib/libdl.so.2 (0x2957c000) libm.so.6 =3D> /lib/libm.so.6 (0x2958f000) libc.so.6 =3D> /lib/libc.so.6 (0x295d3000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x29556000) <-------------------------------------> It runs perfectly ! I have'nt the time to test with mpg123... Sorry... C=E9dric |
From: Adrian M. <ad...@mc...> - 2003-04-20 18:45:29
|
On Sunday 20 April 2003 18:58, VINCENT C=E9dric wrote: > On Friday 18 April 2003 21:22, Adrian McMenamin wrote: > > I have asked this a few times and never really got an answer. Is anyb= ody > > else using gcc with glibc as their cross-compiler/C lib combination. = If > > so, are they able to build shared executibles? > > Yes ! > > I've tested with the Bill Gatliff's mini-distro's tools-chains : > (prebuild at : http://www710.univ-lyon1.fr/~c-vinc02/downloads.html) > > <-------------------------------------> > dreamcast:~/rd# ldd links > libdl.so.2 =3D> /lib/libdl.so.2 (0x2957c000) > libm.so.6 =3D> /lib/libm.so.6 (0x2958f000) > libc.so.6 =3D> /lib/libc.so.6 (0x295d3000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x29556000) > <-------------------------------------> > > It runs perfectly ! > I have'nt the time to test with mpg123... Sorry... > Did you build these libraries yourself? I am coming to the view that it i= s=20 actually the glibc on the distro that is stuffed-up rather than the tools= =2E.. |
From: VINCENT <c-v...@ba...> - 2003-04-20 19:19:10
|
On Sunday 20 April 2003 20:45, Adrian McMenamin wrote: > Did you build these libraries yourself? I am coming to the view that it is > actually the glibc on the distro that is stuffed-up rather than the > tools... Do you speak about these libs ? : > libdl.so.2 =3D> /lib/libdl.so.2 (0x2957c000) > libm.so.6 =3D> /lib/libm.so.6 (0x2958f000) > libc.so.6 =3D> /lib/libc.so.6 (0x295d3000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x29556000) These are ones that you found on the DCLinux-010603, without changes. There are other libs in my X-devel-kit, but they are not used here ... Maybe, your problem comes from the dynamic loader... I failed (or gave up, as you want) on building a X-devel-kit=20 specially for the DCLinux-010603 (binutils-2.11.90.0.7, gcc-3.1-20010501,=20 glibc-2.2.2, ...). If someone successfully build it, please contact me !!! C=E9dric |
From: Adrian M. <ad...@mc...> - 2003-04-20 19:57:58
|
On Sunday 20 April 2003 19:46, you wrote: > On Sunday 20 April 2003 20:45, Adrian McMenamin wrote: > > Did you build these libraries yourself? I am coming to the view that = it > > is actually the glibc on the distro that is stuffed-up rather than th= e > > tools... > > Do you speak about these libs ? : > > libdl.so.2 =3D> /lib/libdl.so.2 (0x2957c000) > > libm.so.6 =3D> /lib/libm.so.6 (0x2958f000) > > libc.so.6 =3D> /lib/libc.so.6 (0x295d3000) > > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x29556000) > > These are ones that you found on the DCLinux-010603, without changes. > There are other libs in my X-devel-kit, but they are not used here ... > > Maybe, your problem comes from the dynamic loader... > > I failed (or gave up, as you want) on building a X-devel-kit > specially for the DCLinux-010603 (binutils-2.11.90.0.7, gcc-3.1-2001050= 1, > glibc-2.2.2, ...). If someone successfully build it, please contact me = !!! > > C=E9dric Can I ask why you built linx as static if you have these libraries workin= g? |
From: VINCENT <c-v...@ba...> - 2003-04-21 06:23:19
|
On Sunday 20 April 2003 21:57, Adrian McMenamin wrote: > Can I ask why you built linx as static if you have these libraries workin= g? Yes, you can ! ;-) Links2.1-pre7 (graphical mode) depends on many libs, that are not all prese= nt=20 on DCLinux-010605. If they are present, I use other libs than theirs (for m= y=20 own distro that is not bootable/usable for the moment), so it makes=20 conflicts... > Did you build these libraries yourself? I've successfully launch an app using a dynamic lib that I build myself=20 (libgcc_s.so.1) : <------------------------------> dreamcast:~# ldd clear libncurses.so.5 =3D> /lib/libncurses.so.5 (0x2957c000) libgpm.so.1 =3D> /usr/lib/libgpm.so.1 (0x295d5000) libc.so.6 =3D> /lib/libc.so.6 (0x295eb000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x29556000) libgcc_s.so.1 =3D> not found dreamcast:~# cp /gdrom/DreamCast/sh4-linux/lib/libgcc_s.so.1 . dreamcast:~# export LD_LIBRARY_PATH=3D. dreamcast:~# ldd clear=20 libncurses.so.5 =3D> /lib/libncurses.so.5 (0x2957c000) libgpm.so.1 =3D> /usr/lib/libgpm.so.1 (0x295d5000) libc.so.6 =3D> /lib/libc.so.6 (0x295eb000) libgcc_s.so.1 =3D> ./libgcc_s.so.1 (0x296fd000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x29556000) dreamcast:~# ./clear <------------------------------> It works fine ! C=E9dric PS : I haven't got a BBA, I do tests with the cable coder and CDs... So it = is=20 not really easy to make tests :( |
From: VINCENT <c-v...@ba...> - 2003-04-27 16:28:27
|
On Sunday 20 April 2003 13:34, Adrian McMenamin wrote: > I have no problem > compiling the apps, it's running them that is difficult - they seg fault. Here comes an explanation taken from http://paras.rasmatazz.bei.t-online.de= / : "[...] gcc-3.0.4 (which produces incorrect code because of optimization, bu= t=20 since no optimization is used, scummvm is working). [..]" C=E9dric =20 |
From: Adrian M. <ad...@mc...> - 2003-05-03 09:35:49
|
On Sunday 27 April 2003 16:50, you wrote: > On Sunday 20 April 2003 13:34, Adrian McMenamin wrote: > > I have no problem > > compiling the apps, it's running them that is difficult - they seg fa= ult. > > Here comes an explanation taken from > http://paras.rasmatazz.bei.t-online.de/ : "[...] gcc-3.0.4 (which produ= ces > incorrect code because of optimization, but since no optimization is us= ed, > scummvm is working). [..]" > > C=E9dric Well, this is for a slightly different target, but I take the point. Have= we=20 got gcc-3.3 patches available then? |
From: VINCENT <c-v...@ba...> - 2003-05-03 13:00:13
Attachments:
crtstuff.s
|
On Saturday 03 May 2003 11:35, you wrote: >Have we got gcc-3.3 patches available then? It seems that gcc-3.3 support natively the target sh4-linux, but I have some problems when compiling (as describe in the Bill Gatliff's tuto) : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "make all-gcc" /home/c-vinc02/Compilation/gcc/gcc/xgcc -B/home/c-vinc02/Compilation/gcc/gcc/ -B/usr/local/LinuxDC//sh4-linux/bin/ -B/usr/local/LinuxDC//sh4-linux/lib/ -isystem /usr/local/LinuxDC//sh4-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I. -I./. -I./config -I./../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fPIC \ -Dinhibit_libc -c ./crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \ -o crtbeginS.o crtstuff.c: In function `__do_global_dtors_aux': crtstuff.c:280: warning: passing arg 1 of `__deregister_frame_info' discards qualifiers from pointer target type crtstuff.c: In function `frame_dummy': crtstuff.c:316: warning: passing arg 1 of `__register_frame_info' discards qualifiers from pointer target type /tmp/ccD6ag9O.s: Assembler messages: /tmp/ccD6ag9O.s:117: Error: Rest of line ignored. First ignored character is `-'. /tmp/ccD6ag9O.s:123: Error: Rest of line ignored. First ignored character is `-'. /tmp/ccD6ag9O.s:188: Error: Rest of line ignored. First ignored character is `-'. make[1]: *** [crtbeginS.o] Error 1 make[1]: Leaving directory `/home/c-vinc02/Compilation/gcc/gcc' make: *** [all-gcc] Error 2 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Maybe, my sh4 assembler is too old (binutils-2.11.2) and don't understand a new syntaxe ??? If this didn't come from the assembler, I am not sufficiently qualified to solve this problem... I give you this famous '/tmp/ccD6ag9O.s' file. You can find a snapshot of the gcc-3.3 here : http://www710.univ-lyon1.fr/~c-vinc02/downloads/gcc-3.3-20030427.tar.bz2 |