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

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue Nov  9 10, Alexey Shuvaev wrote:
> On Tue, Nov 09, 2010 at 06:25:12PM +0000, Alexander Best wrote:
> > On Fri Nov  5 10, Ulrich Spörlein wrote:
> > > On Sat, 30.10.2010 at 23:22:44 +0000, Alexander Best wrote:
> > > > hi there,
> > > > 
> > > > with "options DDB" in my kernel conf i run into the following issue with my
> > > > kernel modules:
> > > > 
> > > > link_elf_lookup_symbol: missing symbol hash table
> > > > KLD file snd_hda.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_ubt.ko is missing dependencies
> > > > KLD file ng_hci.ko is missing dependencies
> > > > KLD file ng_bluetooth.ko is missing dependencies
> > > > KLD file netgraph.ko is missing dependencies
> > > > link_elf_lookup_symbol: missing symbol hash table
> > > > 
> > > > removing the option solves the issue. any advice?
> > > > 
> > > > cheers.
> > > > alex
> > > > 
> > > > ps: i'm running HEAD (r214542; amd64).
> > > 
> > > 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):
> > > 
> > > cd /usr/src
> > > make clean; make cleandir; make clean
> > > make buildworld
> > > make buildkernel KERNCONF=YOURKERNEL
> > 
> > hmmm....seems there is a problem with gcc. this is what i get during
> > buildworld:
> > 
> > 
> > clang++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=native -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libstdc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src/gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=RepeatabilityConsideredGood -g -fstack-protector -fconserve-space -fno-implicit-templates -ffunction-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-templates'
> > clang++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=native -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libstdc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src/gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=RepeatabilityConsideredGood -g -fstack-protector -fconserve-space -fno-implicit-templates -ffunction-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-templates'
> > clang++ -O2 -pipe -fno-strict-aliasing -funroll-loops -march=native -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libstdc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src/gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=RepeatabilityConsideredGood -g -fstack-protector -fconserve-space -fno-implicit-templates -ffunction-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-templates'
> > clang -O2 -pipe -fno-strict-aliasing -funroll-loops -march=native -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libsupc++/../../../contrib/libstdc++/libsupc++ -I/usr/src/gnu/lib/libsupc++/../../../contrib/gcc -I/usr/src/gnu/lib/libsupc++/../libstdc++ -I. -frandom-seed=RepeatabilityConsideredGood -g -std=gnu99 -fstack-protector  -c /usr/src/gnu/lib/libsupc++/../../../contrib/gcclibs/libiberty/cp-demangle.c
> > building static supc++ library
> > ranlib libsupc++.a
> > ===> gnu/lib/libobjc (all)
> > gcc -O2 -pipe -fno-strict-aliasing -funroll-loops -march=native -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS -I. -I/usr/src/gnu/lib/libobjc/../../usr.bin/cc/cc_tools -I/usr/src/gnu/lib/libobjc/../../../contrib/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/include -fexceptions -frandom-seed=RepeatabilityConsideredGood -g -std=gnu99 -fstack-protector  -c /usr/src/gnu/lib/libobjc/../../../contrib/libobjc/archive.c
> > *** Signal 11
> > 
> > Stop in /usr/src/gnu/lib/libobjc.
> > *** Error code 1
> > 
> > Stop in /usr/src/gnu/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've ran buildworld twice (with a clean /usr/src and non-existing /usr/obj/*)
> > and got the error twice, so it's not a hardware problem it seems.
> > 
> > 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?
> > 
> > this is the bt from "gdb /usr/obj/usr/src/tmp/usr/bin/gcc gcc.core". i hope i
> > picked the correct gcc executable:
> > 
> > 
> > Core was generated by `gcc'.
> > Program terminated with signal 11, Segmentation fault.
> > #0  host_detect_local_cpu (argc=Variable "argc" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c:272
> > 272	  return concat ("-m", argv[0], "=", cpu, NULL);
> > (gdb) bt
> > #0  host_detect_local_cpu (argc=Variable "argc" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c:272
> > #1  0x000000000040c754 in eval_spec_function (func=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5520
> > #2  0x00000000004093f2 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5591
> > #3  0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #4  0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #5  0x0000000000409398 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5413
> > #6  0x0000000000409545 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5193
> > #7  0x0000000000409398 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5413
> > #8  0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #9  0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #10 0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #11 0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #12 0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #13 0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #14 0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #15 0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #16 0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #17 0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #18 0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #19 0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #20 0x000000000040c4d2 in handle_braces (p=Cannot access memory at address 0x0
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
> > #21 0x0000000000408d99 in do_spec_1 (spec=Variable "spec" is not available.
> > ) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
> > #22 0x00000000004003ec in do_spec_2 (spec=0x1 <Address 0x1 out of bounds>) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4490
> > #23 0x000000000040033d in do_spec (spec=0x1 <Address 0x1 out of bounds>) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4458
> > #24 0x00000000004036d1 in main (argc=23, argv=0x7fffffffe240) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:6712
> > 
> So, you are trying to do a mixed clang+gcc build. Which architecture is this?
> Does the problem occur in the case of a pure gcc build?

i just tried and with gcc buildworld succeeds.

cheers.
alex

> 
> HTH,
> Alexey.

-- 
a13x



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