Glibc-2.17 toolchain issue iconv folder undefined reference -


on building glibc on toolchain . libraries make succesfully (and test ok) flags unset except specified building default glibc. start building programs both , without flags on seperate fresh build attempts , every time in iconv folder breaks...

i'll diverge second moan how iconv breaks in glibc me , has done long can remember... moving on though....

when gcc-4.8.0 passed gcc -nostdlib -nostartfiles -o /glibc-build/iconv/iconvconfig -wl,-dynamic-linker=/tools/lib/ld-linux-x86-64.so.2 -wl,--hash-style=both -wl,--warn-shared-textrel,--fatal-warnings /glibc-build/csu/scrt1.o /glibc-build/csu/crti.o gcc --print-file-name=crtbegins.o /glibc-build/iconv/iconvconfig.o /glibc-build/iconv/strtab.o /glibc-build/iconv/xmalloc.o /glibc-build/iconv/hash-string.o -wl,-rpath-link=/glibc-build:/glibc-build/math:/glibc-build/elf:/glibc-build/dlfcn:/glibc-build/nss:/glibc-build/nis:/glibc-build/rt:/glibc-build/resolv:/glibc-build/crypt:/glibc-build/nptl /glibc-build/libc.so.6 /glibc-build/libc_nonshared.a -wl,--as-needed /glibc-build/elf/ld.so -wl,--no-as-needed -lgcc gcc --print-file-name=crtends.o /glibc-build/csu/crtn.o gcc -nostdlib -nostartfiles -o /glibc-build/iconv/iconv_prog -wl,-dynamic-linker=/tools/lib/ld-linux-x86-64.so.2 -wl,--hash-style=both -wl,--warn-shared-textrel,--fatal-warnings /mnt/lfs/glibc-build/csu/scrt1.o /glibc-build/csu/crti.o gcc --print-file-name=crtbegins.o /glibc-build/iconv/iconv_prog.o /glibc-build/iconv/iconv_charmap.o /glibc-build/iconv/charmap.o /glibc-build/iconv/charmap-dir.o /glibc-build/iconv/linereader.o /glibc-build/iconv/dummy-repertoire.o /glibc-build/iconv/simple-hash.o /glibc-build/iconv/xstrdup.o /glibc-build/iconv/xmalloc.o -wl,-rpath-link=/glibc-build:/glibc-build/math:/glibc-build/elf:/glibc-build/dlfcn:/glibc-build/nss:/glibc-build/nis:/glibc-build/rt:/glibc-build/resolv:/glibc-build/crypt:/glibc-build/nptl /glibc-build/libc.so.6 /glibc-build/libc_nonshared.a -wl,--as-needed /glibc-build/elf/ld.so -wl,--no-as-needed -lgcc gcc --print-file-name=crtends.o /glibc-build/csu/crtn.o

i 2 pages of referencing issues

/glibc-build/iconv/iconvconfig.o: in function more_help': iconvconfig.c:(.text+0x12e): undefined reference to__tsan_func_entry' iconvconfig.c:(.text+0x136): undefined reference __tsan_write8' iconvconfig.c:(.text+0x150): undefined reference to__tsan_func_exit' iconvconfig.c:(.text+0x1cc): undefined reference __tsan_read8' /glibc-build/iconv/iconvconfig.o: in functionalias_compare': iconvconfig.c:(.text+0x226): undefined reference __tsan_func_entry' iconvconfig.c:(.text+0x233): undefined reference to__tsan_read1' iconvconfig.c:(.text+0x246): undefined reference __tsan_read8' iconvconfig.c:(.text+0x25d): undefined reference to__tsan_read1' iconvconfig.c:(.text+0x26e): undefined reference __tsan_read8' iconvconfig.c:(.text+0x282): undefined reference to__tsan_func_exit' iconvconfig.c:(.text+0x2b4): undefined reference __asan_report_load8' iconvconfig.c:(.text+0x2b9): undefined reference to__asan_report_load8' /glibc-build/iconv/iconvconfig.o: in function module_compare': iconvconfig.c:(.text+0x2fb): undefined reference to__tsan_func_entry' iconvconfig.c:(.text+0x308): undefined reference __tsan_read1' iconvconfig.c:(.text+0x326): undefined reference to__tsan_read8' iconvconfig.c:(.text+0x337): undefined reference __tsan_read1' iconvconfig.c:(.text+0x34a): undefined reference to__tsan_read8' iconvconfig.c:(.text+0x36f): undefined reference __tsan_func_exit' iconvconfig.c:(.text+0x3a6): undefined reference to__asan_report_load8' iconvconfig.c:(.text+0x3ab): undefined reference __asan_report_load8' /glibc-build/iconv/iconvconfig.o: in functionname_compare':

after 2 weeks of trying compile every way possible im getting bit fed up. ideas please?

emma

a bit late, useful.

the symbols tsan , asan in name related address sanitizer project provides llvm clang , gcc tools detect , report whole range of problems related illegal memory access.

to use them have install tools , libraries, use correct versions of compilers , correct combinations of flags during compile , linking depending on version.

in experience documentation useful, , topic pretty advanced. in project on have full control, ended disabling 1 commandline parameter -fsanitize=address recommended -fno-omit-frame-pointer both compile , link (gcc 4.8 on x64 ubuntu 14.04lts).

since attempting build existing project, @ mercy of settings. @ docs project , try determine recommended versions of compiler , sanitizer tools there, or maybe configuration options disable if don't care.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -