Date: Mon, 27 Dec 2004 20:36:15 +0100 From: Juergen Lock <nox@jelal.kn-bremen.de> To: Kris Kennaway <kris@obsecurity.org> Cc: ports@freebsd.org Subject: Re: qemu does not build on amd64 (Re: your mail) Message-ID: <20041227203615.A42330@saturn.kn-bremen.de> In-Reply-To: <20041215192431.GA67271@xor.obsecurity.org> References: <1103135832.841.4.camel@funshine.carebears.net> <20041215192431.GA67271@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041227203615.A42330>