From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 20:06:16 2010 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 35F8810656A3; Tue, 9 Nov 2010 20:06:16 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id D42418FC24; Tue, 9 Nov 2010 20:06:15 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id DF7ED5AC93; Tue, 9 Nov 2010 20:46:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id DCC2D5AC92; Tue, 9 Nov 2010 20:46:06 +0100 (CET) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id BA3105CD43; Tue, 9 Nov 2010 20:46:06 +0100 (CET) Received: from wep4035.physik.uni-wuerzburg.de ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.2HF105) with ESMTP id 2010110920460609-91105 ; Tue, 9 Nov 2010 20:46:06 +0100 Date: Tue, 9 Nov 2010 20:46:05 +0100 From: Alexey Shuvaev To: Alexander Best Message-ID: <20101109194605.GB45046@wep4035.physik.uni-wuerzburg.de> References: <20101030232244.GA35209@freebsd.org> <20101105214700.GT85693@acme.spoerlein.net> <20101109182512.GA16204@freebsd.org> MIME-Version: 1.0 In-Reply-To: <20101109182512.GA16204@freebsd.org> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.2HF105 | October 15, 2010) at 11/09/2010 08:46:06 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.2HF105 | October 15, 2010) at 11/09/2010 08:46:06 PM Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: issue with "options DDB" 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: Tue, 09 Nov 2010 20:06:16 -0000 On Tue, Nov 09, 2010 at 06:25:12PM +0000, Alexander Best wrote: > On Fri Nov 5 10, Ulrich Sp=F6rlein wrote: > > On Sat, 30.10.2010 at 23:22:44 +0000, Alexander Best wrote: > > > hi there, > > >=20 > > > with "options DDB" in my kernel conf i run into the following issue w= ith my > > > kernel modules: > > >=20 > > > link=5Felf=5Flookup=5Fsymbol: missing symbol hash table > > > KLD file snd=5Fhda.ko is missing dependencies > > > KLD file sound.ko is missing dependencies > > > KLD file nvidia.ko is missing dependencies > > > KLD file linux.ko is missing dependencies > > > KLD file ng=5Fubt.ko is missing dependencies > > > KLD file ng=5Fhci.ko is missing dependencies > > > KLD file ng=5Fbluetooth.ko is missing dependencies > > > KLD file netgraph.ko is missing dependencies > > > link=5Felf=5Flookup=5Fsymbol: missing symbol hash table > > >=20 > > > removing the option solves the issue. any advice? > > >=20 > > > cheers. > > > alex > > >=20 > > > ps: i'm running HEAD (r214542; amd64). > >=20 > > You failed to mention the command that you run. I assume 'buildkernel'? > > Please note that you need and update-to-date "buildworld" for the kernel > > tools to be there, so please try the following (with options DDB): > >=20 > > cd /usr/src > > make clean; make cleandir; make clean > > make buildworld > > make buildkernel KERNCONF=3DYOURKERNEL >=20 > hmmm....seems there is a problem with gcc. this is what i get during > buildworld: >=20 >=20 > clang++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative -DI= N=5FGLIBCPP=5FV3 -DHAVE=5FCONFIG=5FH -I/usr/src/gnu/lib/libsupc++/../../../= contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libst= dc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src= /gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=3DRepeatabilityConsidered= Good -g -fstack-protector -fconserve-space -fno-implicit-templates -ffuncti= on-sections -fdata-sections -c /usr/src/gnu/lib/libsupc++/../../../contrib/= libstdc++/libsupc++/tinfo2.cc > clang++: warning: argument unused during compilation: '-fconserve-space' ^^^^^^^^^^^ > clang++: warning: argument unused during compilation: '-fno-implicit-temp= lates' > clang++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative -DI= N=5FGLIBCPP=5FV3 -DHAVE=5FCONFIG=5FH -I/usr/src/gnu/lib/libsupc++/../../../= contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libst= dc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src= /gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=3DRepeatabilityConsidered= Good -g -fstack-protector -fconserve-space -fno-implicit-templates -ffuncti= on-sections -fdata-sections -c /usr/src/gnu/lib/libsupc++/../../../contrib/= libstdc++/libsupc++/vec.cc > clang++: warning: argument unused during compilation: '-fconserve-space' > clang++: warning: argument unused during compilation: '-fno-implicit-temp= lates' > clang++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative -DI= N=5FGLIBCPP=5FV3 -DHAVE=5FCONFIG=5FH -I/usr/src/gnu/lib/libsupc++/../../../= contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libst= dc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src= /gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=3DRepeatabilityConsidered= Good -g -fstack-protector -fconserve-space -fno-implicit-templates -ffuncti= on-sections -fdata-sections -c /usr/src/gnu/lib/libsupc++/../../../contrib/= libstdc++/libsupc++/vterminate.cc > clang++: warning: argument unused during compilation: '-fconserve-space' > clang++: warning: argument unused during compilation: '-fno-implicit-temp= lates' > clang -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative -DIN= =5FGLIBCPP=5FV3 -DHAVE=5FCONFIG=5FH -I/usr/src/gnu/lib/libsupc++/../../../c= ontrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libstd= c++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src/= gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=3DRepeatabilityConsideredG= ood -g -std=3Dgnu99 -fstack-protector -c /usr/src/gnu/lib/libsupc++/../../= ../contrib/gcclibs/libiberty/cp-demangle.c > building static supc++ library > ranlib libsupc++.a > =3D=3D=3D> gnu/lib/libobjc (all) > gcc -O2 -pipe -fno-strict-aliasing -funroll-loops -march=3Dnative -DHAVE= =5FGTHR=5FDEFAULT -DIN=5FGCC -DIN=5FTARGET=5FLIBS -I. -I/usr/src/gnu/lib/li= bobjc/../../usr.bin/cc/cc=5Ftools -I/usr/src/gnu/lib/libobjc/../../../contr= ib/libobjc/objc -I/usr/src/gnu/lib/libobjc/../../../contrib/libobjc -I/usr/= src/gnu/lib/libobjc/../../../contrib/gcc/config -I/usr/src/gnu/lib/libobjc/= ../../../contrib/gcc -I/usr/src/gnu/lib/libobjc/../../../contrib/gcclibs/in= clude -fexceptions -frandom-seed=3DRepeatabilityConsideredGood -g -std=3Dgn= u99 -fstack-protector -c /usr/src/gnu/lib/libobjc/../../../contrib/libobjc= /archive.c > *** Signal 11 >=20 > Stop in /usr/src/gnu/lib/libobjc. > *** Error code 1 >=20 > Stop in /usr/src/gnu/lib. > *** Error code 1 >=20 > Stop in /usr/src. > *** Error code 1 >=20 > Stop in /usr/src. > *** Error code 1 >=20 > Stop in /usr/src. > *** Error code 1 >=20 > Stop in /usr/src. >=20 >=20 > i've ran buildworld twice (with a clean /usr/src and non-existing /usr/ob= j/*) > and got the error twice, so it's not a hardware problem it seems. >=20 > if i'm not mistaken the gcc that is being used for buildworld is not the = one in > /usr/bin, but a fresh build in /usr/obj, right? >=20 > this is the bt from "gdb /usr/obj/usr/src/tmp/usr/bin/gcc gcc.core". i ho= pe i > picked the correct gcc executable: >=20 >=20 > Core was generated by `gcc'. > Program terminated with signal 11, Segmentation fault. > #0 host=5Fdetect=5Flocal=5Fcpu (argc=3DVariable "argc" is not available. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/drive= r-i386.c:272 > 272 return concat ("-m", argv[0], "=3D", cpu, NULL); > (gdb) bt > #0 host=5Fdetect=5Flocal=5Fcpu (argc=3DVariable "argc" is not available. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/drive= r-i386.c:272 > #1 0x000000000040c754 in eval=5Fspec=5Ffunction (func=3DCannot access me= mory at address 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5520 > #2 0x00000000004093f2 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5591 > #3 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #4 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #5 0x0000000000409398 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5413 > #6 0x0000000000409545 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5193 > #7 0x0000000000409398 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5413 > #8 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #9 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #10 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #11 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #12 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #13 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #14 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #15 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #16 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #17 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #18 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #19 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #20 0x000000000040c4d2 in handle=5Fbraces (p=3DCannot access memory at ad= dress 0x0 > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884 > #21 0x0000000000408d99 in do=5Fspec=5F1 (spec=3DVariable "spec" is not av= ailable. > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274 > #22 0x00000000004003ec in do=5Fspec=5F2 (spec=3D0x1
) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4490 > #23 0x000000000040033d in do=5Fspec (spec=3D0x1
) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4458 > #24 0x00000000004036d1 in main (argc=3D23, argv=3D0x7fffffffe240) at /usr= /src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:6712 >=20 So, you are trying to do a mixed clang+gcc build. Which architecture is thi= s? Does the problem occur in the case of a pure gcc build? HTH, Alexey. =