From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 23 05:42:57 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6EB6A7DC; Sun, 23 Dec 2012 05:42:57 +0000 (UTC) (envelope-from bright@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 394178FC12; Sun, 23 Dec 2012 05:42:56 +0000 (UTC) Received: from Alfreds-MacBook-Pro-9.local (c-67-180-208-218.hsd1.ca.comcast.net [67.180.208.218]) by elvis.mu.org (Postfix) with ESMTPSA id 864FC1A3C2C; Sat, 22 Dec 2012 21:42:56 -0800 (PST) Message-ID: <50D699E3.3090606@mu.org> Date: Sat, 22 Dec 2012 21:42:59 -0800 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Jan Beich Subject: Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files References: <20121222164602.GB32022@sandvine.com> <1Tmb5f-000Jy5-CT@internal.tormail.org> <50D684D7.8050906@mu.org> In-Reply-To: <50D684D7.8050906@mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-hackers@freebsd.org, Ed Maste X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 05:42:57 -0000 On 12/22/12 8:13 PM, Alfred Perlstein wrote: > On 12/22/12 6:14 PM, Jan Beich wrote: >> Ed Maste writes: >> >>> When this knob is set standalone debug files for shared objects are >>> built and installed in /usr/lib/debug/.debug. GDB >>> searches this path for debug data. >> [...] >> What about ports? They are not allowed to install outside of PREFIX. >> >> $ cd multimedia/cuse4bsd-kmod >> $ make install PREFIX=/tmp/aaa PKG_DBDIR=/tmp/pkg WITH_DEBUG= >> [...] >> install -C -o root -g wheel -m 444 libcuse4bsd.a /tmp/aaa/lib >> install -s -o root -g wheel -m 444 libcuse4bsd.so.1 /tmp/aaa/lib >> install -o root -g wheel -m 444 libcuse4bsd.so.1.debug >> /usr/lib/debug/tmp/aaa/lib >> install: /usr/lib/debug/tmp/aaa/lib: No such file or directory >> *** [_libinstall] Error code 71 > I have a patch for this. I am building world to see what happens, if > you want to try it, or comment on it, please let me know. > > Changes are: > base DEBUGDIR on LIBDIR for ports > create intermediate directories for debug objs. > > -Alfred Buildworld breaks with this for me using my patch, no idea what this all means yet. Will look into it: exer.c -o nslexer.So ctfconvert -L VERSION crypt_xdr.o ctfconvert -L VERSION crypt_clnt.o ctfconvert -L VERSION nsparser.So ctfconvert -L VERSION nsparser.o ctfconvert -L VERSION crypt_clnt.So ctfconvert -L VERSION crypt_xdr.So ctfconvert -L VERSION yp_xdr.o ctfconvert -L VERSION subr_acl_nfs4.So ctfconvert -L VERSION nslexer.o ctfconvert -L VERSION yp_xdr.So ctfconvert -L VERSION subr_acl_nfs4.o building static c library ctfconvert -L VERSION nslexer.So building shared library libc.so.7 building special pic c library BFD: dlfcn.o: invalid SHT_GROUP entry BFD: dlfcn.o: invalid SHT_GROUP entry BFD: dlfcn.o: invalid SHT_GROUP entry BFD: dlfcn.o: invalid SHT_GROUP entry BFD: dlfcn.o: no group info for section .text._rtld_error BFD: dlfcn.o: no group info for section .text.dladdr BFD: dlfcn.o: no group info for section .text.dlclose BFD: dlfcn.o: no group info for section .text.dlerror BFD: dlfcn.o: no group info for section .text.dllockinit BFD: dlfcn.o: no group info for section .text.dlopen BFD: dlfcn.o: no group info for section .text.dlsym BFD: dlfcn.o: no group info for section .text.dlvsym BFD: dlfcn.o: no group info for section .text.dlinfo BFD: dlfcn.o: no group info for section .text._rtld_thread_init BFD: dlfcn.o: no group info for section .text._rtld_atfork_post BFD: dlfcn.o: no group info for section .text._rtld_get_stack_prot nm: dlfcn.o: File format not recognized BFD: elf_utils.o: invalid SHT_GROUP entry BFD: elf_utils.o: no group info for section .text.__pthread_map_stacks_exec BFD: elf_utils.o: unknown [0] section `' in group [__pthread_map_stacks_exec] nm: elf_utils.o: File format not recognized ranlib libc_pic.a BFD: __vdso_gettc.o: invalid SHT_GROUP entry BFD: __vdso_gettc.o: no group info for section .text.__vdso_gettc BFD: __vdso_gettc.o: unknown [0] section `' in group [__vdso_gettc] nm: __vdso_gettc.o: File format not recognized BFD: __vdso_gettimeofday.o: invalid SHT_GROUP entry BFD: __vdso_gettimeofday.o: invalid SHT_GROUP entry BFD: __vdso_gettimeofday.o: no group info for section .text.__vdso_gettimeofday BFD: __vdso_gettimeofday.o: no group info for section .text.__vdso_clock_gettime BFD: __vdso_gettimeofday.o: unknown [0] section `' in group [__vdso_gettimeofday] BFD: __vdso_gettimeofday.o: unknown [0] section `' in group [__vdso_clock_gettime] nm: __vdso_gettimeofday.o: File format not recognized BFD: dlfcn.So: invalid SHT_GROUP entry BFD: dlfcn.So: invalid SHT_GROUP entry BFD: dlfcn.So: invalid SHT_GROUP entry BFD: dlfcn.So: invalid SHT_GROUP entry BFD: dlfcn.So: no group info for section .text._rtld_error BFD: dlfcn.So: no group info for section .text.dladdr BFD: dlfcn.So: no group info for section .text.dlclose BFD: dlfcn.So: no group info for section .text.dlerror BFD: dlfcn.So: no group info for section .text.dllockinit BFD: dlfcn.So: no group info for section .text.dlopen BFD: dlfcn.So: no group info for section .text.dlsym BFD: dlfcn.So: no group info for section .text.dlvsym BFD: dlfcn.So: no group info for section .text.dlinfo BFD: dlfcn.So: no group info for section .text._rtld_thread_init BFD: dlfcn.So: no group info for section .text._rtld_atfork_post BFD: dlfcn.So: no group info for section .text._rtld_get_stack_prot BFD: dlfcn.So: unknown [2] section `.symtab' in group [dl_iterate_phdr] BFD: dlfcn.So: unknown [0] section `' in group [_rtld_atfork_pre] BFD: dlfcn.So: unknown [0] section `' in group [_rtld_atfork_post] BFD: dlfcn.So: unknown [0] section `' in group [_rtld_addr_phdr] BFD: dlfcn.So: unknown [0] section `' in group [_rtld_get_stack_prot] nm: dlfcn.So: File format not recognized BFD: elf_utils.So: invalid SHT_GROUP entry BFD: elf_utils.So: no group info for section .text.__pthread_map_stacks_exec BFD: elf_utils.So: unknown [0] section `' in group [__pthread_map_stacks_exec] nm: elf_utils.So: File format not recognized BFD: __vdso_gettc.So: invalid SHT_GROUP entry BFD: __vdso_gettc.So: no group info for section .text.__vdso_gettc BFD: __vdso_gettc.So: unknown [0] section `' in group [__vdso_gettc] nm: __vdso_gettc.So: File format not recognized BFD: __vdso_gettimeofday.So: invalid SHT_GROUP entry BFD: __vdso_gettimeofday.So: invalid SHT_GROUP entry BFD: __vdso_gettimeofday.So: no group info for section .text.__vdso_gettimeofday BFD: __vdso_gettimeofday.So: no group info for section .text.__vdso_clock_gettime BFD: __vdso_gettimeofday.So: unknown [0] section `' in group [__vdso_gettimeofday] BFD: __vdso_gettimeofday.So: unknown [0] section `' in group [__vdso_clock_gettime] nm: __vdso_gettimeofday.So: File format not recognized ranlib libc.a /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: invalid SHT_GROUP entry /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: invalid SHT_GROUP entry /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: no group info for section .text.__vdso_gettimeofday /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: no group info for section .text.__vdso_clock_gettime /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: unknown [0] section `' in group [__vdso_gettimeofday] /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: unknown [0] section `' in group [__vdso_clock_gettime] __vdso_gettimeofday.So: file not recognized: File format not recognized cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [libc.so.7.full] Error code 1 1 error *** [lib/libc__L] Error code 2 1 error *** [libraries] Error code 2 1 error *** [_libraries] Error code 2 1 error *** [buildworld] Error code 2 1 error > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"