pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51534: qemu-2.7.0 fails to build: bad register name



>Number:         51534
>Category:       pkg
>Synopsis:       qemu-2.7.0 fails to build: bad register name
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 06 19:20:00 +0000 2016
>Originator:     Kai-Uwe Eckhardt
>Release:        7.99.39 amd64 (gcc 5.4.0)
>Organization:
>Environment:
>Description:
Make fails with:


	CHK version_gen.h
  CC    optionrom/linuxboot_dma.o
linuxboot_dma.c: In function 'set_es':
linuxboot_dma.c:91:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     uint32_t seg = (uint32_t)addr >> 4;
                    ^
linuxboot_dma.c: In function 'bios_cfg_read_entry':
linuxboot_dma.c:170:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     access.address = cpu_to_be64((uint64_t)(uint32_t)buf);
                                            ^
linuxboot_dma.c:176:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     outl(cpu_to_be32((uint32_t)&access), BIOS_CFG_DMA_ADDR_LOW);
                      ^
linuxboot_dma.c: In function 'load_kernel':
linuxboot_dma.c:251:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     initrd_end_page = ((uint32_t)(initrd_addr + initrd_size) & -4096);
                        ^
linuxboot_dma.c:259:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         initrd_addr = (void *)((get_e801_addr() - initrd_size) & -4096);
                       ^
linuxboot_dma.c:260:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         writel_es(0x218, (uint32_t)initrd_addr);
                          ^
linuxboot_dma.c:275:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     segment_addr = ((uint32_t)setup_addr >> 4);
                     ^
/var/tmp//ccVMO00J.s: Assembler messages:
/var/tmp//ccVMO00J.s:62: Error: bad register name `%rdi'
/var/tmp//ccVMO00J.s:63: Error: bad register name `%rcx'
/var/tmp//ccVMO00J.s:64: Error: bad register name `%rdi'
/var/tmp//ccVMO00J.s:66: Error: bad register name `%rax'
/var/tmp//ccVMO00J.s:67: Error: bad register name `%rcx'
/var/tmp//ccVMO00J.s:68: Error: bad register name `%rdi'
/var/tmp//ccVMO00J.s:70: Error: bad register name `%rcx'
/var/tmp//ccVMO00J.s:71: Error: bad register name `%rcx'
/var/tmp//ccVMO00J.s:74: Error: bad register name `%rdi'
/var/tmp//ccVMO00J.s:75: Error: bad register name `%rax'
/var/tmp//ccVMO00J.s:76: Error: bad register name `%rdi'
/var/tmp//ccVMO00J.s:81: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:90: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:93: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:108: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:113: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:134: Error: bad register name `%rbx'
/var/tmp//ccVMO00J.s:137: Error: bad register name `%rsp'
/var/tmp//ccVMO00J.s:142: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:148: Error: bad register name `%rsp'
/var/tmp//ccVMO00J.s:152: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:154: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:160: Error: bad register name `%rsp)'
linuxboot_dma.c:104: Error: redundant addr32 prefix
linuxboot_dma.c:120: Error: redundant addr32 prefix
/var/tmp//ccVMO00J.s:207: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:213: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:217: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:218: Error: bad register name `%rsp)'
linuxboot_dma.c:112: Error: redundant addr32 prefix
/var/tmp//ccVMO00J.s:283: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:289: Error: bad register name `%rcx'
linuxboot_dma.c:120: Error: redundant addr32 prefix
/var/tmp//ccVMO00J.s:306: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:308: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:314: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:320: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:324: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:326: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:332: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:338: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:342: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:344: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:348: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:354: Error: bad register name `%rsp)'
/var/tmp//ccVMO00J.s:355: Error: bad register name `%rdx'
/var/tmp//ccVMO00J.s:378: Error: bad register name `%rsp'
/var/tmp//ccVMO00J.s:381: Error: bad register name `%rbx'
/var/tmp//ccVMO00J.s:392: Error: bad register name `%rdx)'
/usr/pkgsrc/emulators/qemu/work/qemu-2.7.0/rules.mak:59: recipe for target 'linuxboot_dma.o' failed
make[1]: *** [linuxboot_dma.o] Error 1
Makefile:231: recipe for target 'romsubdir-optionrom' failed
gmake: *** [romsubdir-optionrom] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /usr/pkgsrc/emulators/qemu
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/emulators/qemu

>How-To-Repeat:

>Fix:


Home | Main Index | Thread Index | Old Index