Opened 8 years ago

Closed 8 years ago

#51660 closed defect (invalid)

Qemu 2.6.0 upgrade fails

Reported by: junkmail1994@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: qemu

Description (last modified by ryandesign (Ryan Carsten Schmidt))

sh-3.2# port upgrade outdated
--->  Computing dependencies for qemu
--->  Building qemu
Error: org.macports.build for port qemu returned: command execution failed
Please see the log file for port qemu for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Attachments (2)

main.log (33.7 KB) - added by junkmail1994@… 8 years ago.
main2.log (191.7 KB) - added by junkmail1994@… 8 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by junkmail1994@…

Attachment: main.log added

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to raimue@…
Port: qemu added

Please clean and try again, then if it fails again, attach the new clean main.log.

Changed 8 years ago by junkmail1994@…

Attachment: main2.log added

comment:2 in reply to:  1 Changed 8 years ago by junkmail1994@…

Replying to ryandesign@…:

Please clean and try again, then if it fails again, attach the new clean main.log.

Cleaned and tried again. Still failed. Attached new main.log file.

sh-3.2# port clean qemu
--->  Cleaning qemu
sh-3.2# port upgrade outdated
--->  Computing dependencies for qemu
--->  Fetching archive for qemu
--->  Attempting to fetch qemu-2.6.0_0+cocoa+target_i386+target_x86_64+usb.darwin_12.x86_64.tbz2 from https://packages.macports.org/qemu
--->  Attempting to fetch qemu-2.6.0_0+cocoa+target_i386+target_x86_64+usb.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/qemu
--->  Attempting to fetch qemu-2.6.0_0+cocoa+target_i386+target_x86_64+usb.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/qemu
--->  Fetching distfiles for qemu
--->  Verifying checksums for qemu
--->  Extracting qemu
--->  Applying patches to qemu
--->  Configuring qemu
--->  Building qemu
Error: org.macports.build for port qemu returned: command execution failed
Please see the log file for port qemu for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
sh-3.2# 

comment:3 Changed 8 years ago by raimue (Rainer Müller)

Excerpt from main2.log:

:info:build /usr/bin/clang -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-2.6.0/tcg -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-2.6.0/tcg/i386 -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-2.6.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-2.6.0/include -Iutil -Iutil -I/opt/local/include/pixman-1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-2.6.0/dtc/libfdt -m64 -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -Wno-string-plus-int -Wno-initializer-overrides -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-definition -Wtype-limits -fstack-protector-all -I/opt/local/include -I/opt/local/include/p11-kit-1 -I/opt/local/include -I/opt/local/include -I/opt/local/include/libusb-1.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-2.6.0/tests -I qga/qapi-generated -MMD -MP -MT util/crc32c.o -MF util/crc32c.d -O2 -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -g -pipe -Os -arch x86_64  -c -o util/crc32c.o util/crc32c.c
[]:info:build fatal error: error in backend: Cannot select: 0x1028d8e10: i8,ch = AtomicLoad 0x1028e0b10, 0x1028e0910<Volatile LD1[@inet_parse_connect_saddr.useV4Mapped.b]> [ID=39]
:info:build   0x1028e0910: i64 = X86ISD::WrapperRIP 0x1028bbc10 [ID=24]
:info:build     0x1028bbc10: i64 = TargetGlobalAddress<i1* @inet_parse_connect_saddr.useV4Mapped.b> 0 [ID=19]
:info:build In function: inet_connect_saddr
:info:build make: *** [util/qemu-sockets.o] Error 1

This would be a bug in the compilter toolchain clang/LLVM. Which version of OS X are you using (sw_vers)? Which version of Xcode (xcodebuild -version)?

A quick workaround could be to manually select a different compiler, for example:

$ sudo port clean qemu
$ sudo port install qemu configure.compiler=macports-clang-3.7

comment:4 Changed 8 years ago by junkmail1994@…

Thanks for trying to help. Info below.

sh-3.2# sw_vers
ProductName:	Mac OS X
ProductVersion:	10.8.5
BuildVersion:	12F2560
sh-3.2# xcodebuild -version
Xcode 5.1.1
Build version 5B1008

comment:5 Changed 8 years ago by junkmail1994@…

I also tried your suggestion, that gave me an error also, see below.

sh-3.2# port install qemu configure.compiler=macports-clang-3.7
--->  Computing dependencies for qemu
--->  Cleaning qemu
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     gr-fosphor @20160125 
--->  Computing dependencies for gr-fosphor
--->  Cleaning gr-fosphor
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     gr-fosphor @20160125 
--->  Computing dependencies for gr-fosphor
--->  Fetching distfiles for gr-fosphor
--->  Verifying checksums for gr-fosphor
--->  Extracting gr-fosphor
--->  Applying patches to gr-fosphor
--->  Configuring gr-fosphor
--->  Building gr-fosphor
--->  Staging gr-fosphor into destroot
--->  Deactivating gr-fosphor @20160125_0
--->  Cleaning gr-fosphor
--->  Uninstalling gr-fosphor @20160125_0
--->  Cleaning gr-fosphor
--->  Computing dependencies for gr-fosphor
--->  Installing gr-fosphor @20160125_0
--->  Activating gr-fosphor @20160125_0
--->  Cleaning gr-fosphor
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     gr-fosphor @20160125 
--->  Computing dependencies for gr-fosphor
--->  Fetching distfiles for gr-fosphor
--->  Verifying checksums for gr-fosphor
--->  Extracting gr-fosphor
--->  Applying patches to gr-fosphor
--->  Configuring gr-fosphor
--->  Building gr-fosphor
--->  Staging gr-fosphor into destroot
--->  Deactivating gr-fosphor @20160125_0
--->  Cleaning gr-fosphor
--->  Uninstalling gr-fosphor @20160125_0
--->  Cleaning gr-fosphor
--->  Computing dependencies for gr-fosphor
--->  Installing gr-fosphor @20160125_0
--->  Activating gr-fosphor @20160125_0
--->  Cleaning gr-fosphor
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 2 broken file(s), matching files to ports    
Error: Port gr-fosphor is still broken after rebuilding it more than 3 times.
Error: Please run port -d -y rev-upgrade and use the output to report a bug.
Port gr-fosphor still broken after rebuilding 3 time(s)
    while executing
"error "Port $portname still broken after rebuilding [expr {$broken_port_counts($portname) - 1}] time(s)""
    (procedure "revupgrade_scanandrebuild" line 280)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)
sh-3.2# 

comment:6 Changed 8 years ago by raimue (Rainer Müller)

Please read the log more carefully. The reported error has nothing to do with qemu, but is about gr-fosphor.

I forgot you were doing an upgrade, not an install. The command just returned because the qemu port is already installed. The correct sequence of commands to upgrade would be:

$ sudo port clean qemu
$ sudo port upgrade qemu configure.compiler=macports-clang-3.7

comment:7 Changed 8 years ago by raimue (Rainer Müller)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.