From owner-freebsd-questions@FreeBSD.ORG Sun Mar 22 16:17:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C494B106564A for ; Sun, 22 Mar 2009 16:17:56 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-bw0-f164.google.com (mail-bw0-f164.google.com [209.85.218.164]) by mx1.freebsd.org (Postfix) with ESMTP id 1A8DA8FC0C for ; Sun, 22 Mar 2009 16:17:55 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by bwz8 with SMTP id 8so1360878bwz.43 for ; Sun, 22 Mar 2009 09:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=DIGAFp85SRhOLXAlVz2uSmd2IBYkTCZyG+LbJ6lMPyg=; b=K2F55KhE+9v9x6DTlfJyjggYuvYdtrdKSFQA+wH+xFt4lIJ/gegVgZNU+otQkQuz8b LW2GdiQoWi7pcnYVYL3Ty1DAWj9W3mnY8djQhHsLAtACEDcMRyRL2ywcJyuDPSfF4VLp CXl0x4B+4bjCOdhmXuUulNaWUQiZP0sgWzhSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OwbAX8E9OZxF7Q0ulXfOufYSOycLL1KPkc5B1J1ygaKjNjvB5L/XBFKzwkZIi/MCY9 XS0CG7FIO+ms3XJ1D9Y13N4hZ/O2gHrIwib9KRFn8MJy/l2FsYTRsRnw7e/Gro5AERTi gnntUGjTo+2hMmASDR6439ZvBBQhF1FH+ENJ4= MIME-Version: 1.0 Received: by 10.223.114.208 with SMTP id f16mr5145098faq.91.1237738674594; Sun, 22 Mar 2009 09:17:54 -0700 (PDT) In-Reply-To: <49C66194.1040301@gmail.com> References: <991123400903220753o6909d0ban5ef235bacf2b3ab1@mail.gmail.com> <200903220823.56243.kstewart@owt.com> <991123400903220843x78bc4cd3ta494dde23d5762ea@mail.gmail.com> <49C66194.1040301@gmail.com> Date: Sun, 22 Mar 2009 19:17:54 +0300 Message-ID: <991123400903220917n3303e10bpe1233dc97e75c168@mail.gmail.com> From: "\"Remorque\"" To: Manolis Kiagias Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, Kent Stewart Subject: Re: Kernel compile fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 16:17:58 -0000 On Sun, Mar 22, 2009 at 7:04 PM, Manolis Kiagias wrote: > "Remorque" wrote: > > On Sun, Mar 22, 2009 at 6:23 PM, Kent Stewart wrote: > > > > > >> On Sunday 22 March 2009 07:53:00 am "Remorque" wrote: > >> > >>> I have installed 7.1-RELEASE on a hardware with AMD processor. I have > >>> successfully buildworld, and now doing the "make kernel" thing.The > kernel > >>> config file is pretty GENERIC, I only removed the option to build a > DEBUG > >>> kernel.I have csup-ped today. > >>> However, my compilation fails, viz: > >>> > >>> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 > -Wall > >>> -Wredundant-decls -Wnested-externs -Wstrict-prototypes > >>> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > >>> -Wno-pointer-sign > >>> -fformat-extensions -nostdinc -I. -I/usr/src/sys > >>> -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS > >>> > >> -include > >> > >>> opt_global.h -fno-common -finline-limit=8000 --param > >>> > >> inline-unit-growth=100 > >> > >>> --param large-function-growth=1000 -mcmodel=kernel -mno-red-zone > >>> -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float > >>> -fno-asynchronous-unwind-tables -ffreestanding -Werror > >>> /usr/src/sys/dev/ath/if_ath.c -I/usr/src/sys/dev/ath > >>> *** Error code 1 > >>> > >>> Stop in /usr/obj/usr/src/sys/FS. > >>> *** Error code 1 > >>> > >>> Stop in /usr/src. > >>> *** Error code 1 > >>> > >>> Stop in /usr/src. > >>> > >>> > >>> > >>> I can go ahead and comment out all ath_* from the configuration, since > I > >>> wouldn't really need them at this juncture, but I believe it should not > >>> > >> be > >> > >>> failing anyway. Do I just wait to csup again tomorrow and hope this > gets > >>> fixed? :) > >>> > >> You have optimization options on the compile line that I don't have on > my > >> system. From this, I would guess that you have a cflags statment > >> in /etc/make.conf and it is bitting you. > >> > >> Kent > >> > > > > > > Hi Kent, > > > > Thank you for replying. > > > > The fact is that: > > > > 1. I have never used any optimizations ever since I started using FreeBSD > > 2. This is a new box, and there is no /etc/make.conf as yet > > > > The only things I have done on this box (a Dell SC1435) is to install, > csup > > (src, ports) and buildworld. > > I was just gonna do the kernel, then start doing the other stuff after > the > > system updates. > > > > Your guess is wrong:-) > > > > > > If you csup'd source as you say above, you are now on 7-STABLE. > There have been some changes in the atheros driver, and I noticed your > build stopped there. > > Look at the new GENERIC conf file: > > device ath # Atheros pci/cardbus NIC's > device ath_hal # Atheros HAL (Hardware Access Layer) > options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors > device ath_rate_sample # SampleRate tx rate control for ath > > If your custom configuration file comes from editing a 7.0-RELEASE e.g. > GENERIC, it will fail. Use the newer GENERIC as a starting point, or > simply replace the atheros entries with the ones above. I used the 7.1 DVD to install, not 7.0. >From my observation (having gone thro 5 `make kernel` attempts now) is that the failure is quite random. I am not sure what is happening actually. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "The only time a woman really succeeds in changing a man is when he is a baby." - Natalie Wood