Skip to contentSkip to conversation

kqemu development - mingw issue

Qemu-devel Bartlomiej Celary 3 participants 3 messages Mar 12, 2009

lore
Share & tools
lore
#0 lore raw

Hi,
I have found a kqemu version 1.4 which should be working with current development version of Qemu (got it from here:
http://www.sfr-fresh.com/unix/privat/kqemu-1.4.0pre1.tar.gz). I have seen some posts regarding this peace of software and am not sure if it is in any way developed. I am not sure if the author is still working on it.

My actual problem is that under mingw I am not able to compile it. The problem is in the ASM code (obviously...) which I have no idea about:

gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o i386/monitor_asm.o i386/monitor_asm.S i386/monitor_asm.S: Assembler messages:
i386/monitor_asm.S:264: Error: junk at end of line, first unrecognized character is `"'
i386/monitor_asm.S:264: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:264: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:264: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:266: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:266: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:266: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:266: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:272: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:272: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:275: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:275: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:295: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:295: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:300: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:300: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:303: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:303: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:315: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:315: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:347: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:347: Error: unknown pseudo-op: `.previous'

I have only managed to figure out that the .previous directive is not supported in my case, and so this peace of code is probably the problem:

#define SEG_EXCEPTION(label) \
    .section "seg_ex_table", "a" ; \
    .long label ; \
    .previous

also another issue is tha " character...

Any help greatly appreciated.

Best Regards,
Bartek Celary

#1 lore raw
Quoted 9 lines · Bartlomiej Celary

i386/monitor_asm.S:315: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:347: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:347: Error: unknown pseudo-op: `.previous'

I have only managed to figure out that the .previous directive is not supported in my case, and so this peace of code is probably the problem:

Quoted 8 lines
#define SEG_EXCEPTION(label) \
    .section "seg_ex_table", "a" ; \
    .long label ; \
    .previous

also another issue is tha " character...

Any help greatly appreciated.

Are you using Windows to build KQEMU? AFAIK that won't work, because you need ELF support + MinGW cross-compiler.

Robert Riebisch

Signature · 2 lines
BTTR Software
http://www.bttr-software.de/
#2 lore raw

Hi,

Quoted 16 lines · Robert Riebisch
Quoted 14 lines · Bartlomiej Celary

i386/monitor_asm.S:315: Error: unknown pseudo-op: .previous' i386/monitor_asm.S:347: Error: junk at end of line, first unrecognized character is "'
i386/monitor_asm.S:347: Error: unknown pseudo-op: `.previous'

I have only managed to figure out that the .previous directive is not supported in my case, and so this peace of code is probably the problem:

#define SEG_EXCEPTION(label) \
    .section "seg_ex_table", "a" ; \
    .long label ; \
    .previous
Quoted 6 lines
Quoted 3 lines

also another issue is tha " character...

Any help greatly appreciated.

Are you using Windows to build KQEMU? AFAIK that won't work, because you need ELF support + MinGW cross-compiler.

Why should you need ELF support? The Windows support in kqemu should make a Windows service, which is COFF/PE as everything else in Windows...

Having said that, I was never bold enough to try to compile it myself.

Ciao,
Dscho