From nobody@FreeBSD.org  Thu Dec 19 03:30:52 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 831F13AF
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Dec 2013 03:30:52 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 63EB91355
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Dec 2013 03:30:52 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBJ3Uq0r069091
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Dec 2013 03:30:52 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBJ3UqEB069049;
	Thu, 19 Dec 2013 03:30:52 GMT
	(envelope-from nobody)
Message-Id: <201312190330.rBJ3UqEB069049@oldred.freebsd.org>
Date: Thu, 19 Dec 2013 03:30:52 GMT
From: Alex <alex323@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: emulators/kqemu-kmod fails to build on 10.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: nick.nolan@comcast.net

>Number:         184984
>Category:       ports
>Synopsis:       emulators/kqemu-kmod fails to build on 10.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    nox
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 19 03:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Mar 15 21:06:50 UTC 2014
>Originator:     Alex
>Release:        10.0
>Organization:
>Environment:
FreeBSD 10.0-RC2 #0 r259488
>Description:
===>   kqemu-kmod-1.3.0.p11_12 depends on executable: gmake - found
===>   kqemu-kmod-1.3.0.p11_12 depends on executable: gcc46 - found
===>   kqemu-kmod-1.3.0.p11_12 depends on file: /usr/local/bin/as - found
===>  Configuring for kqemu-kmod-1.3.0.p11_12
===>   FreeBSD 10 autotools fix applied to /usr/home/jojo/ports/emulators/kqemu-kmod/work/kqemu-1.3.0pre11/configure
Source path       /usr/home/jojo/ports/emulators/kqemu-kmod/work/kqemu-1.3.0pre11
C compiler        gcc46
Host C compiler   gcc
make              gmake
host CPU          x86_64
===>  Building for kqemu-kmod-1.3.0.p11_12
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
gmake[1]: Entering directory `/usr/home/jojo/ports/emulators/kqemu-kmod/work/kqemu-1.3.0pre11/common'
gcc46 -Wall -O2 -Werror -g -D__KERNEL__ -I.. -o genoffsets genoffsets.c
./genoffsets > monitor_def.h
gcc46  -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o x86_64/nexus_asm.o x86_64/nexus_asm.S
gcc46  -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o x86_64/monitor_asm.o x86_64/monitor_asm.S
gcc46 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror  -mno-red-zone -fno-stack-protector    -fpic  -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor.o monitor.c
gcc46 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror  -mno-red-zone -fno-stack-protector    -fpic  -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor-utils.o monitor-utils.c
gcc46 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror  -mno-red-zone -fno-stack-protector    -fpic  -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o interp.o interp.c
ori     lld -T x86_64/monitor.ld -o monitor-image.out x86_64/nexus_asm.o x86_64/monitor_asm.o monitor.o monitor-utils.o interp.o
objcopy -O binary monitor-image.out monitor-image.bin
gcc46 -Wall -O2 -Werror -g -o genmon genmon.c
./genmon < monitor-image.bin > monitor-image.h
gcc46 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror  -mno-red-zone  -mcmodel=kernel -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o kernel.o kernel.c
gcc46  -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o x86_64/kernel_asm.o x86_64/kernel_asm.S
ld -r -o ../kqemu-mod-x86_64.o kernel.o x86_64/kernel_asm.o
gmake[1]: Leaving directory `/usr/home/jojo/ports/emulators/kqemu-kmod/work/kqemu-1.3.0pre11/common'
usage: make [-BeikNnqrstWwX] 
            [-C directory] [-D variable] [-d flags] [-f makefile]
            [-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
            [-V variable] [variable=value] [target ...]
*** Error code 2
>How-To-Repeat:
cd /usr/ports/emulators/kqemu-kmod
make
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->nox 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Dec 19 03:40:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184984 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184984: commit references a PR
Date: Sat, 11 Jan 2014 22:03:34 +0000 (UTC)

 Author: nox
 Date: Sat Jan 11 22:03:26 2014
 New Revision: 339459
 URL: http://svnweb.freebsd.org/changeset/ports/339459
 
 Log:
   Mark BROKEN on 10+: KPI changes in 10 and up, use bhyve or vbox.
   (If someone wants to fix it: patches welcome! :)
   
   PR:		ports/184984
   Submitted by:	Alex <alex323@gmail.com>
 
 Modified:
   head/emulators/kqemu-kmod-devel/Makefile
   head/emulators/kqemu-kmod/Makefile
 
 Modified: head/emulators/kqemu-kmod-devel/Makefile
 ==============================================================================
 --- head/emulators/kqemu-kmod-devel/Makefile	Sat Jan 11 21:37:10 2014	(r339458)
 +++ head/emulators/kqemu-kmod-devel/Makefile	Sat Jan 11 22:03:26 2014	(r339459)
 @@ -31,6 +31,7 @@ USE_RC_SUBR=	kqemu
  NO_STAGE=	yes
  
  USES=		kmod
 +
  .include <bsd.port.pre.mk>
  
  PORTDOCS=	kqemu-doc.html kqemu-tech.html
 @@ -42,7 +43,7 @@ PLIST_FILES+=	"@cwd"
  
  MAKEFILE=	Makefile.freebsd
  
 -MAKE_ARGS+=	LDFLAGS=${LDFLAGS:S/^-Wl,//}
 +MAKE_ARGS+=	LDFLAGS="${LDFLAGS:S/^-Wl,//}"
  
  .if ${ARCH} == "amd64"
  GMAKE_ARGS+=	ARCH=x86_64
 @@ -50,6 +51,11 @@ GMAKE_ARGS+=	ARCH=x86_64
  
  CFLAGS+=	${DEBUG_FLAGS}
  
 +# Not sure about the exact OSVERSION:
 +.if ${OSVERSION} > 1000015
 +BROKEN=		KPI changes in 10 and up, use bhyve or vbox
 +.endif
 +
  post-patch:
  # Apply extra patches from the qemu-devel list; in the unlikely case that
  # these cause regressions please define WITHOUT_EXTRA_PATCHES and post
 
 Modified: head/emulators/kqemu-kmod/Makefile
 ==============================================================================
 --- head/emulators/kqemu-kmod/Makefile	Sat Jan 11 21:37:10 2014	(r339458)
 +++ head/emulators/kqemu-kmod/Makefile	Sat Jan 11 22:03:26 2014	(r339459)
 @@ -31,6 +31,7 @@ USE_RC_SUBR=	kqemu
  NO_STAGE=	yes
  
  USES=		kmod
 +
  .include <bsd.port.pre.mk>
  
  PORTDOCS=	kqemu-doc.html kqemu-tech.html
 @@ -42,7 +43,7 @@ PLIST_FILES+=	"@cwd"
  
  MAKEFILE=	Makefile.freebsd
  
 -MAKE_ARGS+=	LDFLAGS=${LDFLAGS:S/^-Wl,//}
 +MAKE_ARGS+=	LDFLAGS="${LDFLAGS:S/^-Wl,//}"
  
  .if ${ARCH} == "amd64"
  GMAKE_ARGS+=	ARCH=x86_64
 @@ -50,6 +51,11 @@ GMAKE_ARGS+=	ARCH=x86_64
  
  CFLAGS+=	${DEBUG_FLAGS}
  
 +# Not sure about the exact OSVERSION:
 +.if ${OSVERSION} > 1000015
 +BROKEN=		KPI changes in 10 and up, use bhyve or vbox
 +.endif
 +
  post-patch:
  	@${REINPLACE_CMD} -e '/CC=/s,gcc,${CC},' ${WRKSRC}/common/Makefile
  
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
Date: Fri, 14 Mar 2014 15:10:04 +0000 (UTC)
From: nick.nolan@comcast.net
To: nox@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/184984

 ------=_Part_8171226_1780599050.1394809804335
 Content-Type: text/plain; charset=utf-8
 Content-Transfer-Encoding: 7bit
 
 Hello, 
 
 Is there any way I could be added to the mailing lists of pr ports/184984 (or the appropriate bug if it has a new standing) 
 
 I have gotten past the compiler issue that was originally reported; but I'm hitting a new issue, "Exec format error" 
 tried with both kqemu-kmod and kqemu-kmod-devel, using a portsnap from yesterday. 
 I don't know if this is worthy of a new bug, as its priority as already low and the package is marked as broken. 
 root@workstation:/usr/ports/emulators/kqemu-kmod # kldload /boot/modules/kqemu.ko 
 kldload: can't load /boot/modules/kqemu.ko: Exec format error 
 root@workstation:/usr/ports/emulators/kqemu-kmod # file /boot/modules/kqemu.ko 
 /boot/modules/kqemu.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped 
 root@workstation:/usr/ports/emulators/kqemu-kmod # uname -rp 
 10.0-RELEASE amd64 
 
 
 I've found a variety of historic threads when searching " 
 http://osdir.com/ml/freebsd-ports-bugs/2009-02/msg00694.html 
 http://mailing.freebsd.ports-bugs.narkive.com/kYJsaffB/ports-131603-patch-emulators-kqemu-kmod-devel-unit2minor 
 
 
 
 ---- 
 No I can not use bhyve instead, as it is not designed for pre-nehalem VT-x enabled Xeons with no EPT. 
 
 
 Thanks, 
 Nick Nolan 
 ------=_Part_8171226_1780599050.1394809804335--

Date: Sat, 15 Mar 2014 00:09:35 +0100
From: Juergen Lock <nox@jelal.kn-bremen.de>
To: nick.nolan@comcast.net
Cc: nox@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/184984

 On Fri, Mar 14, 2014 at 03:10:04PM +0000, nick.nolan@comcast.net wrote:
 > I've found a variety of historic threads when searching " 
 > http://osdir.com/ml/freebsd-ports-bugs/2009-02/msg00694.html 
 > http://mailing.freebsd.ports-bugs.narkive.com/kYJsaffB/ports-131603-patch-emulators-kqemu-kmod-devel-unit2minor 
 > 
  Yeah that's an older update, this time around the problem is more tricky.
 
  You might be interested in this -virtualization thread:
 
 	http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-February/002236.html
 
 (you can pass the raw email from mid.cgi to mutt -f to extract the patch:
 
 	http://docs.freebsd.org/cgi/mid.cgi?CAExw994XswAp4yOVK54VTOg8Zy54sqAzxMNtUds1TJRiTnwisQ
 
 )
 
  According to the patch author it still isn't complete but maybe it
 still helps you...
 
  Good luck, :)
 	Juergen
>Unformatted:
