Skip to contentSkip to conversation

mips user emulation broken in current SVN

Qemu-devel Tomasz Chmielewski 2 participants 6 messages Sep 2, 2008

lore
Share & tools
lore
#0 lore raw

I just fetched the newest SVN revision (5132), tried to build usermode emulation targets, but it fails for mips and mipsel:

To reproduce:

$ ./configure --disable-system --static --enable-linux-user --disable-sdl --target-list=mipsel-linux-user
$ make
make -C mipsel-linux-user all
(...)
gcc-3.3.6 -g  -m32 -static -Wl,-T,/usr/src/qemu-trunk-5132/i386.ld -o qemu-mipsel main.o syscall.o strace.o mmap.o signal.o path.o thunk.o elfload.o linuxload.o uaccess.o gdbstub.o libqemu.a ../libqemu_user.a   -lm -lrt -lpthread
libqemu.a(translate.o): In function `r4k_mmu_init':
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:458: undefined reference to `r4k_do_tlbwi'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:459: undefined reference to `r4k_do_tlbwr'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:460: undefined reference to `r4k_do_tlbp'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:461: undefined reference to `r4k_do_tlbr'
collect2: ld returned 1 exit status
make[1]: *** [qemu-mipsel] Error 1
make[1]: Leaving directory `/usr/src/qemu-trunk-5132/mipsel-linux-user'
make: *** [subdir-mipsel-linux-user] Error 2

All other targets build fine; only mips-linux-user and mipsel-linux-user fail to build.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 4 lines · Tomasz Chmielewski

I just fetched the newest SVN revision (5132), tried to build usermode emulation targets, but it fails for mips and mipsel:

To reproduce:

Quoted 14 lines
$ ./configure --disable-system --static --enable-linux-user --disable-sdl --target-list=mipsel-linux-user
$ make
make -C mipsel-linux-user all
(...)
gcc-3.3.6 -g  -m32 -static -Wl,-T,/usr/src/qemu-trunk-5132/i386.ld -o qemu-mipsel main.o syscall.o strace.o mmap.o signal.o path.o thunk.o elfload.o linuxload.o uaccess.o gdbstub.o libqemu.a ../libqemu_user.a   -lm -lrt -lpthread
libqemu.a(translate.o): In function `r4k_mmu_init':
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:458: undefined reference to `r4k_do_tlbwi'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:459: undefined reference to `r4k_do_tlbwr'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:460: undefined reference to `r4k_do_tlbp'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:461: undefined reference to `r4k_do_tlbr'
collect2: ld returned 1 exit status
make[1]: *** [qemu-mipsel] Error 1
make[1]: Leaving directory `/usr/src/qemu-trunk-5132/mipsel-linux-user'
make: *** [subdir-mipsel-linux-user] Error 2

Not reproducible here, I figure you have stale object files around in those directories.

Thiemo

#2 lore raw
Quoted 20 lines · Thiemo Seufer
Quoted 4 lines · Tomasz Chmielewski

I just fetched the newest SVN revision (5132), tried to build usermode emulation targets, but it fails for mips and mipsel:

To reproduce:

Quoted 14 lines
$ ./configure --disable-system --static --enable-linux-user --disable-sdl --target-list=mipsel-linux-user
$ make
make -C mipsel-linux-user all
(...)
gcc-3.3.6 -g  -m32 -static -Wl,-T,/usr/src/qemu-trunk-5132/i386.ld -o qemu-mipsel main.o syscall.o strace.o mmap.o signal.o path.o thunk.o elfload.o linuxload.o uaccess.o gdbstub.o libqemu.a ../libqemu_user.a   -lm -lrt -lpthread
libqemu.a(translate.o): In function `r4k_mmu_init':
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:458: undefined reference to `r4k_do_tlbwi'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:459: undefined reference to `r4k_do_tlbwr'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:460: undefined reference to `r4k_do_tlbp'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:461: undefined reference to `r4k_do_tlbr'
collect2: ld returned 1 exit status
make[1]: *** [qemu-mipsel] Error 1
make[1]: Leaving directory `/usr/src/qemu-trunk-5132/mipsel-linux-user'
make: *** [subdir-mipsel-linux-user] Error 2
Quoted 2 lines

Not reproducible here, I figure you have stale object files around in those directories.

It fails to compile for me on three different machines/distributions (both with gcc 3.3.6) with a fresh svn checkout (now with trunk 5137) and it failed in the same way.

It compiles with gcc 3.4.6 though - is it expected (everything else compiles with gcc 3.3.6)?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#3 lore raw
Quoted 24 lines · Tomasz Chmielewski
Quoted 20 lines · Thiemo Seufer
Quoted 4 lines · Tomasz Chmielewski

I just fetched the newest SVN revision (5132), tried to build usermode emulation targets, but it fails for mips and mipsel:

To reproduce:

Quoted 14 lines
$ ./configure --disable-system --static --enable-linux-user --disable-sdl --target-list=mipsel-linux-user
$ make
make -C mipsel-linux-user all
(...)
gcc-3.3.6 -g  -m32 -static -Wl,-T,/usr/src/qemu-trunk-5132/i386.ld -o qemu-mipsel main.o syscall.o strace.o mmap.o signal.o path.o thunk.o elfload.o linuxload.o uaccess.o gdbstub.o libqemu.a ../libqemu_user.a   -lm -lrt -lpthread
libqemu.a(translate.o): In function `r4k_mmu_init':
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:458: undefined reference to `r4k_do_tlbwi'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:459: undefined reference to `r4k_do_tlbwr'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:460: undefined reference to `r4k_do_tlbp'
/usr/src/qemu-trunk-5132/target-mips/translate_init.c:461: undefined reference to `r4k_do_tlbr'
collect2: ld returned 1 exit status
make[1]: *** [qemu-mipsel] Error 1
make[1]: Leaving directory `/usr/src/qemu-trunk-5132/mipsel-linux-user'
make: *** [subdir-mipsel-linux-user] Error 2
Quoted 2 lines

Not reproducible here, I figure you have stale object files around in those directories.

Quoted 6 lines

It fails to compile for me on three different machines/distributions (both with gcc 3.3.6) with a fresh svn checkout (now with trunk 5137) and it failed in the same way.

It compiles with gcc 3.4.6 though - is it expected (everything else compiles with gcc 3.3.6)?

I generally use 3.4. It looks like 3.3 isn't intelligent enough to remove such dead code. I comitted a patch which hopefully fixes it.

Thiemo

#4 lore raw

Thiemo Seufer schrieb:

(...)

Quoted 4 lines
Quoted 1 line

It compiles with gcc 3.4.6 though - is it expected (everything else compiles with gcc 3.3.6)?

I generally use 3.4. It looks like 3.3 isn't intelligent enough to remove such dead code. I comitted a patch which hopefully fixes it.

Yes, it compiles just fine now - thanks!

Signature · 2 lines
Tomasz Chmielewski
http://blog.wpkg.org
#5 lore raw
In reply to Thiemo Seufer

Thiemo Seufer schrieb:

(...)

Quoted 4 lines
Quoted 1 line

It compiles with gcc 3.4.6 though - is it expected (everything else compiles with gcc 3.3.6)?

I generally use 3.4. It looks like 3.3 isn't intelligent enough to remove such dead code. I comitted a patch which hopefully fixes it.

Yes, it compiles just fine now - thanks!

Signature · 2 lines
Tomasz Chmielewski
http://blog.wpkg.org