On 12/22/12 8:13 PM, Alfred Perlstein wrote:
On 12/22/12 6:14 PM, Jan Beich wrote:
Ed Maste <ema...@freebsd.org> writes:

When this knob is set standalone debug files for shared objects are
built and installed in /usr/lib/debug/<so pathname>.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-unsubscr...@freebsd.org"

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to