From owner-freebsd-questions@FreeBSD.ORG Sun Mar 22 19:43:11 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 5C0261065674 for ; Sun, 22 Mar 2009 19:43:11 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by mx1.freebsd.org (Postfix) with ESMTP id 8416F8FC21 for ; Sun, 22 Mar 2009 19:43:10 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by fxm11 with SMTP id 11so1433224fxm.43 for ; Sun, 22 Mar 2009 12:43:09 -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=bLc6EDH19DyZQZWs/OBMVzYDufPcmFxL4kdV/pkibLE=; b=uu8MnKbk1er3Paw60xP6/IZFF6aJZyJOeKWyl10FqhYpQIXVmOZW4V73EJf9munU5H YUK3YLrxb9t5Xa50omeC4MbNByT7zAd6Ba0kwIgow6YV5J7/w/IsDFyKNil0vMs6LiIN dAslNAGRs7xlhRPP49RFy4A+nd7CKUVdKBqTU= 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=ngepWr4YOZggsQle5KZFnjWh9Lc+rAoxMolMAeiNstonDRXCNh3Z32JE3Ewm4HsvIc B+9XYZpBxOf+I875X6Gg7l0C/lkRgf2x6oakyqgId/q1jrZyIDTTCMARpUhmtSAzf3yQ WirBUFtu1cN8oti7VjRCZVSEoZw1DNy3hIjXo= MIME-Version: 1.0 Received: by 10.223.110.144 with SMTP id n16mr5330208fap.55.1237750989403; Sun, 22 Mar 2009 12:43:09 -0700 (PDT) In-Reply-To: <200903221239.22484.kstewart@owt.com> References: <991123400903220753o6909d0ban5ef235bacf2b3ab1@mail.gmail.com> <200903221127.34430.kstewart@owt.com> <991123400903221207g3066c42y73e7cb5f82b32cc3@mail.gmail.com> <200903221239.22484.kstewart@owt.com> Date: Sun, 22 Mar 2009 22:43:09 +0300 Message-ID: <991123400903221243g5c1edae9hc3d30725c88a551e@mail.gmail.com> From: "\"Remorque\"" To: Kent Stewart 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 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 19:43:12 -0000 On Sun, Mar 22, 2009 at 10:39 PM, Kent Stewart wrote: > On Sunday 22 March 2009 12:07:44 pm "Remorque" wrote: > > On Sun, Mar 22, 2009 at 9:27 PM, Kent Stewart wrote: > > > On Sunday 22 March 2009 08:43:53 am "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:-) > > > > > > Yes, you are right. I cvsuped and rebuilt my system and it died at the > > > same spot. > > > > Looks like AH_SUPPORT_AR5416 from 20090312 of /usr/src/UPDATING helped me > > compile my kernel successfully! > > Now another problem appears: > > The AH_* stuff also fixed my problem. > > > > > fs# make installworld > > mkdir -p /tmp/install.4l9c3cd6 > > for prog in [ awk cap_mkdb cat chflags chmod chown date echo egrep find > > grep install-info ln lockf make mkdir mtree mv pwd_mkdb rm sed sh > > sysctl test true uname wc zic; do cp `which $prog` > /tmp/install.4l9c3cd6; > > done > > cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 > > CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GRO > > FF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font > > GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac > > PATH=/usr/obj/usr > > > /src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/s > >rc/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/us > > r/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.4l9c3cd6 > make > > -f Makefile.inc1 reinstall > > -------------------------------------------------------------- > > > > >>> Making hierarchy > > > > -------------------------------------------------------------- > > cd /usr/src; make -f Makefile.inc1 hierarchy > > cd /usr/src/etc; make distrib-dirs > > mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p / > > mtree -eU -f /usr/src/etc/mtree/BSD.var.dist -p /var > > mtree -eU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr > > mtree -eU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include > > mtree -deU -f /usr/src/etc/mtree/BIND.chroot.dist -p /var/named > > mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p / > > cd /; rm -f /sys; ln -s usr/src/sys sys > > cd /usr/share/man/en.ISO8859-1; ln -sf ../man* . > > cd /usr/share/man; set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`; > while > > [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift > > ; done > > cd /usr/share/openssl/man; set - `grep "^[a-zA-Z]" > > /usr/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s > > "$2" "$1"; shif > > t; shift; done > > cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . > > cd /usr/share/nls; set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`; > while > > [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift > > ; done > > > > -------------------------------------------------------------- > > > > >>> Installing everything > > > > -------------------------------------------------------------- > > cd /usr/src; make -f Makefile.inc1 install > > ===> share/info (install) > > ===> lib (install) > > ===> lib/csu/amd64 (install) > > install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib > > install:No such file or directory > > *** Error code 1 > > > > Stop in /usr/src/lib/csu/amd64. > > *** Error code 1 > > > > Stop in /usr/src/lib. > > *** Error code 1 > > > > Stop in /usr/src. > > *** Error code 1 > > > > Stop in /usr/src. > > *** Error code 1 > > > > Stop in /usr/src. > > *** Error code 1 > > > > Stop in /usr/src. > > > > > > I feel so unhappy with this system:) > > This must be something from the 64-bit side of things because I am running > what I just built and installed. The only thing I noticed was it > says "FreeBSD 7.2-PRERELEASE" when I looked at the dmesg. > Mine says the same version... well, 7.2 is around the corner anyway, > Life is boring without some challenges. That is why I like working with > computers but they could take it easy on me at times :). Yes, but this NOT a challenge to me, but frustration. Can only be a challenge to the DevTeam :) I consider myself an ordinary user in this case, -- 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