qemu does not build on amd64 (Re: your mail)

Juergen Lock nox at jelal.kn-bremen.de
Mon Dec 27 11:21:05 PST 2004


On Wed, Dec 15, 2004 at 11:24:31AM -0800, Kris Kennaway wrote:
> On Wed, Dec 15, 2004 at 07:37:11PM +0100, Christer Solskogen wrote:
> > Hi! 
> > I`m trying to compile qemu on my FreeBSD 5.3 on amd64. And I cant seem
> > to get it to compile. I have also seen other reporting the same behavior
> > on amd64. If you, or someone can help me on this one please tell me
> > how :)

Ok, here is a patch that should make the port build with gcc33,
could you please try it:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile	17 Nov 2004 09:47:38 -0000	1.18
+++ Makefile	27 Dec 2004 19:11:18 -0000
@@ -24,14 +24,29 @@
 USE_GMAKE=	yes
 USE_GETOPT_LONG=	yes
 USE_SDL=	sdl
-USE_GCC=	3.4
 USE_PERL5=	yes
 PATCH_STRIP=	-p1
 CONFIGURE_ARGS+=	--prefix=${PREFIX} --cc=${CC}\ -I${PREFIX}/include
 MAN1=		qemu.1 qemu-img.1
 ONLY_FOR_ARCHS=	i386 amd64 powerpc
 
+.include <bsd.port.pre.mk>
+
+# gcc34 on amd64 (system cc now) doesnt build target-i386/op.c
+.if ${ARCH} == "amd64"
+.if ${OSVERSION} >= 502126
+CC=		gcc33
+CXX=		g++33
+BUILD_DEPENDS+=	gcc33:${PORTSDIR}/lang/gcc33
+GCCVERSION=	030301
+.else
+USE_GCC=	3.3
+.endif
+.else
+USE_GCC=	3.4
+.endif
+
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the freebsd-ports mailing list