On Thu, Aug 30, 2012 at 9:46 PM, Petr Machata <[email protected]> wrote:
> Sedat Dilek <[email protected]> writes:
>
>> On Thu, Aug 30, 2012 at 2:21 PM, Petr Machata <[email protected]> wrote:
>>> the branch pmachata/revamp was now merged to master.
>>
>> What's the status of MIPS?
>> What's missing for it?
>>
>> What GIT branch or tag are you recommending for MIPS?
>
> I don't know.  It should work about the same as it used to, but there
> were many changes when libs branch was merged earlier this year, and I
> remember having to update MIPS-related ifdefs.  Generally I'm afraid
> that MIPS is currently broken.  Do you have a MIPS machine handy?  Could
> you verify?  Good candidates for checking are the following trees:
>
>   8a115b6ced (a commit named "Fix MIPS")
>   5f30bc318e (0.6.0 -- N.B. I'm not sure if it worked at this point)
>   97b208405b (when threads branch was merged)
>   91c399c086 (when libs branch was merged)
>
> Eventually I'd like to get MIPS in order, but frankly ARM is first on my
> plate, and that was broken as well the last time I looked.
>

None of the below GIT snapshot-tarballs compile fine.

$ LC_ALL=C ls -l dl/ltrace*.tar.gz
-rw-rw-r-- 1 wearefam wearefam 152631 Aug 30 23:13 dl/ltrace-1788f8a.tar.gz
-rw-rw-r-- 1 wearefam wearefam 157863 Aug 30 21:51 dl/ltrace-5f30bc3.tar.gz
-rw-rw-r-- 1 wearefam wearefam 152035 Aug 30 21:49 dl/ltrace-8a115b6.tar.gz
-rw-rw-r-- 1 wearefam wearefam 176128 Aug 30 21:59 dl/ltrace-97b2084.tar.gz
-rw-rw-r-- 1 wearefam wearefam 249936 Aug 30 17:36 dl/ltrace-fcf256c.tar.gz
-rw-r--r-- 1 wearefam wearefam 147198 Mar  1  2011 dl/ltrace_0.5.3.orig.tar.gz

I am using the Freetz build-system.
The patches against ltrace-0.5.3 are located at [1].
"130-ltrace-mips.patch" was a merge-bomb of a MIPS patchset by Arnaud
Patard (ex Mandrake/Mandriva).
I asked one of the main developers of Freetz but he could give me no
satisfying answer how this single patch was created.
If you like you can look over the patches from Freetz project.

For ltrace >=0.6.0 GIT I added "autogen.sh" as configure-pre-cmds to
ltrace.mk [2] (see file attachments).

But all builds failed...
"97b208405b (when threads branch was merged)" looked good after fixing
some minor issues, but in the end I got frustrated last night.

When seeing "Fix arch_plt_sym_val for m68k"... "plt.c" [3] in
mipsel-arch is a bit different from the one of other archs and there
is no ref to "pltgot_addr" in arch_plt_sym_val() (see file
attachments).

So, MIPS seems to be broken.
My skillz are not that good to fix this by my own.
But I can help with testing.

Regards,
- Sedat -

[1] http://freetz.org/browser/trunk/make/ltrace/patches
[2] http://freetz.org/browser/trunk/make/ltrace/ltrace.mk
[3] 
http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=blob;f=sysdeps/linux-gnu/mipsel/plt.c;hb=HEAD#l37

> Thank you,
> PM
Making all in linux-gnu
make[4]: Betrete Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c/sysdeps/linux-gnu'
Making all in mipsel
make[5]: Betrete Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c/sysdeps/linux-gnu/mipsel'
/bin/bash ../../../libtool --tag=CC   --mode=compile 
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../..  -I../../../sysdeps/linux-gnu/mipsel  
-I../../../sysdeps/linux-gnu    -I../../../sysdeps      -I../../..   -Wall 
-Wsign-compare -Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe 
-Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT 
plt.lo -MD -MP -MF .deps/plt.Tpo -c -o plt.lo plt.c
/bin/bash ../../../libtool --tag=CC   --mode=compile 
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../..  -I../../../sysdeps/linux-gnu/mipsel  
-I../../../sysdeps/linux-gnu    -I../../../sysdeps      -I../../..   -Wall 
-Wsign-compare -Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe 
-Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT 
regs.lo -MD -MP -MF .deps/regs.Tpo -c -o regs.lo regs.c
/bin/bash ../../../libtool --tag=CC   --mode=compile 
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../..  -I../../../sysdeps/linux-gnu/mipsel  
-I../../../sysdeps/linux-gnu    -I../../../sysdeps      -I../../..   -Wall 
-Wsign-compare -Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe 
-Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT 
trace.lo -MD -MP -MF .deps/trace.Tpo -c -o trace.lo trace.c
libtool: compile:  
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../.. -I../../../sysdeps/linux-gnu/mipsel 
-I../../../sysdeps/linux-gnu -I../../../sysdeps -I../../.. -Wall -Wsign-compare 
-Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe -Wa,--trap 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT trace.lo 
-MD -MP -MF .deps/trace.Tpo -c trace.c  -fPIC -DPIC -o .libs/trace.o
libtool: compile:  
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../.. -I../../../sysdeps/linux-gnu/mipsel 
-I../../../sysdeps/linux-gnu -I../../../sysdeps -I../../.. -Wall -Wsign-compare 
-Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe -Wa,--trap 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT plt.lo -MD 
-MP -MF .deps/plt.Tpo -c plt.c  -fPIC -DPIC -o .libs/plt.o
libtool: compile:  
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../.. -I../../../sysdeps/linux-gnu/mipsel 
-I../../../sysdeps/linux-gnu -I../../../sysdeps -I../../.. -Wall -Wsign-compare 
-Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe -Wa,--trap 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT regs.lo 
-MD -MP -MF .deps/regs.Tpo -c regs.c  -fPIC -DPIC -o .libs/regs.o
plt.c: In function 'arch_plt_sym_val':
plt.c:38:5: error: 'struct ltelf' has no member named 'pltgot_addr'
plt.c:39:15: error: 'struct ltelf' has no member named 'pltgot_addr'
plt.c:40:24: error: 'struct ltelf' has no member named 'mips_local_gotno'
plt.c:40:55: error: 'struct ltelf' has no member named 'mips_gotsym'
plt.c: In function 'sym2addr':
plt.c:67:47: error: dereferencing pointer to incomplete type
plt.c: In function 'arch_plt_sym_val':
plt.c:41:1: error: control reaches end of non-void function 
[-Werror=return-type]
cc1: all warnings being treated as errors
make[5]: *** [plt.lo] Fehler 1
make[5]: *** Warte auf noch nicht beendete Prozesse...
trace.c: In function 'syscall_p':
trace.c:65:3: error: implicit declaration of function 'get_instruction_pointer' 
[-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[5]: *** [trace.lo] Fehler 1
libtool: compile:  
/home/wearefam/src/freetz/freetz-git/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.32.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
 -DHAVE_CONFIG_H -I. -I../../.. -I../../../sysdeps/linux-gnu/mipsel 
-I../../../sysdeps/linux-gnu -I../../../sysdeps -I../../.. -Wall -Wsign-compare 
-Wfloat-equal -Wformat-security -Werror -march=4kc -Os -pipe -Wa,--trap 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT regs.lo 
-MD -MP -MF .deps/regs.Tpo -c regs.c -o regs.o >/dev/null 2>&1
mv -f .deps/regs.Tpo .deps/regs.Plo
make[5]: Verlasse Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c/sysdeps/linux-gnu/mipsel'
make[4]: *** [all-recursive] Fehler 1
make[4]: Verlasse Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c/sysdeps/linux-gnu'
make[3]: *** [all-recursive] Fehler 1
make[3]: Verlasse Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c/sysdeps'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis 
'/home/wearefam/src/freetz/freetz-git/source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c'

ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.32.1/ltrace-fcf256c/ltrace] Fehler 1

Attachment: ltrace.mk.diff
Description: Binary data

_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to