Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 00:18:21 +0100
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: Compile error with kqemu-kmod on -current
Message-ID:  <20061217231821.GA60274@saturn.kn-bremen.de>
In-Reply-To: <4585C028.8070501@FreeBSD.org>
References:  <4585C028.8070501@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 17, 2006 at 02:09:44PM -0800, Doug Barton wrote:
> I'm getting the following on -current when trying to compile kqemu-kmod:
> 
> ===>  Building for kqemu-kmod-1.3.0.p9_2
> Warning: Object directory not changed from original
> /usr/local/tmp/usr/local/ports/emulators/kqemu-kmod/work/kqemu-1.3.0pre9
> @ -> /usr/local/src/sys
> machine -> /usr/local/src/sys/i386/include
> cc -O2 -fno-strict-aliasing -pipe -ggdb -ggdb -D_KERNEL -DKLD_MODULE
> -std=c99 -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000
> --param inline-unit-growth=100 --param large-function-growth=1000
> -fno-common -ggdb -mno-align-long-strings -mpreferred-stack-boundary=2
>  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions -c kqemu-freebsd.c
> cc1: error: unrecognized command line option "-Wno-pointer-sign"
> *** Error code 1
> 
> I can't find no-pointer-sign in the gcc 3.4.6 man page, but it is in
> the  gcc 4.2 man page. Unfortunately, the port doesn't seem to
> acknowledge the CC variable I have in my /etc/make.conf:
> 
> CC=/usr/local/bin/gcc42
> 
> since I get the same error with or without that.
> 
> Any ideas?

Hmm don't have klds to be compiled with the same cc as the kernel
i.e. the system cc?  You could try to mv away files/patch-Makefile.freebsd
(which actually is a leftover from times when kqemu was still built
inside the qemu tree, where it was necessary to get kqemu to build
on systems where qemu's CC differed from the system cc.)  If this
works, we can probably remove that patch now as whoever sets CC on a
kdl port should know what he's doing... :)

	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061217231821.GA60274>