From owner-freebsd-current@FreeBSD.ORG Wed Aug 17 05:42:58 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08DCD106566B; Wed, 17 Aug 2011 05:42:58 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9DC7D8FC15; Wed, 17 Aug 2011 05:42:57 +0000 (UTC) Received: by qyk9 with SMTP id 9so539997qyk.13 for ; Tue, 16 Aug 2011 22:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YxEKw8EBMmXCoIB/stAELCOEKwtqVDV3bWS4c5yP4B4=; b=xe+XxdtTFWD7Qg+qxuGnsYwoULOsfWtIAWRvksRF5jWcJrGYC+q63r1L1awuSkKG8a kWXExGEbKqmIs/C1LMf0eVXb6YGQleniITJUcRtNDXXY6reEgVQz38yrvpvyDe3vRC22 OCWOpuGBcTv6Fh5l3OnjIU280H/1qq2bxsIQA= MIME-Version: 1.0 Received: by 10.224.206.66 with SMTP id ft2mr641991qab.379.1313559776891; Tue, 16 Aug 2011 22:42:56 -0700 (PDT) Received: by 10.224.178.65 with HTTP; Tue, 16 Aug 2011 22:42:56 -0700 (PDT) In-Reply-To: <9A6F7C9D-32D8-4387-BB03-B11CB0A91BFA@gmail.com> References: <4e4ab684.0c4c970a.68e8.6846SMTPIN_ADDED@mx.google.com> <9A6F7C9D-32D8-4387-BB03-B11CB0A91BFA@gmail.com> Date: Tue, 16 Aug 2011 22:42:56 -0700 Message-ID: From: Garrett Cooper To: Ivan Klymenko Content-Type: multipart/mixed; boundary=20cf300fb0e9e492b004aaacf703 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: danfe@freebsd.org, "freebsd-current@freebsd.org" , Alvaro Castillo Subject: Re: x11/nvidia-driver / Compilation has failed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 05:42:58 -0000 --20cf300fb0e9e492b004aaacf703 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/8/16 Garrett Cooper : > On Aug 16, 2011, at 11:26 AM, Ivan Klymenko wrote: > >> =D0=92 Tue, 16 Aug 2011 19:23:06 +0100 >> Alvaro Castillo =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> >>> I try to compile a x11/nvidia-driver and give this error. >>> >>> =3D=3D=3D> =C2=A0Building for nvidia-driver-270.41.19 >>> =3D=3D=3D> src (all) >>> cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=3D\"270.41.19\" >>> -D__KERNEL__ -DNVRM -Wno-unused-function -O -mno-red-zone >>> -mcmodel=3Dkernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL >>> -DKLD_MODULE -nostdinc >>> -I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src >>> -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param >>> inline-unit-growth=3D100 --param large-function-growth=3D1000 -fno-comm= on >>> -fno-omit-frame-pointer =C2=A0-mno-sse -mcmodel=3Dkernel -mno-red-zone >>> -mno-mmx -msoft-float =C2=A0-fno-asynchronous-unwind-tables -ffreestand= ing >>> -fstack-protector -std=3Diso9899:1999 -fstack-protector -Wall >>> -Wredundant-decls -Wnested-externs -Wstrict-prototypes >>> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =C2=A0-Wundef >>> -Wno-pointer-sign -fformat-extensions =C2=A0-Wmissing-include-dirs >>> -fdiagnostics-show-option -c nvidia_linux.c >>> cc1: warnings being treated as errors >>> nvidia_linux.c: In function 'linux_ioctl_nvidia': >>> nvidia_linux.c:42: warning: passing argument 3 of 'fget' makes integer >>> from pointer without a cast >>> nvidia_linux.c:42: error: too few arguments to function 'fget' >>> *** Error code 1 >>> >>> Stop >>> in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/sr= c. >>> *** Error code 1 >>> >>> Stop >>> in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19. >>> *** Error code 1 >>> >>> Stop in /usr/ports/x11/nvidia-driver. >>> *** Error code 1 >>> >>> uname -a: >>> FreeBSD shuttle0.lan 9.0-BETA1 FreeBSD 9.0-BETA1 #2: Mon Aug =C2=A08 >>> 17:05:59 WEST 2011 >>> netSys@shuttle0.lan:/usr/obj/usr/src/sys/HYDROGEN =C2=A0amd64 >>> >>> Ports has been updated since 19:20 (GMT0) >>> >>> Step to reproduce: >>> # cd /usr/ports/x11/nvidia-driver >>> # make >>> >>> Options to compile: (From make config command) >>> >>> WITH_FREEBSD_AGP=3Dyes >>> WITH_ACPI_PM=3Dyes >>> WITHOUT_LINUX=3Dno >>> WITH_WBINVD=3Dno >>> >> >> http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026533.ht= ml > > Thanks for the reminder. I'll submit a patch to fix this to danfe tonight= . Please take this patch and put it in your x11/nvidia-driver/files/ directory, test it out, and let me know how things go (I can't test it out yet because the source tree on my workstation is not up-to-date yet). Thanks, -Garrett --20cf300fb0e9e492b004aaacf703--