From owner-freebsd-ports@FreeBSD.ORG Mon Dec 27 19:21:05 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F72916A4D0 for ; Mon, 27 Dec 2004 19:21:05 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A5EF43D53 for ; Mon, 27 Dec 2004 19:21:03 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (uucp@gwyn [127.0.0.1]) iBRJKfBI012262; Mon, 27 Dec 2004 20:20:41 +0100 Received: from saturn.kn-bremen.de (uucp@localhost)iBRJKfju012260; Mon, 27 Dec 2004 20:20:41 +0100 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id iBRJaHp42583; Mon, 27 Dec 2004 20:36:18 +0100 (CET) From: Juergen Lock Date: Mon, 27 Dec 2004 20:36:15 +0100 To: Kris Kennaway Message-ID: <20041227203615.A42330@saturn.kn-bremen.de> Mail-Followup-To: Kris Kennaway , Christer Solskogen , ports@freebsd.org References: <1103135832.841.4.camel@funshine.carebears.net> <20041215192431.GA67271@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20041215192431.GA67271@xor.obsecurity.org> cc: Christer Solskogen cc: ports@freebsd.org Subject: Re: qemu does not build on amd64 (Re: your mail) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2004 19:21:05 -0000 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 + +# 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 +.include