Skip to contentSkip to conversation

QEMU 0.11.0-rc1 broken on OpenBSD.

Qemu-devel Brad 3 participants 7 messages Aug 3, 2009 – Aug 4, 2009

lore
Share & tools
lore

Brad

author
#0 lore raw

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

gmake[1]: Entering directory
`/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bios/optionrom'
cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1 -fno-stack-protector -o multiboot.o -c multiboot.S
multiboot.S: Assembler messages:
multiboot.S:116: Error: `%es:-4(%edi)' is not a valid 16 bit base/index
expression
gmake[1]: *** [multiboot.o] Error 1

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#1 lore raw
Quoted 6 lines · Brad

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

gmake[1]: Entering directory `/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bios/optionrom'
cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1 -fno-stack-protector -o

Is cc not gcc?

Quoted 4 lines

multiboot.o -c multiboot.S
multiboot.S: Assembler messages:
multiboot.S:116: Error: `%es:-4(%edi)' is not a valid 16 bit base/index

Yeah, that does look suspicious. I think:

movl %ecx, %es:-4(%di)

Would be more correct. Alex?

Regards,

Anthony Liguori

author
#2 lore raw
Quoted 4 lines · On Monday 03 August 2009 15:24:09 Anthony Liguori wrote:
Quoted 3 lines · Brad

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

Quoted 8 lines

Review

Quoted 6 lines

gmake[1]: Entering directory `/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bio s/optionrom' cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer

(quoted diff) +0 -3
-fno-builtin
-I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1
-fno-stack-protector -o

Is cc not gcc?

No.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#3 lore raw
Quoted 17 lines · Brad
Quoted 5 lines · On Monday 03 August 2009 15:24:09 Anthony Liguori wrote:
Quoted 3 lines · Brad

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

Quoted 9 lines

Review

Quoted 7 lines

gmake[1]: Entering directory `/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bio s/optionrom' cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer

(quoted diff) +0 -3
-fno-builtin
-I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1
-fno-stack-protector -o

Is cc not gcc?

Quoted 2 lines

No.

Too many negatives. Is cc gcc? If not, are you building QEMU with whatever cc is or do we have an error in our Makefiles such that $(CC) isn't getting propagated to the multiboot Makefile?

Regards,

Anthony Liguori

author
#4 lore raw
Quoted 15 lines · On Monday 03 August 2009 20:49:09 Anthony Liguori wrote:
Quoted 14 lines · Brad
Quoted 12 lines · On Monday 03 August 2009 15:24:09 Anthony Liguori wrote:

Review

Quoted 9 lines · Brad

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

gmake[1]: Entering directory `/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-b io s/optionrom' cc -Wall -Wstrict-prototypes -Werror

(quoted diff) +0 -3
-fomit-frame-pointer -fno-builtin
-I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1
-fno-stack-protector -o

Is cc not gcc?

Quoted 5 lines
Quoted 1 line

No.

Too many negatives. Is cc gcc? If not, are you building QEMU with whatever cc is or do we have an error in our Makefiles such that $(CC) isn't getting propagated to the multiboot Makefile?

Yes, it is.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#5 lore raw
In reply to Anthony Liguori
Quoted 13 lines · Anthony Liguori
Quoted 5 lines · Brad

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

gmake[1]: Entering directory `/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bios/optionrom'
cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1 -fno-stack-protector -o

Is cc not gcc?

Quoted 3 lines

multiboot.o -c multiboot.S
multiboot.S: Assembler messages:
multiboot.S:116: Error: `%es:-4(%edi)' is not a valid 16 bit base/index

Quoted 5 lines

Yeah, that does look suspicious. I think:

movl %ecx, %es:-4(%di)

Would be more correct. Alex?

Looks the same to me, yeah.

Boy, the more I see PowerPC assembly the less I like x86 :-).

Alex

author
#6 lore raw
In reply to Anthony Liguori
Quoted 19 lines · On Monday 03 August 2009 15:24:09 Anthony Liguori wrote:

Review

Quoted 9 lines · Brad

Trying to compile QEMU 0.11.0-rc1 on OpenBSD/i386 it is broken at the moment..

gmake[1]: Entering directory `/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bio s/optionrom' cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer

(quoted diff) +0 -3
-fno-builtin
-I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1
-fno-stack-protector -o

Is cc not gcc?

Quoted 3 lines

multiboot.o -c multiboot.S
multiboot.S: Assembler messages:
multiboot.S:116: Error: `%es:-4(%edi)' is not a valid 16 bit base/index

Yeah, that does look suspicious. I think:

Quoted 7 lines

movl %ecx, %es:-4(%di)

Would be more correct. Alex?

Regards,

Anthony Liguori

Gets a bit further along..

gmake[1]: Entering directory
`/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bios/optionrom'
cc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -I/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1 -fno-stack-protector -o multiboot.o -c multiboot.S
ld -Ttext 0 -e _start -s -o multiboot.img multiboot.o
objcopy -O binary -j .text multiboot.img multiboot.raw /stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bios/optionrom/signrom.sh
multiboot.raw multiboot.bin
od: unknown option -- A
od: od(1) has been deprecated for hexdump(1).
usage: od [-aBbcDdeFfHhIiLlOovXx] [-j offset] [-N length] [-t type_string]

        [[+]offset[.][Bb]] [file ...]

/stuff/ports/emulators/qemu.new/w-qemu-0.11.0-rc1/qemu-0.11.0-rc1/pc-bios/optionrom/signrom.sh[31]:
* 512 - 1 : unexpected `*'
gmake[1]: *** [multiboot.bin] Error 1

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.