Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2010 20:46:05 +0100
From:      Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
To:        Alexander Best <arundel@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: issue with "options DDB"
Message-ID:  <20101109194605.GB45046@wep4035.physik.uni-wuerzburg.de>
In-Reply-To: <20101109182512.GA16204@freebsd.org>
References:  <20101030232244.GA35209@freebsd.org> <20101105214700.GT85693@acme.spoerlein.net> <20101109182512.GA16204@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Address 0x1 out of b=
ounds>) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4490
> #23 0x000000000040033d in do=5Fspec (spec=3D0x1 <Address 0x1 out of bound=
s>) 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.
=



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